Closed gokhalen closed 3 years ago
We have a helper method to do that for you: view_xy()
p = pv.Plotter()
p.show_axes()
p.add_mesh(surf,scalars='point1',scalar_bar_args=sargs)
p.view_xy()
p.show()
camera_position
set's the world coordinates of the camera. If trying to manually position the camera angle, it is much easier to do so with the viewup
vector using set_viewup()
Thanks, that worked.
Description
I'm a PyVista newbie who is trying to set the orientation of the axes. When I plot using the code below, the X axis is vertical on the screen, and the Y-axis is horizontal. How can I get the X axis to be horizontal and the Y axis to be vertical? I'm using PyVista 0.27.2 installed using conda. I'm running the code inside the Spyder IDE.
Example Code