Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue with using plt.axis('equal') with plt.polar(theta,r) plot #14608

Copy link
Copy link
Closed
@jtwolfson

Description

@jtwolfson
Issue body actions

Bug summary

when using matplotlib.pyplot.axis('equal') with a polar plot, it tends to make things completely unreadable. This was discovered after original using a Cartesian plot and changing the one line of code from plt.plot to plt.polar and the plt.axis('equal') was left in. Right now, the clear solution is to not change the axis attributes using plt.axis('equal') when using a polar plot.
However, maybe the axis attributes that would create a messed up plot should be ignored if the plot is a polar plot.

import matplotlib.pyplot as plt
import numpy as np
data_angles=np.arange(0,2.05,.05)*np.pi
data_radii=np.sin(data_angles)
plt.polar(data_angles, data_radii)
plt.axis('equal')

Matplotlib version

  • Operating system: CENTOS 7
  • Matplotlib version: 3.1.0
  • Matplotlib backend: GTK3Agg
  • Python version: 3.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.