Re: [Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
https://github.com/matplotlib/matplotlib/issues/3562 On Wed, Sep 24, 2014 at 6:17 PM, Adam Hughes wrote: > Agreed. I will do so, thanks. If you are able to figure it out, I would > be super grateful. I must have spend 5 hours beating my head over this... > > I'll fill it out tonight. > > On W

Re: [Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
Agreed. I will do so, thanks. If you are able to figure it out, I would be super grateful. I must have spend 5 hours beating my head over this... I'll fill it out tonight. On Wed, Sep 24, 2014 at 9:07 PM, Benjamin Root wrote: > I always wonder why people go through such lengths to implement

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

Re: [Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Benjamin Root
I always wonder why people go through such lengths to implement such features, but never bother to offer them back into the mainline code or at least suggest such a feature. Think you could make a feature request for this on github? I bet I could figure out how to integrate it into the mesh code wi

[Matplotlib-users] Wireframe colored mesh

2014-09-24 Thread Adam Hughes
Hi, I'm following up on an answered stack overflow thread: http://stackoverflow.com/questions/24909256/how-to-obtain-3d-colored-surface-via-python/26026556#26026556 They show how to create a colormap for a wireframe plot. I noticed that this solution fails when the X and Y data are not the same

Re: [Matplotlib-users] Transferring an Axes Subplot to a projection on a 3d plot

2014-09-24 Thread Benjamin Root
Not at this time, no. There are two reasons for this. First, an Artist object can only be attached to a single Axes object at any given time. Right now, it isn't really possible to "transfer" an Artist from one Axes to another (not impossible, but it certainly isn't a built-in mechanism). The other

[Matplotlib-users] Transferring an Axes Subplot to a projection on a 3d plot

2014-09-24 Thread Adam Hughes
Hi, Sorry for all of these left-field questions. We are trying to develop some custom functionality for a spectroscopy program... Given a 3d surface plot, matplotlib makes it easy to add contours along the projections of the plot. http://matplotlib.org/1.3.1/mpl_toolkits/mplot3d/tutorial.html#d