Comments (6)
Saw this in the source:
# NOTE: setting BasePlotter is unnecessary and Segfaults CI
My guess is that we're not setting the window size using a signal. If we use a signal and set the window size that way, we should have the correct window size. My guess is that the window size of the widget is smaller because it's inside of the main window which includes toolbars, menus, and the border of the window itself.
from pyvistaqt.
I think this can be moved to pyvistaqt
:)
from pyvistaqt.
I inspected the code and this is where window_size
is set:
Plotter:
https://github.com/pyvista/pyvista/blob/master/pyvista/plotting/plotting.py#L600-L603
BackgroundPlotter:
https://github.com/pyvista/pyvista/blob/master/pyvista/plotting/qt_plotting.py#L856-L862
from pyvistaqt.
My guess is that the window size of the widget is smaller because it's inside of the main window which includes toolbars, menus, and the border of the window itself.
I think Alex is right. A while back, I ran into some really weird behavior when tracking the viewport coordinates of the mouse (or maybe it was widget placement) over the BackgroundPlotter
... I can't remember if I posted about it or not... I'll try to dig it up
from pyvistaqt.
Has this issue been fixed in BackgroundPlotter
? I had the same issue when trying to use off_screen=True
. No matter what, the screenshot window_size was (300, 300)
. This is an edge case, since I could just use pv.Plotter()
in the off_screen
case, but perhaps BackgroundPlotter
should not support off_screen=True
, directing the user to use pv.Plotter()
.
from pyvistaqt.
AFAIK, it's still not resolved. In MNE-Python, where we use BackgroundPlotter
currently, we had to use a "tweak" to ensure the proper size of the 3d viewer.
from pyvistaqt.
Related Issues (20)
- only one of the subplots work on 4k monitor
- Online documentation not up to date HOT 1
- Lingering references prevent garbage collection
- Segmentation fault on Mac with PyQt5 HOT 2
- Race condition: BackgroundPlotter has no attribute named image HOT 3
- Running pyvistaqt project in Github Action HOT 2
- Inconsistent plotting results with PyVistaQT versus Jupyter (Trame) backends HOT 3
- Issue using pyvistaqt QtInteractor on Windows 10
- MAINT: Deploy docs HOT 7
- solicitud para agregar característica, para guardar los modelos en formato obj
- Stage release for PyVista 0.40 HOT 3
- Update GC testing fixture
- MAINT: Remove Azure
- Make the canvas background transparent HOT 1
- X Error of failed request: BadWindow (invalid Window parameter) HOT 3
- Border glitch during resize HOT 6
- macOS `pvqt.BackgroundPlotter` never opens window HOT 1
- DOC: MultiPlotter vs BackgroundPlotter
- no mouse interactivity with BackgroundPlotter HOT 1
- Consider adding `.git_archival.txt` to include version number in git archive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvistaqt.