- 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
How to make a quiver plot in polar coordinates using Matplotlib?
To make a quiver plot in polar coordinates using Matplotlib, we can take the following steps −
Set the figure size and adjust the padding between and around the subplots.
Create radii, thetas, theta and r data points using numpy.
Create a new figure or activate an existing figure.
Add an 'ax' to the figure as part of a subplot arrangement.
Make poly collections of arrows.
To display the figure, use show() method.
Example
import numpy as np from matplotlib import pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True radii = np.linspace(0, 1, 5) thetas = np.linspace(0, 2 * np.pi, 20) theta, r = np.meshgrid(thetas, radii) f = plt.figure() ax = f.add_subplot(polar=True) ax.quiver(theta, r, np.cos(theta) - np.sin(theta), np.sin(theta) + np.cos(theta)) plt.show()
Output
- Related Articles
- Explain how a quiver plot can be built using Matplotlib Python?
- How to plot sine curve on polar axes using Matplotlib?
- How to curve text in a polar plot in matplotlib?
- How to create minor ticks for a polar plot in matplotlib?
- How to make the angles in a Matplotlib polar plot go clockwise with 0° at the top?
- Showing points coordinates in a plot in Python using Matplotlib
- How to plot half or quarter polar plots in Matplotlib?
- Plot parallel coordinates in Matplotlib
- How to make a rug plot in Matplotlib?
- How to make a mosaic plot in Matplotlib?
- Plot a polar color wheel based on a colormap using Python/Matplotlib
- How to make a 4D plot with Matplotlib using arbitrary data?
- Rotate theta=0 on a Matplotlib polar plot
- How to make a simple lollipop plot in Matplotlib?
- Plot scatter points on polar axis in Matplotlib

Advertisements