Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b76e234

Browse files
committed
Minor speed improvement
svn path=/branches/transforms/; revision=4761
1 parent da3f78f commit b76e234

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def set_thetagrids(self, angles, labels=None, frac=None,
310310
ACCEPTS: sequence of floats
311311
"""
312312
angles = npy.asarray(angles, npy.float_)
313-
self.set_xticks((angles / 180.0) * npy.pi)
313+
self.set_xticks(angles * (npy.pi / 180.0))
314314
if labels is not None:
315315
self.set_xticklabels(labels)
316316
if frac is not None:

0 commit comments

Comments
 (0)