
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
2K+ Views
To use unicode symbols in matplotlib, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Add text to figure, using text() method with unicode symbols. Here we have used the Unicode chararacter (Δ) which has the character code (0394).To display the figure, ... Read More

Rishikesh Kumar Rishi
2K+ Views
Tp append a single labeled tick to X-axis using matplotlib, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot x and y data points using plot() method.Set xticks at a single point.Set the tick ... Read More

Rishikesh Kumar Rishi
8K+ Views
To plot a plane using some mathematical equation in matplotlib, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Using x and y, find the equation of the plane (eq).Create a new figure or activate ... Read More

Rishikesh Kumar Rishi
2K+ Views
To plot a 3D surface from a list of tuples in matplotlib, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Make a list of tuples.Get the x, y and z data points from the list of tuples.Return the coordinate matrices from ... Read More

Rishikesh Kumar Rishi
8K+ Views
To plot a bar chart for a list in python matplotlib we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Make a list of data points.Make a bar plot with data.To display the figure, use Show() method.Examplefrom matplotlib import pyplot as plt ... Read More

Rishikesh Kumar Rishi
585 Views
To preserve padding while setting axis limit, we can avoid using the tight layout, i.e., plt.rcParams["figure.autolayout"] = False.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Plot x and y data points using plot() method.Set x and y axes limit.To ... Read More

Rishikesh Kumar Rishi
13K+ Views
To show (0, 0) on matplotlib graph at the bottom left corner, we can use xlim() and ylim() methods.StepsSet the figure size and adjust the padding between and around the subplots.Make lists of data points for x and y.Plotx and y data points.Setx and y axes scale.To display the figure, ... Read More

Rishikesh Kumar Rishi
6K+ Views
To make graph k-NN decision boundaries in matplotlib, we can take the following Steps.StepsSet the figure size and adjust the padding between and around the subplots.Initialize a variable n_neighbors for number of neighbors.Load and return the iris dataset (classification).Create x and y data points.Make lists of dark and light colors.Classifier ... Read More

Rishikesh Kumar Rishi
2K+ Views
To make a mosaic plot in matplotlib, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Install statsmodel package (pip install statsmodels). It is required to create mosaic plots. statsmodels is a Python package that provides a complement to scipy for statistical ... Read More

Rishikesh Kumar Rishi
1K+ Views
To plot two violin plot series on the same graph using Seaborn, we can take the following Steps.StepsSet the figure size and adjust the padding between and around the subplots.Load an example dataset from the online repository (requires Internet).Create a violin plot using violinplot() method.To display the figure, use Show() ... Read More