- 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
266 Views
To get the properties of picked objects in matplotlib 3d, we can take the following steps.StepsSet the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure.Add an 'ax' to the figure as part of a subplot arrangement.Make a scatter plot ... Read More
Rishikesh Kumar Rishi
490 Views
In a profile histogram, each bin contains the mean of its entries. To plot profile histograms in Python, we can use the regplot method from Seaborn.StepsSet the figure size and adjust the padding between and around the subplots.Create x and y data points using numpy.Use seaborn.regplot to plot the data ... Read More
Rishikesh Kumar Rishi
1K+ Views
plt.figure() − Creates a new figure or activates an existing figure.plt.subplots() − Creates a figure and a set of subplots.Let's take an example to understand the difference between plt.subplots() and plt.figure().StepsSet the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing ... Read More
Rishikesh Kumar Rishi
6K+ Views
To create a custom mouse cursor in matplotlib, we can take the following stepsStepsSet the figure size and adjust the padding between and around the subplots.Create a new figure or activate an existing figure.Bind the function *mouse_event* to the event *button_press_event*.Create x and y data points using numpy.Plot the x ... Read More
Rishikesh Kumar Rishi
1K+ Views
To read an input image and print it into an array in matplotlib, we can take the following stepsStepsSet the figure size and adjust the padding between and around the subplots.Read an image from a file into an array. Use plt.imread() method.Print the Numpy array of the image.To turn off ... Read More
Rishikesh Kumar Rishi
945 Views
To create minor ticks for a polar plot in matplotlib, we can take the following stepsStepsSet the figure size and adjust the padding between and around the subplots.Create r (radius) and theta data points using numpy.Add a subplot to the current figure.Iterate the points between 0 to 360 with step=10 ... Read More
Rishikesh Kumar Rishi
2K+ Views
To plot an animated image matrix in matplotlib, we can take the following stepsStepsSet the figure size and adjust the padding between and around the subplots.Create a figure and a set of subplots.Make an animation by repeatedly calling a function *update*.Inside the update method, create a 6×6 dimension of matrix ... Read More
Rishikesh Kumar Rishi
469 Views
To put a title for a curved line in Python 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 such that the line would be a curve.Plot the x and y data points.Place a ... Read More
Rishikesh Kumar Rishi
2K+ Views
To plot the FFT (Fast Fourier Transform) of a signal with correct frequencies on the X-axis in matplotlib, we can take the following steps −StepsSet the figure size and adjust the padding between and around the subplots.Initialize two variables, N and m, to calculate nu.Create the signal (a sine wave) ... Read More
Rishikesh Kumar Rishi
2K+ Views
plt.Show() would help whenever there is no interactive plot.fig.Show() would help to display all the figures if it is interactive.Let's take an example to observe the difference between plt.Show() and fig.Show().StepsOpen iPython shell.Set the figure size and adjust the padding between and around the subplots.Create a new figure or activate ... Read More
To Continue Learning Please Login
Login with Google