You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The draw method of mpatches.Arc has two paths:
- if the arc is "small" compared to its size in the rendered image
then render the whole arc and let clipping do it's thing
- if the arc is "big" compared to its size on the screen then sort
out where the circle intersects the axes boundary and only draw
that part of it
This makes several changes to the Arc draw method:
- make sure that we keep angles in [0, 360) range
- only go through the angle stretching code if we need to (to avoid
numerical instability of angles not round-tripping with scale=1)
- compute length, not offset from origin of width / height and use
the correct transform. Previously we were effectively squaring the
height and width
Tests:
- Adjusted an existing test image to use this failing case and to exercise both
code paths.
- Added a test function of ensuring we can draw a big arc in each
quadrant
0 commit comments