Re: [Matplotlib-users] Getting the projection of an axis

2014-09-24 Thread Adam Hughes
Awesome, thanks! On Wed, Sep 24, 2014 at 9:12 PM, Benjamin Root wrote: > Could always ask it its name: > > >>> import matplotlib.pyplot as plt > >>> from mpl_toolkits.mplot3d import Axes3D > >>> fig, ax = plt.subplots(1, 1, subplot_kw=dict(projection='3d')) > >>> ax.name > '3d' > > > You can do

Re: [Matplotlib-users] Getting the projection of an axis

2014-09-24 Thread Benjamin Root
Could always ask it its name: >>> import matplotlib.pyplot as plt >>> from mpl_toolkits.mplot3d import Axes3D >>> fig, ax = plt.subplots(1, 1, subplot_kw=dict(projection='3d')) >>> ax.name '3d' You can do this with any axes type, such as polar axes and such. Cheers! Ben Root On Tue, Sep 23, 2

[Matplotlib-users] Getting the projection of an axis

2014-09-23 Thread Adam Hughes
Hello, Is it possible to inspect an AxesSubplot object and infer if it is using a 3d projection or not? Couldn't figure it out directly from the API. Thanks -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analy