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

Commit ca92216

Browse filesBrowse files
committed
Ensure polar radial limits are nonsingular.
1 parent bb8b04b commit ca92216
Copy full SHA for ca92216

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/projections/polar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from matplotlib.transforms import Affine2D, Affine2DBase, Bbox, \
2121
BboxTransformTo, IdentityTransform, Transform, TransformWrapper, \
2222
ScaledTranslation, blended_transform_factory, BboxTransformToMaxOnly, \
23-
TransformedBbox, BboxTransform
23+
TransformedBbox, BboxTransform, nonsingular
2424
import matplotlib.spines as mspines
2525

2626

@@ -230,7 +230,7 @@ def refresh(self):
230230

231231
def view_limits(self, vmin, vmax):
232232
vmin, vmax = self.base.view_limits(vmin, vmax)
233-
return min(0, vmin), vmax
233+
return nonsingular(min(0, vmin), vmax)
234234

235235

236236
class _RadialOffsetTransform(Transform):

0 commit comments

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