-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
canvas.png writes a PNG with labels off if bg=0 #1740
Comments
@aashish24 @doutriaux1 Is this important? Should we fix it before the release? |
actually yes! Lots of people run things in batch mode. Is it going to be long? Let's see if we can get the other PR in before we move to this one! |
@jbeezley do you think you can help with this one? Looks like it's |
Probably not, I know almost nothing about VTK. |
Is there such a person at Kitware? 😉 No worries. |
@danlipsa @doutriaux1 This is the issue that I filed ages ago with VTK; we have it as #1148. |
@danlipsa I can look into it after I finish my sprint tasks let me know. |
thanks @chaosphere2112 for the reference. |
@aashish24 @doutriaux1 @chaosphere2112 I looked at this briefly when I filed it. The reason why the labels are off seems to be that the display happens on a very large screen which is not available if bg=0. There these events that have to be dealt with properly: ModifiedEvent and ConfigureEvent. This is in VTKPlots.py That is not to say that there is not a VTK bug somewhere as well :-) I have not seen Sam's bug report at all when I looked at this. |
This also fixes BUG #78 in cdat-web. For both bugs, VTKPlots.configureEvent is not called to reposition the labels.
This also fixes BUG #78 in cdat-web. For both bugs, VTKPlots.configureEvent is not called to reposition the labels.
The case when you don't specify a window size (as the test is written) has been fixed by: |
BUG #1740: plotting with bg=0 produces labels off
This might be fixed when we switch VTK to OpenGL2 - a new, much faster, rendering backend in VTK |
@danlipsa is that coming soon? Just curious. |
@doutriaux1 @aashish24 This new backend is the default in VTK and ParaView now. So, we could bite the bullet and switch UVCDAT to it soon. I think there are some changes to export to PS/PDF which might cause some issues The new backend requires OpenGL: >= 3.2 and Mesa >= 11.2 I think. If one has a hardware driver there should not be any problems. Mesa might need a rebuild as certain distributions have older versions. |
@danlipsa we build our own mesa anyway so it shouldnt be an issue. |
@doutriaux1 Sounds good. See |
There should be a new Mesa out so hopefully instead of the patch (which I believe the blog mentiond) we can try it directly. |
@danlipsa: @chaosphere2112 @durack1 @doutriaux1 This works with vcs SHA f6a88670f89bcbd476c106c6d5695902581ca565 from Apr 5. |
Running this test
test2.txt
produces
Uncommenting the line that sets bg to 1 fixes the problem.
The text was updated successfully, but these errors were encountered: