Code Monkey home page Code Monkey logo

Comments (5)

hakostra avatar hakostra commented on June 26, 2024 1

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:

magWALLSHEAR-+y

magWALLSHEAR--z

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.

hakostra avatar hakostra commented on June 26, 2024 1

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.

imranrasheed358 avatar imranrasheed358 commented on June 26, 2024 1

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.

tkoyama010 avatar tkoyama010 commented on June 26, 2024

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.

tkoyama010 avatar tkoyama010 commented on June 26, 2024

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.

  1. 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.
  2. If we can confirm that this occurs with legitimate VTK code, we would like to report this issue to the VTK project.
  3. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.