
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
862 Views
To show the same Matplotlib figure several times in a single iPython notebook, 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 the data points on that axes.To show the current figure again, ... Read More

Rishikesh Kumar Rishi
727 Views
To plot the sine curve on polar axes, 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() methodAdd an '~.axes.Axes' to the figure as part of a subplot arrangement.Get x ... Read More

Rishikesh Kumar Rishi
7K+ Views
To find the intersection of two lines segments in Matplotlib and pass the horizontal and vertical lines through that point, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Create two lines using slopes (m1, m2) and intercepts (c1 and c2). ... Read More

Rishikesh Kumar Rishi
8K+ Views
To show minor tick labels on a log-scale with Matplotlib, 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.Plot x and y data points using plot() methodGet the current axis using gca() method.Set ... Read More

Rishikesh Kumar Rishi
4K+ Views
To hide lines in Matplotlib, we can use line.remove() method.StepsSet the figure size and adjust the padding between and around the subplots.Create x, y1 and y2 data points using numpy.Make lines, i.e., line1 and line2, using plot() method.To hide the lines, use line.remove() method.Place a legend on the figure at ... Read More

Rishikesh Kumar Rishi
12K+ Views
To fill the area under step curve using pyplot, we can take the following stepsStepsSet the figure size and adjust the padding between and around the subplots.Ceate random data points, x, y1 and y2, using numpy.To fill the area under the curve, put x and y with ste="pre", using fill_between() ... Read More

Rishikesh Kumar Rishi
639 Views
To make a boxplot with variable length data in Matplotlib, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Make a list of data points.Make a box and whisker plot using boxplot() method.To display the figure, use show() method.Examplefrom matplotlib import ... Read More

Rishikesh Kumar Rishi
5K+ Views
To save all the open Matplotlib figures in one file at once, we can take follwong steps −Set the figure size and adjust the padding between and around the subplots.Create a new figure (fig1) or activate an existing figure using figure() method.Plot the first line using plot() method.Create a new ... Read More

Rishikesh Kumar Rishi
4K+ Views
To plot a histogram, with collections.Counter, we can use bar() method. In bar() method, we can use collections.counter() to get the frequency for each element. Put the elements and their frequency as height.StepsSet the figure size and adjust the padding between and around the subplots.Make a list of a data ... Read More

Rishikesh Kumar Rishi
2K+ Views
To show the title for the diagram for Seaborn pairplot(), we can use pp.fig.suptitle() method.StepsSet 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.Plot pairwise relationships in a dataset.Add a centered title to the figure.To display ... Read More