- 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 plot half or quarter polar plots in Matplotlib?
To plot half or quarter polar plots in 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.
Add an axes to the figure as part of a subplot arrangement.
For half or quarter polar plots, use set_thetamax() method.
To display the figure, use show() method.
Example
from matplotlib import pyplot as plt plt.rcParams["figure.figsize"] = [7.50, 3.50] plt.rcParams["figure.autolayout"] = True fig = plt.figure() ax = fig.add_subplot(111, projection="polar") max_theta = 90 ax.set_thetamax(max_theta) plt.show()
Output
- Related Articles
- How to curve text in a polar plot in matplotlib?
- How to make a quiver plot in polar coordinates using Matplotlib?
- How to create minor ticks for a polar plot in matplotlib?
- How to plot sine curve on polar axes using Matplotlib?
- How to plot a half-black and half-white circle using Matplotlib?
- Plot scatter points on polar axis in Matplotlib
- How to merge two existing Matplotlib plots into one plot?
- Rotate theta=0 on a Matplotlib polar plot
- What is the difference between drawing plots using plot, axes or figure in matplotlib?
- How to reuse plots in Matplotlib?
- How to add annotations in Matplotlib Plots?
- Display two Sympy plots as one Matplotlib plot (add the second plot to the first)
- How to make the angles in a Matplotlib polar plot go clockwise with 0° at the top?
- How to Annotate Matplotlib Scatter Plots?
- Plot a polar color wheel based on a colormap using Python/Matplotlib

Advertisements