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
Issue with Arrows #5
Comments
Edit: So I realized what the issue may be. Whenever I try to use the Write function within self.play, apparently the arrow (and everything after it) cannot be written. Hope this makes sense. If you need clarification do let me know. Curious to know why it's having that issue. |
I was having such problems with |
My guess is that it could be a rendering issue of some sort. I was digging deeper into other issues that could appear with using chemfig through manim and found this: malhotra5/Manim-Tutorial#10 I'm assuming that you hadn't modified the code in any way and that's why you're unsure as to why it suddenly works now haha. |
Haha. Though that should be fixed because everything in chanim is with |
Gotcha. Well I'll still keep this issue open. I'll give you the code that I made and a video showing the issues:
Link to video: https://vimeo.com/413870747 Let me know if you spot anything that's off. I'm also reusing the default chem_objects.py and constants.py (your version). Also I'm curious to know if this issue happens if you were to reinstall manim/chanim. Thanks! |
I guess I can rule out the possibility of this being an issue specific to my system then. And for some reason, this problem's occurring again for me. |
@kilacoda I was facing an issue with CArrow(text_up="Upper text",length=2) give me,
I was guessing the problem was there wasn't defined what class ChemArrow(MathTex):
...
self.template_tex_file_body = self.template_tex_file_body.replace(
"\\setchemfig{atom sep=2em}", f"{set_chemfig}"
)
arrow = "\\arrow{%s[%s][%s]}" % (self.arrows[_type], text_up, text_down)
MathTex.__init__(self, arrow, stroke_width=stroke_width, **kwargs) |
Ah yeah, guess I missed that when I was moving to the |
@emonhossainraihan fixed in 4c079c6 |
When I try to use ChemArrow class, I'm noticing that the arrow isn't showing up once the video is successfully created. I was wondering if this is a known issue with this class.
I've also been playing around with the chem_objects.py and constants.py file to see if I can fix this. On MiXTeX I'm able to see the arrow just fine, but when creating the video again, the arrow is just messing with things.
I was wondering if you have further insight on this. Thanks!
The text was updated successfully, but these errors were encountered: