- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- 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 1162 Articles
Rishikesh Kumar Rishi
766 Views
To display two sympy plots as one Matplotlib plot, we can take the following steps −Set the figure size and adjust the padding between and around the subplots.Transform strings into instances of :class:'Symbol' class.Plot a function of a single variable as a curve.Use the extend method to add all the ... Read More
Rishikesh Kumar Rishi
2K+ Views
To plot an area in a Pandas dataframe in Matplotlib Python, 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.Return the area between the graph plots.To display the figure, ... Read More
Rishikesh Kumar Rishi
751 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
575 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
6K+ 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
6K+ 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
11K+ 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
465 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