Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Milestone
Description
Setup
matplotlib.__version__
= 1.5.1 (installed as part of anaconda distribution)
Python 3.4.4
OS X
Issue
Code fromexamples/units/radian_demo.py
with minor modifications:
import numpy as npfrom basic_units import radians, degrees, cosfrom matplotlib.pyplot import figure, showx = [val*radians for val in np.arange(0, 15, 0.01)]fig = figure()ax = fig.add_subplot(121, projection='polar')line1, = ax.plot(x, np.array(cos(x))+1, xunits=radians)ax = fig.add_subplot(122, projection='polar')line2, = ax.plot(x, np.array(cos(x))+1, xunits=degrees)show()
Notes
Note that the plot on the left is correct, but the angular tick labels aren't incrementing correctly. I can't tell if this is an issue with the basic_units.py example implementation or the units interface.
If it seems like a straightforward fix, I'd be happy to take a look at it: the units interface is really slick and it would be great to get this working with polar coordinates too.