JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
478 stars 88 forks source link

view_init not defined #464

Closed mancolric closed 4 years ago

mancolric commented 4 years ago

I am trying to rotate a 3D figure --created with plot_trisurf-- with view_init. I have previously called using_3D(). However, I get the following error:

'view_init not defined'

If I modify plot3d.jl from

const mplot3d_funcs = (:bar3d, :contour3D, :contourf3D, :plot3D, :plot_surface, :plot_trisurf, :plot_wireframe, :scatter3D, :text2D, :text3D)

to

const mplot3d_funcs = (:bar3d, :contour3D, :contourf3D, :plot3D, :plot_surface, :plot_trisurf, :plot_wireframe, :scatter3D, :text2D, :text3D, :view_init)

the problem is fixed.

stevengj commented 4 years ago

Thanks, a PR to add this function to the list of exported symbols (maybe also voxels) would be welcome.

mancolric commented 4 years ago

Done.

stevengj commented 4 years ago

Closed by #465