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
Fix animations issues #609
Comments
Replacing the gm.level_1, gm.level_2 lines with a gm.levels = levs seems to fix things. @doutriaux1, any thoughts? |
@dakoop what is suspicious about this bit of code? boxfill object have 2 behaviour one historical where you set level1 and level2 and color1 and color2, and a "custom" one implemented later to make it consistent with isofill where you set "levels" and "colors" attributes. If what @dakoop mentions is true then it's a bug it shouldn't be looking at levels if type is not "custom". yes the draw_white_background was for the old vcs which did not render any background, VTK calls now have a call that tells it to render a white background on the renWin object so it should be ignored indeed. |
@doutriaux1, here a frame from a box plot animation with the current code: |
With respect to the white background, if the renWin background is always set to white, why does the following render_frame method not draw with a white background?
|
DaveI need to look at this bit of code for the white bg, the draw_whitebackground is ignored I think. But maybe not and that triggerrs no white bg. Can you try taking it out? |
I checked the png method implementation and the |
ok that makes sense. |
The black background in animations was due to the renderer's background color not being set for put_img_on_canvas in vcs's VTKPlots.py. This is corrected in the |
Yes! Thank you @dakoop |
@doutriaux1 Did you merge this branch? |
@doutriaux1 Did we merge this branch? |
already in see commit 03f9a7b |
Does this include the consistent colormap issue? Thanks, Dean From: Charles <notifications@github.commailto:notifications@github.com> — |
@williams13, is this the issue @potter2 mentions in #642? If so, could we please create a new, focused issue and provide a reproducible list of of steps to trigger this issue (preferably with clt.nc)? |
Look at the Boxfill for Animation attachment. This is where I started. Then look at the Animation Window attachment for the animation. The animation does not even look close to the original plot. Also it should have kept the min and max over the entire animation. The background is black.
The text was updated successfully, but these errors were encountered: