- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Rishikesh Kumar Rishi has Published 1162 Articles
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To make colorbar orientation horizontal in Python, we can use orientation="horizontal" in the argument.StepsSet the figure size and adjust the padding between and around the subplots.Create random x, y and z data points using numpy.Create a figure and a set of subplots.Use scatter() method to plot x, y and z ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
15K+ Views
To show points coordinate in a plot in Python, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create lists of x and y data points.Plot x and y data points with red color and starred markerSet some axis properties.Iterate x ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
811 Views
To fill a polygon with a custom hatch in matplotlib, we can override the matplotlib.hatch.Shapes class.StepsSet the figure size and adjust the padding between and around the subplots.Make a hatch shape using polygon class and get the path.Override the custom hatch shape class, with shape_vertices, shape_codes, etc.Create a new figure ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To create curved edges with NetworkX in Python3, we can use connectionstyle="arc3, rad=0.4".StepsSet the figure size and adjust the padding between and around the subplots.Initialize a graph with edges, name, and graph attributes.Add nodes to the created graph.Add edges from one node to another.Draw the graph G with Matplotlib, with ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
820 Views
To create a diverging stacked bar chart in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize a variable N to get the number of indices.Get menMeans, womenMeans, menStd and womenStd tuple.Initialize the width of bars.Create a figure and ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To use Matplotlib to plot PySpark SQL results, we can take the following steps−Set the figure size and adjust the padding between and around the subplots.Get the instance that is the main Entry Point for Spark functionality.Get the instance of a variant of Spark SQL that integrates with the data ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
477 Views
To manipulate figures while a script is running in Python, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure using figure() method.Get the current axis, ax, and show the current figure.Manipulate the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
675 Views
To plot a kernel density plot of dates in Pandas using Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a Pandas dataframe.Format the Pandas date column.Plot the Pandas date as kernel density estimate class by name.Set xtick labels ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
344 Views
To get the length of a single unit on an axis in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Create a new figure or activate an existing figure using figure() method.Add ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
862 Views
To redraw an image using python's Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure.Get the current axis using gca() method.Show the current figure.Iterate in the range of 20 and redraw ... Read More