[Matplotlib-users] perspective

Benjamin Root ben.v.root at gmail.com
Sun Apr 17 10:51:28 EDT 2016


Sorry for the long delay in replying. It seems like your email got held up
on the listserve.

Looking at perps(), it seems like it is just doing ax.plot_wireframe() and
some camera angle settings, which can be set via ax.view_init():

|  view_init(self, elev=None, azim=None)
|      Set the elevation and azimuth of the axes.
|
|      This can be used to rotate the axes programatically.
|
|      'elev' stores the elevation angle in the z plane.
|      'azim' stores the azimuth angle in the x,y plane.
|
|      if elev or azim are None (default), then the initial value
|      is used which was specified in the :class:`Axes3D` constructor.

Does that help?

Cheers!
Ben Root



On Mon, Mar 21, 2016 at 5:37 AM, Eric Gayer <egayer at gmail.com> wrote:

> Hi all,
> I am not sure this is the right place for my question, but I don’t really
> know where to ask…
> I would like to know if there is a chance for matplolib to provide the
> same 3D plot perspective as the perp() function in R or from the
>  plot3D package from Karline Soetaert (based on persp()) in R
>
> http://www.r-bloggers.com/creating-surface-plots/
>
> http://www.r-bloggers.com/3d-plots-in-r/
>
>  I found nothing on how to change perspective aspect in mplot3d. I am
> afraid it is not possible to work on the depth of the perspective in a
> mplot3d plot, is anyone knows how to do it ?
>
> Does anyone think it would be possible in a near future ?
>
> Thanks
> Eric
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20160417/8d75b11b/attachment.html>


More information about the Matplotlib-users mailing list