Skip to content

The interactive polar plot animation's axis label won't scale.  #16299

Closed

Description

@ewan1983

Bug report

Bug summary

In interactive polar plot animation, when I zoom in or zoom out, the plot itself does scale accordingly, but the r-axis label ticks stay the same, it won't scale accordingly.

Code for reproduction

import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation

fig = plt.figure()
ax = fig.add_subplot(111,polar=True)
line, = ax.plot([], [], lw=2)

def animate(i):
    r = np.arange(0, 2, 0.001)
    theta = 2 * np.pi * r * i/77 + i/5
    line.set_data(theta, r)
    return line,

anim = animation.FuncAnimation(fig, animate, interval=20, blit=True)

Matplotlib version

  • Operating system: Win10
  • Matplotlib version: 3.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

Activity

  1. jklymak commented on Jan 23, 2020

    @jklymak
    Member

    I think the blitting is supposed to work, that is the expected behaviour? Did you try blit=False?

  2. ewan1983 commented on Jan 23, 2020

    @ewan1983
    Author

    Yes, blitting is the culprit.
    blit=False solves the problem.

  3. anntzer commented on Jan 23, 2020

    @anntzer
    Contributor

    This is mostly fixed, even with blitting, as of master, by #16070; setting saner r limits with #16300 is even better.

  4. anntzer commented on Jan 25, 2020

    @anntzer
    Contributor

    Fixed by #16070 and #16300.

  5. added this to the v3.3.0 milestone on Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions