- 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
520 Views
To plot a cumulative graph of python datetimes, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a Pandas dataframe with some college data, where one key for time difference and another key for number students have admissioned in the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
524 Views
To select a specific subplot in 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 using figure() method.Iterate in a range, i.e., number subplots to be placed.In the loop itself, add ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To get smooth interpolation when using pcolormesh, we can use shading="gouraud" class by name.StepsSet the figure size and adjust the padding between and around the subplots.Create data, x and y using numpy meshgrid.Create a pseudocolor plot with a non-regular rectangular grid using pcolormesh() method.To display the figure, use show() method.Exampleimport ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
4K+ Views
To change the axes background color, we can use set_facecolor() method.StepsSet the figure size and adjust the padding between and around the subplots.Get the current axes using gca() method.Set the facecolor of the axes.Create x and y data points using numpy.Plot x and y data points using plot() method.To display ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
5K+ Views
To populate matplotlib subplots through a loop and a function, 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 with number of rows = 3 and number of columns = 2.Make a function ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
9K+ Views
To hide the colorbar of a Seaborn heatmap, we can use cbar=False in heatmap() method.StepsSet the figure size and adjust the padding between and around the subplots.Make a dataframe using 4 columns.Use heatmap() method to plot rectangular data as a color-encoded matrix.To display the figure, use show() method.Exampleimport seaborn as ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
741 Views
To set active subplot axes object in matplotlib, we can use subplots() method to add the axes as a subplot arrangement.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y lists for data points.Create a figure and a set of subplots using subplots() method ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To insert a scale bar in a map in matplotlib, we can use AnchoredBar() class to instantiate the scalebar object.StepsSet the figure size and adjust the padding between and around the subplots.Create random data using numpy.Use imshow() method to display data as an image, i.e., on a 2D regular raster.Get ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To plot gamma distribution with alpha and beta parameters in Python, we can use gamma.pdf() function.StepsSet the figure size and adjust the padding between and around the subplots.Create x using numpy and y using gamma.pdf() function at x of the given RV.Plot x and y data points using plot() method.Use ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To change the fontsize of scientific notation in matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a list of x and y values.Plot x and y data points using plot() method.To change the font size of scientific notation, ... Read More