pyvista / pyvistaqt

Qt support for PyVista
http://qtdocs.pyvista.org
MIT License
111 stars 19 forks source link

Interactive action menu on plotting window #10

Open ttsesm opened 4 years ago

ttsesm commented 4 years ago

Hi guys,

First thank you for the great work you've done with pyvista. I am quite new to it and I was playing around a bit. One feature that I really miss is the interactive action menu on the plotting window like the one you get in mayavi or in matlab, for example see the images below:

image

image

image

Is this feature applicable and somehow possible to be activated or if not, is it in your plans to include it in future releases?

I think it would a nice feature to be possible to enable/disable axes, grid, set background, interactively on the plotting window rather than only with code.

github-actions[bot] commented 4 years ago

Hi and welcome! Thanks for posting your first issue in the PyVista project! Someone from @pyvista/developers will chime in before too long. If your question is support related, it may be automatically transferred to https://github.com/pyvista/pyvista-support

GuillaumeFavelier commented 4 years ago

Did you try the BackgroundPlotter by any chance?

import pyvista

plotter = pyvista.BackgroundPlotter()
plotter.add_mesh(pyvista.Cone())
image image
image image

Although it does not offer all the default features available in Mayavi, we could consider adding some upon request if possible.

I have to add that some GUI features of this plotter may move in the future to https://github.com/pyvista/pyvista-gui

Related to https://github.com/pyvista/pyvista/issues/614

ttsesm commented 4 years ago

@GuillaumeFavelier thanks for the update. Yes, indeed this is what I was looking for. As you said, it lacks features (e.g. to be able to modify the color of axes or set different limits on bounds, background color, etc.) which could be useful but for a start it is really nice. I would be glad to see getting it enriched with more features.

GuillaumeFavelier commented 3 years ago

This is related to https://github.com/pyvista/pyvistaqt/issues/56