Comments (5)
As far as I see the communication in PR #3910 and issue #3908 by @akaszynski it was a change done to make plots look better (reasons given was to be able to change font type and improve smoothness). I have no principal objections against this - that is all well and good.
But the fact that the axis titles disappear for many views is in my opinion a real regression. It was near impossible for me as an end user to track this down. In the end, after trying what I thought was "every" option to show_grid (font type and size, plot themes title text and placement, color, ...) my strategy was to go back to a known good version of Pyvista and then upgrade one release at a time until I saw the problem, then going through all the PR's merged in between those two releases (0.37.0 and 0.38.1) and see if one of them could be the culprit... This was how I found the workaround plotter.show_grid(use_3d_text=False)
.
While the workaround solves my issue, I think the real underlying problem with disappearing titles should be looked into, because there will be more users being affected here.
The problem is not just for 2D planes as shown above, here are some illustrations of a real, 3-D polydata surface plotted in Pyvista and how the titles mysteriously disappear for one particular view and not another:
These images are produced essentially like the reproducer above, just replacing the 2-D mesh with a "real" 3-D vtkPolyData and setting two different views.
from pyvista.
Thanks. Unfortunately I have too little experience with the rendering and acors part of VTK to be able to offer anyting in the debugging. If it turns out that there is a bug in VTK, please give me a heads up and post the reference to the VTK bug ticket here for me.
from pyvista.
I also faced a similar issue in jupyter notebook. The axes title are not shown with 3D text . But as soon as I export it to .svg format, the axis titles are present.
from pyvista.
Thanks for the great report.
We set the default text to 3d text actors, and it has caused some breaking changes.
However, as discussed in #3910, there were problems with the method before the change.
So we plan to keep this.
To reproduce the traditional plots, you can set the following. Sorry I didn't notice you already tried this.
plotter.show_grid(use_3d_text=False)
I hope this code solves your issue.
from pyvista.
Thank you for your comment. You are right. The impact on users is enormous. I will continue to investigate the cause of the problem.
The policy is as follows.
- I will rewrite the relevant PyVista code to the bare VTK code. You have confirmed this with multiple versions of VTK, but we will check here what happens with the VTK code corresponding to the latest version of PyVista.
- If we can confirm that this occurs with legitimate VTK code, we would like to report this issue to the VTK project.
- If we are not using a VTK correctly, we will create a patch to fix it as a bug in PyVista.
from pyvista.
Related Issues (20)
- Plotting in Jupyter returns AttributeError: 'NoneType' object has no attribute 'has_capabilities' HOT 7
- Fix failing doc image tests HOT 3
- Need to fix warning of `tests/core/test_dataset_filters.py` HOT 2
- Error loading mesh while using Pyvista with vtk-egl HOT 4
- Point labels do not show properly in interactive documentation. HOT 3
- Opaque regions in RGBA images render partially transparent no matter what HOT 13
- UnstructuredGrid.clean modifies cell faces in-place HOT 2
- Fix `ImageData` transformations
- Connectivity filter crashes kernel, works on computers with older package/ python versions HOT 7
- Merging UnstructuredGrid with lines into another UnstructuredGrid HOT 9
- Error while using Pyvista with vtk-osmesa HOT 6
- Text from `add_text()` is not rendered in docs interactive scenes HOT 3
- number_labels in add_ruler not working as expected; similar for show_bounds HOT 4
- subdivide_tetra() results in faulty/negative cell volumes
- Labeled volumes for MultiBlock with voxelize_volume and voxelize HOT 2
- Allow reshaping of plotter
- Return type hint in plotting/plotter.py HOT 1
- `sample` filter crashes python without scalar data HOT 1
- Window freeze with show(interactive_update=True)
- Inconsistent loading of theme depending how modules are imported
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 pyvista.