- 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
417 Views
To show mouse release event coordinates with matplotlib, we can take the following steps−Set the figure size and adjust the padding between and around the subplots.Create a figure and a set of subplots.Plot a line in the range of 10.Bind the function *onclick* to the event *button_release_event*.Print event and its ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To make longer subplot tick marks in matplotlib, we can use tick_params() method for minor and major ticks length and width.StepsAdd a subplot to the current figure using subplot() method.Plot a range(2) values for x and y data points.Turn the minor ticks of the colorbar ON without extruding into the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To make bold font weight LaTeX axes label in matplotlib, we can take the following steps−Create x and y data points using numpy.Using subplot() method, add a subplot to the current figure.Set x and y ticks with data points x and y using set_xticks and set_yticks methods, respectively.Plot x and ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
212 Views
To make bold font weight LaTeX axes label in matplotlib, we can take the following steps−Create data points for x.Create data points for y, i.e., y=sin(x).Plot the curve x and y with LaTex representation.To activate the label, use legend() method.To display the figure, use show() method.Exampleimport numpy as np from ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
Matplotlib does not support the functionality to plot implicit equations, however, you can try a code like the one we have shown here.StepsCreate xrange and yrange data points using numpy.Return coordinate matrices from coordinate vectors using meshgrid() method.Create an equation from x and y.Create a 3D contour using contour() method ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To set the aspect ratio of a 3D plot in matplotlib, we can take the following steps−Using figure() method, create a new figure or activate an existing figure.Get the current axes, creating one if necessary, with projection='3d'.Create data points, R, Y and z, using numpy.Create a surface plot using R, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
662 Views
To plot a Cartesian coordinate system in matplotlib, we can take the following Steps −Initialize a variable (N) with a value.Create random data points for x and y.Plot the points using scatter method with x and y data points.To display the figure, use show() method.Exampleimport numpy as np import matplotlib.pyplot ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
9K+ Views
To plot multiple X or Y axis, we can use twinx() or twiny() methods, we can take the following Steps −Using subplots() method, create a figure and a set of subplots.Plot [1, 2, 3, 4, 5] data points on the left Y-axis scales.Using twinx() method, create a twin of Axes ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
741 Views
To get empty tick labels before showing a plot in matplotlib, we can take the following Steps −Create a list of data points.Add a subplot to the current figure using subplot() method.Set ticks and ticklabels using set_xticks() method and set_xticklabels() method.To get the empty tick labels, use get_xticklabels(which='minor').To display the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
553 Views
Gaussian filtering an image with NaN values makes all the values of a matrix NaN, which produces an NaN valued matrix.StepsCreate a figure and a set of subplots.Create a matrix with NaN value in that matrix.Display the data as an image, i.e., on a 2D regular raster, data.Apply Gaussian filter ... Read More