
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
606 Views
To draw node colormap in matplotlib/netwokx, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Return the cycle graph $C_n$ of cyclically connected nodes.Position the nodes on a circle.Draw the graph G with Matplotlib.To display the figure, use show() method.Exampleimport matplotlib.pyplot ... Read More

Rishikesh Kumar Rishi
3K+ Views
To set two matplotlib imshow() plots to have the same colormap scale, we can take the followingStepsSet the figure size and adjust the padding between and around the subplots.Create d1 and d2 matrices using Numpy.Get the resultant matrix to get the maximum and minmum value.Use amin and amax methods for ... Read More

Rishikesh Kumar Rishi
2K+ Views
To update the X-axis values using Matplotlib animation, 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.Create x and y data points using numpy.Plot x and y data points using plot method on ... Read More

Rishikesh Kumar Rishi
2K+ Views
To apply a mask on the matrix in matplotlib imshow(), we can use np.ma.masked_where() method with lower and upper limit.StepsInitialize two variables, l and u, to mask the input matrix.Create random data of 5×5 dimension.Mask the input matrix, lower of l value, and above of u.Create a figure and a ... Read More

Rishikesh Kumar Rishi
523 Views
To show the Logarithmic plot of a cumulative distribution function 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, for number of sample data.Create data, X2 and F2 using numpy.Plot X2 and F2 using plot() method.Make ... Read More

Rishikesh Kumar Rishi
473 Views
To visualize scalar 2D data with matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize a variable, N, for data samples.Create x and y data points using numpy.Get coordinate matrices from coordinate vectors.Get z data points using numpy.Create a ... Read More

Rishikesh Kumar Rishi
781 Views
To use pyplot.arrow or patches.Arrow() in matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Initialize four variables, x_tail, y_tail, x_head and y_head.Create a figure and a set of subplots.Get a fancy arrow instance.Add an artist (step 4) using add_patch() ... Read More

Rishikesh Kumar Rishi
5K+ Views
To add black border to matplotlib 2.0 'ax' object in Python, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Set axes edgecolor to black.Set axes linewidth to 2.50.Initialize a variable, N, to get the number of sample data.Create x and ... Read More

Rishikesh Kumar Rishi
745 Views
To adjust tick frequency for for Y-axis, we can take 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 points.Create x and y data points using numpy.Plot x and y data points using plot() method.Initialize ... Read More

Rishikesh Kumar Rishi
1K+ Views
To plot a 3D patch collection in matplotlib, 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.Get the current axes and set projection as 3d.Iterate ["x", "y", "z"] list, and set the ... Read More