You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some kwargs parameters for Text do not get propagated to it's children in construction, making it so that things like z_order does not work as intended and only the top level Text object has the proper z_order but the actual letters do not have the z_order that is properly set. This is also true with the opacity parameter.
We should always be able to see the label; however, as you can see the label goes behind the dot. As such this is because the z_order is not being applied.
So there's a class of mobjects which should probably propagate their style to their submobjects, but there are also classes which shouldn't (Axes comes to mind).
If I had to guess, it might be because setting z index in the constructor doesn't set it recursively, and so the submobjects of the Text object may not have their z index updated at creation?
(and since the circle has z index 1, it is rendered above the text submobjects which probably have z index 0)
providing z_index in the kwargs of a mobject constructor only affects the top-level mobject. When we explicitly make the label one layer deep, it works:
Description of bug / unexpected behavior
Some kwargs parameters for
Textdo not get propagated to it's children in construction, making it so that things likez_orderdoes not work as intended and only the top levelTextobject has the properz_orderbut the actual letters do not have thez_orderthat is properly set. This is also true with theopacityparameter.The issue was found in following Discord help-forum thread https://discord.com/channels/1453870851807117363/1485929006254657557
Expected behavior
We should always be able to see the label; however, as you can see the label goes behind the dot. As such this is because the
z_orderis not being applied.So there's a class of mobjects which should probably propagate their style to their submobjects, but there are also classes which shouldn't (Axes comes to mind).
How to reproduce the issue
Code for reproducing the problem
The problems:
Seems like setting z index in the constructor doesn't work, but setting it explicitly with a method does:
If I had to guess, it might be because setting z index in the constructor doesn't set it recursively, and so the submobjects of the Text object may not have their z index updated at creation?
(and since the circle has z index 1, it is rendered above the text submobjects which probably have z index 0)
providing z_index in the kwargs of a mobject constructor only affects the top-level mobject. When we explicitly make the label one layer deep, it works:
there was a similar bug for setting opacity from the kwargs
Which can get fixed by doing it in the following manner:
Additional media files
Images/GIFs
scriptoutput.mp4
System specifications
System Details
python/py/python3 --version): Unknown for Discord Manim rendererpip list): Unknown for Discord Manim rendererAdditional comments