- 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
4K+ Views
To plot an imshow() image in 3D in Matplotlib, we can take the following steps −Create xx and yy data points using numpy.Get the data (2D) using X, Y and Z.Create a new figure or activate an existing figure using figure() method.Add an 'ax1' to the figure as part of ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To add extra contour lines using Matplotlib 2D contour plotting, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create e a function f(x, y) to get the z data points from x and y.Create x and y data points using ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
7K+ Views
To remove the digits after the decimal point in axis ticks 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 figure and a set of subplots.To set the xtick labels ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
4K+ Views
To set the unit length of an axis in Matplotlib, we can use xlim or ylim with scale factor of the axes, i.e., of unit length times.stepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot the x and y ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
656 Views
To hide major tick labels while showing minor ticklabels 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.Plot the x and y data points.Set a property on an artist object, using ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
783 Views
To mark a specific level in a contour map on Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create x, y and z data points using Numpy.Use contour() method to make contour plot.Label the contour plot.To display the figure, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To label a patch in matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize the center of the rectangle patch.Create a new figure or activate an existing figure.Add an 'ax' to the figure as part of a subplot arrangement.Add ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
13K+ Views
To sort bars in a bar plot in ascending order, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a list of data for bar plots.Create a bar plot using bar() method, with sorted data.To display the figure, use show() ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To add titles to the legend rows in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create y data points using numpy.Make lists of markers and labels.Create a figure and a set of subplots.Plot the lines using plot() method, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
When we import matplotlib, we are importing all its libraries, whereas importing matplotlib.pyplot only imports pyplot's properties.stepsImport matplotlib.pyplot as pltSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot x and y data points using plot() method.To display the figure, ... Read More