- 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
451 Views
To color the intersection of circles/patches in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a and b points.Get the left, right and middle area from the two points, a and b.Get the current axes using gca() methodAdd ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To change the DPI of a Pandas DataFrame plot, we can use rcParams to set the dot per inch.StepsSet the figure size and adjust the padding between and around the subplots.Set the DPI values in .rcParams["figure.dpi"] = 120Create a Pandas dataframe to make a plot.Plot the dataframe.To display the figure, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
374 Views
To make frames around the tiles in a Seaborn heatmap, we can use linewidths and linecolor values in the heatmap() method.StepsSet the figure size and adjust the padding between and around the subplots.Create a Pandas data frame with 5 columns.Use heatmap() method to plot rectangular data as a color-encoded matrix.To ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To create a heatmap in Python that ranges from green to red, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a dictionary for different colors.Create a colormap from linear mapping segments using LinearSegmentedColormap.Create a figure and a set of ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
357 Views
To get all the bars in a Matplotlib chart, we can use the bar() method and return the bars.−StepsSet the figure size and adjust the padding between and around the subplots.Create a figure and a set of subplots.Create x and y data points using subplots() method.Make a bar plot and ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To remove a frame without removing the axes tick labels from a Matplotlib figure, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a list of y data points.Plot the y data points using plot() methodTo remove the left-right-top and ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To get a reverse-order cumulative histogram in Matplotlib, we can use cumulative = -1 in the hist() method.Set the figure size and adjust the padding between and around the subplots.Make a list of data points.Plot a histogram with data and cumulative = -1.To display the figure, use show() method.Examplefrom matplotlib ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
1K+ Views
To use an update function to animate a NetworkX graph 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.Initialize a graph with edges, name, and graph attributes.Add ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To plot a pcolor colorbar in a different subplot in 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 wuth two rows and two columns.Make a list of colormaps.Iterate the axes and ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To plot a smooth 2D color plot for z = f(x, y) 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.Get z data points using f(x, y).Display the data as an ... Read More