- 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
843 Views
To add a title on Seaborn Implot, we can take the following steps−Set the figure size and adjust the padding between and around the subplots.Make a Pandas dataframe with two columns, X-Axis and Y-AxisUse implot() method.Get the current axis using gca() method.To display the figure, use show() method.Exampleimport pandas import ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
634 Views
To plot a transparent Poly3DCollection plot in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplotsCreate a new figure or activate an existing figure.Add an '~.axes.Axes' to the figure as part of a subplot arrangement with projection=3d.Create x, y ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
889 Views
To plot two horizontal bar charts sharing the same Y-axis, we can use sharey=ax1 in subplot() method and for horizontal bar, we can use barh() method.StepsCreate lists for data points.Create a new figure or activate an existing figure using figure() methodAdd a subplot to the current figure using subplot() method, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
7K+ Views
To remove a specific line or curve in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Plot line1 and line2 using plot() method.Pop the second line and remove it.To display the figure, use show() method.Examplefrom matplotlib import pyplot as ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
2K+ Views
To set a colormap of an image, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Read an image from a file into an array.Pick one channel of your data.Display the data as an image, i.e., on a 2D regular raster ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
4K+ Views
To plot at full resolution with matplotlib.pyplot, imshow() and savefig(), we can keep the dpi value from 600 to 1200.StepsSet the figure size and adjust the padding between and around the subplots.Set random values in a given shape.Display the data as an image, i.e., on a 2D regular rasterSave the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
452 Views
Pseudocolor can be a useful tool for enhancing the contrast and visualizing your data more easily. This is especially useful when making presentations of your data using projectors(because their contrast is typically quite poor).Pseudocolor is only relevant to single-channel, grayscale, luminosity images. We currently have an RGB image. Since R, ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
3K+ Views
To plot 3D scatter plots in Python with hue colormap and legend, we can take the following steps−Set the figure size and adjust the padding between and around the subplotsCreate x, y and z data points using numpy.Create a new figure or activate an existing figure using figure() method.Get the ... Read More
![Rishikesh Kumar Rishi](https://www.tutorialspoint.com/assets/profiles/318007/profile/60_254496-1615815423.jpg)
Rishikesh Kumar Rishi
171 Views
To fix the deprecation warning that comes while using a deprecated method, we can use warnings.filterwarnings("ignore") in the code.−Examplefrom matplotlib import pyplot as plt, pylab as pl import warnings plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True warnings.filterwarnings("ignore") pl.pause(0) plt.show()OutputProcess finished with exit code 0Read More