
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
1K+ Views
To add a second X-axis at the bottom of the first one in Matplotlib, we can take the followingStepsSet the figure size and adjust the padding between and around the subplots.Get the current axis (ax1) using gca() method.Create a twin axis (ax2) sharing the Y-axis.Set X-axis ticks at AxisSet X-axis ... Read More

Rishikesh Kumar Rishi
1K+ Views
To create a Swarm Plot with Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a Pandas dataframe, i.e., a two-dimensional, size-mutable, potentially heterogeneous tabular data.Initialize the plotter, swarmplot.To plot the boxplot, use boxplot() method.To display the figure, use ... Read More

Rishikesh Kumar Rishi
4K+ Views
To display the matrix value and colormap 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 max and min values for matrix.Plot the values of a 2D matrix or array as ... Read More

Rishikesh Kumar Rishi
1K+ Views
To annotate a range of the X-axis in matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create xx and yy data points using numpy.Create a figure and a set of subplots.Plot xx and yy data points using plot() method.Set ... Read More

Rishikesh Kumar Rishi
2K+ Views
To add annotated text in Matplotlib for several points, 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.To set the label for each scattered point, make a list of labels.Plot xpoints, ypoints using ... Read More

Rishikesh Kumar Rishi
3K+ Views
To plot a line in Matplotlib with an interval at each data point, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make an array of means and standard deviations.Plot means using plot() method.Fill the area between means+stds and means-stds, alpha=0.7 ... Read More

Rishikesh Kumar Rishi
914 Views
To create a line chart using matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make lists of years and population growth.Plot years and population on the line using plot() method.To display the figure, use show() method.Examplefrom matplotlib import pyplot ... Read More

Rishikesh Kumar Rishi
7K+ Views
To use different markers for different points in a Pylab (Pyplot) scatter plot, we can use the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize a variable, N, for number of sample data.Create x and y random data points.Make a list of markers.Zip ... Read More

Rishikesh Kumar Rishi
3K+ Views
To slice an image into Red, Green and Blue channels with misc.imread, 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.Make lists of colormaps and titles.Create a figure and a set of ... Read More

Rishikesh Kumar Rishi
346 Views
To pixelate a square image to 256 big pixels with Python, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Open and identify the given image file.Resize the image samples.Make resultant images and resize them.Save the resultant figure.Examplefrom PIL import Image ... Read More