Getting the projection of an axis

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

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, 2014 at 3:26 PM, Adam Hughes <hughesadam87@…287…> wrote:

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 Analyzer

Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports

Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper

Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Awesome, thanks!

···

On Wed, Sep 24, 2014 at 9:12 PM, Benjamin Root <ben.root@…1304…> 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 this with any axes type, such as polar axes and such.

Cheers!

Ben Root

On Tue, Sep 23, 2014 at 3:26 PM, Adam Hughes <hughesadam87@…287…> wrote:

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 Analyzer

Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports

Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper

Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users