
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 1156 Articles

Rishikesh Kumar Rishi
787 Views
To decrease the hatch density in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a customized horizontal hatch class to override the density.Append the horizontal hatch class.Create a new figure or activate an existing figure.Add an 'ax1' to ... Read More

Rishikesh Kumar Rishi
5K+ Views
To give matplotlib imshow() plot colorbars a label, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create 5×5 data points using Numpy.Use imshow() method to display the data as an image, i.e., on a 2D regular raster.Create a colorbar for ... Read More

Rishikesh Kumar Rishi
309 Views
To set a title above each marker which represents the same label in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create x data points using Numpy.Create four curves, c1, c2, c3 and c4 using plot() method.Place a legend ... Read More

Rishikesh Kumar Rishi
1K+ Views
To change the color and add grid lines to a Python surface plot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create x, y and h data points using numpy.Create a new figure or activate an existing figure.Get 3D axes ... Read More

Rishikesh Kumar Rishi
189 Views
To find the matplotlib style name, we can take the following steps −import matplotlib.pyplot as pltprint(plt.style.library)Exampleimport matplotlib.pyplot as plt print(plt.style.library)Output{'bmh': RcParams({'axes.edgecolor': '#bcbcbc', 'axes.facecolor': '#eeeeee', 'axes.grid': True, 'axes.labelsize': 'large', 'axes.prop_cycle': cycler('color', ['#348ABD', '#A60628', '#7A68A6', '#467821', '#D55E00', '#CC79A7', '#56B4E9', '#009E73', ... Read More

Rishikesh Kumar Rishi
3K+ Views
To get an interactive plot of a pyplot when using PyCharm, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Set the background style.Plot the data on the axes.To display the figure, use show() method.Exampleimport matplotlib as mpl import matplotlib.pyplot as ... Read More

Rishikesh Kumar Rishi
9K+ Views
To increase the spacing between subplots with subplot2grid, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Add a grid layout to place subplots within a figure.Update the subplot parameters of the grid.Add a subplot to the current figure.To display the ... Read More

Rishikesh Kumar Rishi
3K+ Views
To get multiple overlapping plots with independent scaling 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.Plot a list of data points using plot() method on a seperate Y-axis and overlapping ... Read More

Rishikesh Kumar Rishi
3K+ Views
To display a sequence of images using Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a list of images that have to be drawn.Turn off the axes.Iterate the images and redraw over the axes.Take a pause after each ... Read More

Rishikesh Kumar Rishi
1K+ Views
To draw a filled arc 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.Initialize two variables, r, yoff.Create x and y data points using Numpy.Fill the area between x and y ... Read More