- 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
3K+ Views
To manipulate on vertical space in Matplotlib subplots, we can use hspace=1 in subplots_adjust() method without tight plot layout.StepsSet 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 with 4 indices.To adjust the ... Read More
Rishikesh Kumar Rishi
840 Views
To convert data values into color information for Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Get a colormap instance, defaulting to rc values if *name* is None.Create random values that could be converted into color information.Create random data ... Read More
Rishikesh Kumar Rishi
1K+ Views
To get interactive plots, we need to activate the figure. Using plt.ioff() and plt.ion(), we can perform interactive actions with a plot.Open Ipython shell and enter the following commands on the shell.ExampleIn [1]: %matplotlib auto Using matplotlib backend: GTK3Agg In [2]: import matplotlib.pyplot as In [3]: fig, ax ... Read More
Rishikesh Kumar Rishi
2K+ Views
To display different images with actual size in a Matplotlib subplot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Read two images using imread() method (im1 and im2)Create a figure and a set of subplots.Turn off axes for both the ... Read More
Rishikesh Kumar Rishi
697 Views
To male bar plots automatically cycle across different colors, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Set automatic cycler for different colors.Make a Pandas dataframe to plot the bars.Use plot() method with kind="bar" to plot the bars.To display the ... Read More
Rishikesh Kumar Rishi
661 Views
To change the line color in seaborn linear regression jointplot, we can use joint_kws in jointplot() method.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy to make a Pandas dataframe.Use jointplot() method with joint_kws in the arguments.To display the ... Read More
Rishikesh Kumar Rishi
495 Views
To control the width of bars in matplotlib with per-month data, we can take the following steps −Set the figure size and adjust the padding between and around the subplotsMake a list of dates, x and y, using numpy.Plot the bar with x and y data points, with per-month data.To ... Read More
Rishikesh Kumar Rishi
2K+ Views
To make animated sine curve, 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.Add an axes to the current figure and make it the current axes.Plot a line with empty lists.To initialize ... Read More
Rishikesh Kumar Rishi
3K+ Views
To plot a histogram with multiple legend entries, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create random data using numpyPlot a histogram using hist() method.Make a list of colors to color the face of each patch.Iterate the patches and ... Read More
Rishikesh Kumar Rishi
443 Views
To plot perspective and orthographic projection plots, 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.Add an '~.axes.Axes' to the figure as part of a subplot arrangement.Set the projection type as 'perspective' ... Read More