
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
420 Views
To get the (x, y) values of a line that is plotted by a contour plot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a 3D contour plot using contour() method.Get the contour plot collections and get the paths.To ... Read More

Rishikesh Kumar Rishi
726 Views
To animate a time-ordered sequence of Matplotlib 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 to the figure as part of a subplot arrangement.Return the first recurrence after ... Read More

Rishikesh Kumar Rishi
650 Views
To fill the area under a curve in Matplotlib python on log scale, we can take the following steps−Set the figure size and adjust the padding between and around the subplots.Create x, y1 and y2 data points using numpy.Plot x, y1 and y2 data points using plot() method.Fill the area ... Read More

Rishikesh Kumar Rishi
128 Views
To force errorbars to render last with 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 using figure() method.Get the current axis using gca() method.Plot the list of linesPlot y versus ... Read More

Rishikesh Kumar Rishi
255 Views
Matplotlib provides a number of colormaps, and others can be added using :func:'~matplotlib.cm.register_cmap'. This function documents the built-in colormaps, and will also return a list of all registered colormaps, if called.Examplefrom matplotlib import pyplot as plt cmaps = plt.colormaps() print("Possible color maps are: ") for item in ... Read More

Rishikesh Kumar Rishi
2K+ Views
To plot multiple time-series data frames into a single plot using Pandas, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create a Pandas data frame with time series.Set the time series index for plot.Plot rupees and dollor on the plot.To ... Read More

Rishikesh Kumar Rishi
1K+ Views
To make several legend keys to the same entry in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Plot line1 and line2 using plot() method.Use legend() method to place a legend over the plot with numpoints=1To display the figure, ... Read More

Rishikesh Kumar Rishi
3K+ Views
To remove horizontal lines in an image, we can take the following steps −Read a local image.Convert the image from one color space to another.Apply a fixed-level threshold to each array element.Get a structuring element of the specified size and shape for morphological operations.Perform advanced morphological transformations.Find contours in a ... Read More

Rishikesh Kumar Rishi
4K+ Views
To specify the line width of the legend frame in Matplotlib, we can use set_linewidth() method.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 using subplots() method.Plot x and y using plot() ... Read More

Rishikesh Kumar Rishi
5K+ Views
To plot a Pandas multi-index data frame with all xticks, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create index value with 1000 smaples data.Make a one-dimensional ndarray with axis labels.Get the mean value of the series.Plot g dataframe.Set the ... Read More