Dataset Viewer
Auto-converted to Parquet Duplicate
number
int64
1
54
content
stringlengths
19
17.2k
comments
sequence
54
Function graphs to updaters : Hi everyone i don't know how to create this animation: add a decimal number "a", With the change of a, y also changes, y=a, and create a rectangular coordinate system with time as the horizontal axis and y as the vertical axis. Updater and ValueTracker seems to have no effect. Elteoremadebeethoven made a tutorial about updaters. (without graphs) But it's still hard to make this animation with graph. Here is my code: ``` class UpdaterTest9(GraphScene): def construct(self): # global number_value numberplane = NumberPlane() self.add(numberplane) self.setup_axes() line = Square() line2 = Circle() number = DecimalNumber(0, num_decimal_places=5) # number.add_updater(lambda m: m.set_value(get_area(line))) def number_updater(obj): obj.add_updater(lambda m: m.set_value(get_area(line))) # self.get_graph(lambda x: x.set_value(get_area(line))) number.add_updater(number_updater) # if number.get_value() != 0: number_value = number.get_value() graph = self.get_graph( x_values=[0, number_value], y_values=[0, number_value], # func=lambda x: 0 func=number_value ) graph.add_updater(number_updater) self.add(number, graph) self.play(Transform(line, line2), rate_func=linear, run_time=8) self.wait(2) ``` ``` class UpdaterTest10(GraphScene): def construct(self): # global number_value numberplane = NumberPlane() self.add(numberplane) self.setup_axes() line = Square() line2 = Circle() vt = ValueTracker(0) number = DecimalNumber(0, num_decimal_places=5) # numberv = ChangeDecimalToValue(decimal_mob=number) # numberv = CountInDecimal() # number.add_updater(lambda m: m.set_value(get_area(line))) def number_updater(obj): obj.add_updater(lambda m: m.set_value(vt.get_value(get_area(line)))) # self.get_graph(lambda x: x.set_value(get_area(line))) number.add_updater(number_updater) # if number.get_value() != 0: number_value = number # number_value.add_updater(lambda m: m.set_value(number)) def number_value_updater(obj): obj.add_updater(lambda m: m.set_value(number)) # graph = self.get_graph( # x_values=[], # y_values=[], # # func=lambda x: 0 # func=number_value_updater(obj) # # ).add_updater(number_value_updater) graph = FunctionGraph(function=number_updater) graph.add_updater(number_updater) self.add(number, graph) self.play(Transform(line, line2), rate_func=linear, run_time=8) self.wait(2) ```
[]
53
I can’t install requirements.txt, it founds an error with the mapbox_earcut. Could you help me? :
[]
52
Manim Installation Unsuccesfull "IndexError: list index out of range" : after the installation of manim I tried to use the command line in the command promt python -m manim example_scenes.py SquareToCircle -pl this works just fine, the problem araise when i try to use the command python -m manim example_scenes.py WriteStuff -pl ![manim-idex-error](https://user-images.githubusercontent.com/20775038/104865767-7d2f7180-5902-11eb-8a17-722889a42686.PNG) and then I got that, looking through different forums I found this ![manim-idex-error2](https://user-images.githubusercontent.com/20775038/104866072-47d75380-5903-11eb-9c3f-444a7101e814.PNG) I can tell that if I do as it is said it works for the WriteStuff, but then after even the most basic exercise related to text generation fails which remaind me of this ![manim-idex-error3](https://user-images.githubusercontent.com/20775038/104866200-9553c080-5903-11eb-8ddc-70acd23279e3.PNG)
[ "Hey Mike, I also faced this problem when i was starting off with manim. The only way to solve this problem is to download and install all the tex packages form MikTex. It will definitely work after this step. \r\n\r\n", "If you have any doubt, don't hesitate to share.. Would love to help\r\n" ]
51
Fixed typo and grammatical mistake. :
[ "Thanks" ]
50
Creature Malformation : So, I am with manim version 3 feb 2019 I followed this tutorial: https://youtu.be/KGdA8IB6JL0 I changed ALL the "NumberCreature" with "criatura_phi" I have this code: class phiCena(Scene): def construct(self): Ale=Alex().to_edge(DOWN) palabras_ale = TextMobject("Learn to do \\animations with me!!") self.add(Ale) ### self.play(criatura_phiSays( Ale, palabras_ale, bubble_kwargs = {"height" : 4, "width" : 6}, target_mode="speaking" )) ### for k in range(0, 4): self.wait() self.play(Blink(Ale)) When I render WITHOUT the middle-part (the part surrounded by the ###), it all goes right (the phi_Cena_ok gif). ![phiCena_ok](https://user-images.githubusercontent.com/70387940/97888507-1d71f300-1d23-11eb-9f0c-e59700de34bf.gif) But when I try to render WITH the middle-part, something weird happens (the phi_Cena_not_ok gif). ![phiCena_not_ok](https://user-images.githubusercontent.com/70387940/97888558-295db500-1d23-11eb-8de1-8f0e8f8a5a64.gif) (I render it like mp4 video, but I had to convert them to gifs to pu them here :P)
[ "That is because you don't have `number_creature_speaking.svg` file in your svg folder, you have to create one, all `target_mode=\"\"som` have to add a new svg file named as `number_creature_some.svg`.", "Wait, what? Sorry, did not understand anything.\r\nDo I have to create a `number_creature_speaking.svg` on th...
49
fix incorrect spelling [Stantford -> Stanford] :
[ "Thanks" ]
48
No me reconoce el comando "ffmpeg" : Pasa que al instalar FFmpeg no es reconocido como comando interno o externo. ![image](https://user-images.githubusercontent.com/72575814/96525764-ade30a80-1230-11eb-874c-59e90a449cea.png) Tengo la carpeta de FFmpeg en la raíz C: así como en las variables de entorno, así que no sé cuál sea el problema:( Nota: tengo la version 3.9 de Python pero no sé si ese sea el problema.
[]
47
Update resume.md : Fixed minor typo
[ "Thank you!" ]
46
Update README.md : some tweaks for better understanding for the reader
[]
45
Positional arguments are missing (kwargs) : I'm learning Manim through your video tutorial. Thank you for giving us such a great opportunity to learn how to use it. Currently I'm investigating the making use of arrays (Manim tutorial | 3). Almost every one of 26 classes (FormulaColor1, CrossText, etc) from 3_text_like_arrays.py give an error: ` __init__() missing 1 required positional argument: 'kwargs'` I suppose some configuration parameters are missing, but I don't know how to set them. I use Win10 x64. For example, when calling FormulaColor1, which is: ``` class FormulaColor1(Scene): def construct(self): text = TexMobject("x","=","{a","\\over","b}") text[0].set_color(RED) text[1].set_color(BLUE) text[2].set_color(GREEN) text[3].set_color(ORANGE) text[4].set_color("#DC28E2") self.play(Write(text)) self.wait(2) ``` I receive this error: ``` Traceback (most recent call last): File "C:\Program Files\Manim\manimlib\extract_scene.py", line 155, in main scene = SceneClass() File "C:\Program Files\Manim\manimlib\scene\scene.py", line 75, in __init__ self.construct(**kwargs) File "3_text_like_arrays.py", line 26, in construct self.play(Write(text)) TypeError: __init__() missing 1 required positional argument: 'kwargs' ``` What is the problem?
[ "Reinstalling manim solves this.\r\n[See for the details.](https://github.com/3b1b/manim/issues/1191)" ]
44
¿Error de renderizado? : Hola, he estado checando las guías propuestas en el canal y el git y tengo un problema. Al renderizar el código siguiente como vídeo, no me salen las etiquetas del lado derecho de la gráfica. Lo curioso de esto es que cuando lo renderizo como imagen, aparece todo. ¿Podrías ayudarme? ## Multiline code Mi código es: ```python from manimlib.imports import * def Range(in_val,end_val,step=1): return list(np.arange(in_val,end_val+step,step)) class GrafInt2(GraphScene): CONFIG = { "y_max": 1.5, "y_min": -1.5, "x_max": 2*PI, "x_min": -2*PI, "x_tick_frequency": PI/2, "y_tick_frequency": 0.5, "x_axis_width": 9, "x_axis_label": None, #No escribe la etiqueta del eje y, para eso, ir a línea 148 "y_axis_label": None, #No escribe la etiqueta del eje x, para eso, ir a línea 149 #"axes_color": BLUE, Podemos determinarlo desde aquí o como se ve en la línea 141-143 "graph_origin": ORIGIN } def construct(self): self.setup_axes() #Creación de objetos titulo = TextMobject("Gráfica coseno") graf_cos = self.get_graph( lambda x : np.cos(x), color = RED, x_min = -2*PI, x_max = 2*PI, ) #Posición de los objetos titulo.to_corner(UL) #Propiedades de los objetos graf_cos.set_stroke(width = 4) #Inicio de animación self.play( Write(titulo), run_time = 4 ) self.play( ShowCreation(graf_cos), run_time = 7 ) self.wait() def setup_axes(self): GraphScene.setup_axes(self) #Grosor de los ejes XY self.x_axis.set_stroke(width = 3) self.y_axis.set_stroke(width = 3) #Color de los ejes XY self.x_axis.set_color(BLUE) self.y_axis.set_color(BLUE) #Modificación de etiquetas de los ejes et_x = TexMobject("\\theta") et_y = TexMobject("f(\\theta)") et_x.next_to(self.x_axis,RIGHT) #Posiciona la etiqueta del lado derecho del eje de las x et_y.next_to(self.y_axis,UP) #Posiciona la etiqueta arriba del eje y #Para las etiquetas del eje Y self.y_axis.label_direction = LEFT #Posición de valores de y respecto al eje y self.y_axis.add_numbers(*[-1,1]) #Valores de y donde poner etiquetas #Para las etiquetas del eje X x_min = -2*PI x_max = 2*PI saltos_x = PI valor_decimal_x = Range(x_min,x_max,saltos_x) #Texto que llevará según el valor de X lista_x = TexMobject( "-2\\pi", #Para -2*PI "-\\pi", #Para -PI "\\", #Para cero "\\pi", #Para PI "2\\pi." #Para 2*PI ) #Asignación de texto a valores valores_x = [(i,j) for i,j in zip(valor_decimal_x, lista_x) ] self.x_axis_label = VGroup() for x_val,x_tex in valores_x: x_tex.scale(0.7) #Escala de texto de las etiquetas eje X x_tex.next_to(self.coords_to_point(x_val,0), DOWN) #Posición de las etiquetas eje X self.x_axis_label.add(x_tex) #Animación de objetos creados para el plano self.play( *[ShowCreation(objeto) for objeto in [ self.x_axis, self.y_axis, et_x, et_y, self.x_axis_label ] ], run_time=3 ) ```
[]
43
How to animate python code using manim? : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[]
42
Is it possible to place elements of a for in a VGroup? : for i in range(1,101): add i in VGroup
[ "Yes:\r\n\r\n```python\r\nvg = VGroup(...)\r\n.....\r\nfor i in range(...):\r\n vg.add(some_mob)\r\n```" ]
41
How can I draw curves in polar form. ex: r = 1 + 2cos(alpha). : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "Use the transformation equations to get the parametric equations, then use the ParametricFunction." ]
40
RateFunctions in rate_functions_scenes.py:123 doesn't compile the names of rate functions that have underscoores : Whereas we can see the video of the example running, attempting to compile and generate de scene RateFunctions using the Manin-TB clone (Feb/2019) chokes the LaTeX generation. If the names of the rate functions that have an undescore are commented out, the scene is generated, albeit with less examples...
[ "My Manim-TB repo is pretty sloppy, it's normal, use another version instead." ]
39
Update scenes.md :
[]
38
Hoping for a reply : I had a problem rendering the WriteStuff command as i got an error of latex not recognized as a batch file. But then after going through your thread on the issue i reinstalled latex and i was able to play the command. However now when i am trying to run render the WhatIsCONFIG command i get the same error of latex not recognized as a batch file. I tried running the WriteStuff command and it works just fine. But the Whatisconfig gives the error. I think the problem is with the .py files and the code regarding dvi. however as i am not from the background of computer science i do not know how to proceed
[ "You have to use the 3/feb release, that code does't work with the most recent", "Does that mean I will have to use packages in the requirement text only?\nAlso I find it weird that latex is not recognised as a batch file yet the\nWritestuff file plays efficiently. Is there are page where I can know how\nto use ...
37
Please help with that parametric surface : ### Please, I want to know or some guide to plot that parametric surface First one I want to thank you for this content, it's amazing. Returning with my problem I mean something like this: ![cassini4b](https://user-images.githubusercontent.com/49081413/82741907-116a1a00-9d1d-11ea-9015-378768bd75cd.gif) I saw that post [http://lemur.cmp.uea.ac.uk/Research/ivis/backup/PhD/Latest/Paul%20Bourke%20Screenshots/Eggs,%20melons,%20and%20peanuts%20-%20Cassini%20Oval.htm](url) to guide me, but I can´t understand how can I use that info. to create the parametric surface using `ParametricSurface(lambda u, v: np.array([ # The parameters of that surface]))` I'll be very greatful if you can help me. I'm trying with this ```python lemnisBer = ParametricSurface( lambda u, v: np.array([ np.cos(u) / (np.sin(u)**2 + 1), 0 np.cos(u) * np.sin(u) / (np.sin(u)**2 + 1), ]), u_min=TAU, u_max=TAU, checkerboard_colors=[YELLOW_E,YELLOW_E], resolution=(15, 32)).scale(1.5) ``` But that don't graph a peanut or something similar. Best and sincerely greetings,
[ "Since this is not a question about installation or my tutorials, I recommend that you watch my **How to ask your questions about manim** video. If you are still interested in me personally solving your question, I would charge you 15 USD via PayPal.", "Oh thanks you, I solved that , I did the graph that I want, ...
36
Error,runting error :
[]
35
Shift animation returns a black screen video : Is it a bug? Or there is another way to shift an animation? ``` text = Text("Manim Animation", font="Arial", stroke_width=0) self.play( LaggedStartMap(FadeIn, text), ApplyMethod(text.shift, UP) ) ``` Thanks for [these](https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/update_successions/successions_in_recent_versions.py) awesome examples!
[ "As I explained in video 8.2 you cannot apply two Animation's classes to the same object, you must do it either using methods, or create a function and apply it with ApplyFunction (you can see it in my documentation), or creating a specific updater function. It is not a bug.\r\n\r\n```python\r\nclass Test(Scene):\r...
34
Text like arrays better approach : From https://github.com/3b1b/manim/issues/941#issuecomment-623012312 ```python3 class colorIssue(Scene): def construct(self): # it shows error if you put a single "{" or "}" braces character into array numeros4 = TexMobject( "\\mathbb{N}", "=", "\\{", "1", ",", "2", ",", "3", ",", "\\ldots", "\\}" ) numeros4[0][2].set_color(RED) self.add(numeros4) self.wait() class colorBetterApproach(Scene): def construct(self): # if you want to color "{" or "}" braces character separately numeros4 = TexMobject( "\\mathbb{N}=\\{1,2,3,\\ldots\\}") # coloring first 2 characters numeros4[0][0:2].set_color(GREEN) # coloring 3rd character numeros4[0][2].set_color(RED) self.add(numeros4) self.wait() ``` ![3_text_like_arrays_better_approach](https://user-images.githubusercontent.com/30471072/80891935-f50e2b00-8ce4-11ea-8cbf-b4737bd8cadd.png) ```python3 class colorBetterApproach1(Scene): def construct(self): text = TexMobject("\\sqrt{\\int_{a}^{b}\\left(\\frac{x}{y}\\right)dx}") text[0][0].set_color(RED) text[0][1].set_color(BLUE) text[0][2].set_color(GREEN) text[0][3].set_color(YELLOW) text[0][4].set_color(PINK) text[0][5].set_color(ORANGE) text[0][6].set_color(PURPLE) text[0][7].set_color(MAROON) text[0][8].set_color(TEAL) text[0][9].set_color(GOLD) text[0][10].set_color(GRAY) text[0][11].set_color(RED) self.play(Write(text)) self.wait() ``` ![better](https://user-images.githubusercontent.com/30471072/80892649-5d5f0b80-8ce9-11ea-85e6-49d38ae57828.gif)
[ "In my tutorials I use the February 3 version for the first videos, so this does not work for me at the moment. But thanks." ]
33
Create CodeMobject.md : CodeMobject to display code with color highlighted from https://github.com/3b1b/manim/pull/1013 you can use it as follow. format code from https://codebeautify.org/cpp-formatter-beautifier with select intent = 2 means tab spacing = 2 save html file from https://tohtml.com/cpp/ ```python from manimlib.mobject.code_mobject import * code = CodeMobject("Helloword.html", coordinates=[-5,3], run_time=3, scale_factor=0.3, line_spacing=0.2, tab_spacing=0.6, font='Monospac821 BT') code.scale(1) self.play(Write(code),run_time=1) def draw_code_all_lines_at_a_time(self, code): self.play(*[Write(code[i]) for i in range(code.__len__())],run_time=code.run_time) ``` coordinate point is LEFT+UP corner. 'code' is a 2d array of characters. for example to access first 5 characters from line 2 use `code[2][0:5]` ```python code[2][0:5].set_color(RED) ``` Output will be looks like ![Ceatures](https://user-images.githubusercontent.com/30471072/80675455-1e0aa200-8ad2-11ea-9930-812f0a32e058.png) * It solves the following problems 1) display code with color highlighted 2) manage to print single LaTeX character '{' or '}' because of using Text() instead TextMobject() from https://github.com/3b1b/manim/issues/941#issuecomment-621615699
[ "I find it an interesting project, but until your PR is merged I cannot include it in my repo, maybe I will make a video of it in the future if I take the time to test your library." ]
32
How to convert simple string to LaTeX string programmatically ? : if we try `TextMobject(" \# \{ \} ")` it works fine. but if we try following code `TextMobject(" # { } ")` it will result into following error ```python File "manimlib\utils\tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: ./media\Tex\c2fe0a3b9407ff29.log ``` is there any way to convert simple string " # { } " to LaTex string " \\# \\{ \\} " ? something like `print(StringToLaTexString(" # { } "))` Output should be `\# \{ \} ` So that we can use something like `TextMobject(StringToLaTexString(" # { } "))` to avoid error.
[ "i created following function\r\n```python \r\ndef latex_escape(str):\r\n # Replace a \\ with $\\backslash$\r\n # This is made more complicated because the dollars will be escaped\r\n # by the subsequent replacement. Easiest to add \\backslash\r\n # now and then add the dollars\r\n # Must be done aft...
31
FileNotFoundError: [Errno 2] No such file or directory 'example.py' : I've been trying to run a python example by copying and pasting your code. I have copied and pasted the code into a file 'example.py' I have verified that the file does indeed exist now in the same directory I used to successfully run example_scenes.py SquareToCircle I have typed: python3 -m manim example.py TangentVector -pl It says that example.py is not there It is there Therefore wtf please help # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "what os is you are using, linux or windows ?\r\ntry to put `#!/usr/bin/env python` at first line of your file 'example.py'", "Learn to use the terminal before using Manim, clearly you are doing something wrong in the terminal and I am not going to explain such basic things." ]
30
Trying to randomize students creatures in TeacherStudentsScene but it shows same students every time when i render : I created new creatures named * PlusCreature * MinusCreature * MultiCreature * DivCreature * RemCreature * AndCreature * EqualCreature * RoundBracketsCreature * CurlyBracketsCreature * SquareBracketsCreature * AngleBracketsCreature * HashCreature * QuestionCreature Creatures are looks like ![Ceatures](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/c.png) and added this creatures to the file c_creature (renamed pi_creature) for example this one ```python class PlusCreature(CCreature): CONFIG = { "file_name_prefix": "PlusCreatures" } ``` and i changed method 'create_c_creatures()' in class TeacherStudentsScene in file c_creature_scene.py (renamed pi_creature_scene.py) ```python def create_c_creatures(self): self.teacher = CCreature(color=self.teacher_color) self.teacher.to_corner(DOWN + RIGHT) self.teacher.look(DOWN + LEFT) '''From that self.students = VGroup(*[ Randolph(color=c) for c in self.student_colors ]) ''' # To this print("yessssss its runing, we are creating students.") self.students = VGroup(*[ random.choice([PlusCreature, MinusCreature, MultiCreature, DivCreature, RemCreature, AndCreature, EqualCreature, RoundBracketsCreature, CurlyBracketsCreature, SquareBracketsCreature, AngleBracketsCreature, HashCreature, QuestionCreature])(color=c) for c in self.student_colors ]) self.students.arrange(RIGHT) self.students.scale(self.student_scale_factor) self.students.to_corner(DOWN + LEFT) self.teacher.look_at(self.students[-1].eyes) for student in self.students: student.look_at(self.teacher.eyes) return [self.teacher] + list(self.students) ``` i created file manimlib.imports_with_c that imports c_creatures instead of pi_creatures when i run following code ( i tried self.setup() and self.c_creatures = VGroup(*self.create_c_creatures()) but this lines just create another creatures onto previouse ones) ```python from manimlib.imports_with_c import * class ts(TeacherStudentsScene): def construct(self): #self.setup() #self.c_creatures = VGroup(*self.create_c_creatures()) self.teacher_says( "Something different today!", run_time = 2 ) ``` ## Output always shows same students with two EqualCreatures and one QuestionCreature even when rendering code again and again but according to changes in method 'create_c_creatures()' in class TeacherStudentsScene in file c_creature_scene.py it should be create random creatures everytimes i run the code same output is following ![output](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/ts.png) it always print the output from line print("yessssss its runing, we are creating students.") in create_c_creatures() method that means it runs every time between multiple renders. this mean may be there is something wrong with random.choice() method but i tried following code. ```python import random def a1(): return "1" def a2(): return "2" def a3(): return "3" def a4(): return "4" def a5(): return "5" numbers = [*[random.choice([a1,a2,a3,a4,a5])() for i in range(0,20)]] print(numbers) ``` it allways print random numbers. but when i put this code inside create_c_creatures() like follow ```python print("yessssss its runing, we are creating students.") self.students = VGroup(*[ random.choice([PlusCreature, MinusCreature, MultiCreature, DivCreature, RemCreature, AndCreature, EqualCreature, RoundBracketsCreature, CurlyBracketsCreature, SquareBracketsCreature, AngleBracketsCreature, HashCreature, QuestionCreature])(color=c) for c in self.student_colors ]) def a1(): return "1" def a2(): return "2" def a3(): return "3" def a4(): return "4" def a5(): return "5" numbers = [*[random.choice([a1, a2, a3, a4, a5])() for i in range(0, 20)]] print(numbers) ``` now it always shows same numbers. # then whats wrong with my code ? why always same students ?
[ "it solved by putting random.seed()\r\n```python \r\nrandom.seed()\r\nself.students = VGroup(*[\r\n random.choice([PlusCreature,\r\n MinusCreature,\r\n MultiCreature,\r\n DivCreature,\r\n RemCreature,\r\n ...
29
SVGMobject makes svg images without colors and proper geometry. : How to make svg images with colors and proper geometry ? ```python class SVGTest(Scene): def construct(self): svg1 = SVGMobject("Partial") self.play(FadeIn(svg1)) self.wait() ``` # Partial.svg is looks like ![Partial.svg](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/ezgif-4-6fb2b17cbc34.png) # Output ![Output](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/SVGTest.gif) even i tried other svg images, same problem with all svg images. i want to do that so that i can create some similar charaters to 'PiCreatures' and use Transform( ) to perform animations among different poses's svg images.
[ "https://www.youtube.com/watch?v=KGdA8IB6JL0&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F&index=27\r\n\r\ni found your video, thanku.\r\n\r\ni think that svg file is having improper geometry.", "please make video about expressions." ]
28
Can't use TextMobject in CONFIG in latest version : Can't use TextMobject in CONFIG ![image](https://user-images.githubusercontent.com/15608306/79626763-276e3480-80f8-11ea-8d2f-4c3b0879bd72.png) gives error ```shell Traceback (most recent call last): File "./manim.py", line 5, in <module> manimlib.main() File "/Users/qianyiqian/Development/manim_practice/manimlib/__init__.py", line 11, in main config = manimlib.config.get_configuration(args) File "/Users/qianyiqian/Development/manim_practice/manimlib/config.py", line 185, in get_configuration module = get_module(args.file) File "/Users/qianyiqian/Development/manim_practice/manimlib/config.py", line 180, in get_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "myPractice.py", line 425, in <module> class WhatIsCONFIG(Scene): File "myPractice.py", line 427, in WhatIsCONFIG "object_1": TextMobject("Object 1"), File "/Users/qianyiqian/Development/manim_practice/manimlib/mobject/svg/tex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs File "/Users/qianyiqian/Development/manim_practice/manimlib/mobject/svg/tex_mobject.py", line 44, in __init__ self.template_tex_file_body File "/Users/qianyiqian/Development/manim_practice/manimlib/utils/tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "/Users/qianyiqian/Development/manim_practice/manimlib/utils/tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: 7ba99e26556cd349.log ``` When I remove the TextMobjec() in CONFIG, it can be compiled.
[ "Yes, that is normal, because the latest version of Manim has a different configuration when compiling .tex files, so that this does not happen you can do something like:\r\n```python\r\nCONFIG = {\r\n \"text_1\": \"Some text\"\r\n}\r\ndef construct(self):\r\n text = TextMobject(self.text_1)\r\n```" ]
27
Error: Import Error : While running the manim.py. : `~/manim# python3.7 -m manim example_scenes.py SquareToCircle -pl Traceback (most recent call last): File "/root/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/root/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/manim/manim.py", line 2, in <module> import manimlib File "/root/manim/manimlib/__init__.py", line 4, in <module> import manimlib.extract_scene File "/root/manim/manimlib/extract_scene.py", line 9, in <module> from manimlib.scene.scene import Scene File "/root/manim/manimlib/scene/scene.py", line 12, in <module> from manimlib.camera.camera import Camera File "/root/manim/manimlib/camera/camera.py", line 9, in <module> import cairo File "/root/anaconda3/lib/python3.7/site-packages/cairo/__init__.py", line 1, in <module> from ._cairo import * # noqa: F401,F403 ImportError: /root/anaconda3/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index` I watched your video I followed everystep shown in [your video](https://www.youtube.com/watch?v=z_WJaHYH66M), the last step while running `example_scenes.py`, it gives `import error`. Please Help, I am trying to install Manim since last 3 days :(
[ "See this:\r\nhttps://github.com/3b1b/manim/issues/430\r\nhttps://stackoverflow.com/questions/48049253/python-import-cairo-error-2-7-3-6-undefined-symbol-cairo-tee-surface-inde\r\nhttps://gitmemory.com/issue/3b1b/manim/430/461945643", "Thanks @Elteoremadebeethoven . This is resolved now. But I am facing another i...
26
MoveAlongPathWithAngle : Hi there :-) I was looking for the code which produces the "arrow" to follow the curve. Thank you for providing this useful part of the code. Best and sincerely greetings, Thomas ![MAPWA](https://user-images.githubusercontent.com/39776780/78771536-99c07580-7990-11ea-87c0-b1e6877c91d8.PNG)
[ "The code is shown in the video (see the description of the video), find it yourself." ]
25
Latex error converting to dvi : # Please Help I met this problem when I was trying to enable Tikz like in your tutorial. I followed every step, but I am using the latest manim not 3 Feb one. And when I compiled ExampleTikz scene, I got ![image](https://user-images.githubusercontent.com/15608306/78730313-0b051780-7902-11ea-81f6-0b8420c5b37b.png) I put Tikz packages in both tex_template.tex and ctex_template.tex. I have checked all the issues, but my problem exists. I also see ur responses in other places, so I will follow your step. the *latex* commander can be recognized, but I am not sure if I am missing packages or it might be other problems. ## Run latex tex_template.tex ``` This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./tex_template.tex LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-02-25> (/usr/local/texlive/2019/texmf-dist/tex/latex/standalone/standalone.cls Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan dalone (/usr/local/texlive/2019/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/local/texlive/2019/texmf-dist/tex/generic/iftex/ifluatex.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/iftex/iftex.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/usr/local/texlive/2019/texmf-dist/tex/latex/standalone/standalone.cfg) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2019/texmf-dist/tex/latex/preview/preview.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/luatex85/luatex85.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/preview/prtightpage.def))) (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/babel.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/switch.def) (/usr/local/texlive/2019/texmf-dist/tex/generic/babel-english/english.ldf (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/babel.def (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/txtbabel.def)))) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/doublestroke/dsfont.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/setspace/setspace.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/tipa/tipa.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/tipa/t3enc.def))) (/usr/local/texlive/2019/texmf-dist/tex/latex/relsize/relsize.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/textcomp.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/jknapltx/mathrsfs.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/fundus-calligra/calligra.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/wasysym/wasysym.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/ragged2e/ragged2e.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/ms/everysel.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/physics/physics.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3backend/l3backend-dvips.def))) LaTeX3 Warning: Argument delimiter '\big ' for the command '\@quantity' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@quantity' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@quantity' (LaTeX3) should be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@quantity' (LaTeX3) should be a single character. LaTeX3 Warning: Argument delimiter '\big ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\big ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\ket ' for the command '\bra' should be a (LaTeX3) single character. ) (/usr/local/texlive/2019/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-def/dvips.def)) (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype-pdftex.def) (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype.cfg)) (/usr/local/texlive/2019/texmf-dist/tex/latex/pgfplots/pgfplots.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.revision.tex) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/graphics.cfg))) (/usr/local/texlive/texmf-local/tex/latex/pgf/frontendlayer/tikz.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/basiclayer/pgf.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgfrcs.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfutil-common.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfutil-latex.def (/usr/local/texlive/2019/texmf-dist/tex/latex/ms/everyshi.sty)) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfrcs.code.tex)) (/usr/local/texlive/texmf-local/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeys.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeysfiltered.code. tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys-dvips.def (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys-common-posts cript.def))) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsyssoftpath.code .tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsysprotocol.code .tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcore.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathparser.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.basic.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.trigonome tric.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.random.co de.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.compariso n.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.base.code .tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.round.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.misc.code .tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfloat.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepoints.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathconstruct .code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathusage.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorescopes.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoregraphicstate. code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoretransformatio ns.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorequick.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreobjects.code. tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathprocessin g.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorearrows.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreshade.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreimage.code.te x (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreexternal.code .tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorelayers.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoretransparency. code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepatterns.code .tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduleshapes.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduleplot.code.tex) (/usr/local/texlive/texmf-local/tex/latex/pgf/compatibility/pgfcomp-version-0-6 5.sty) (/usr/local/texlive/texmf-local/tex/latex/pgf/compatibility/pgfcomp-version-1-1 8.sty)) (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgffor.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgfkeys.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgffor.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/tikz.code.te x (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/pgflibraryplothandler s.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmodulematrix.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarytopaths.code.tex))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/sys/pgfplotssysgeneric .code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/libs/pgfplotslibrary.c ode.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_loader.code.tex Package pgfplots: loading complementary code for your PGF version... (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_misc.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfkeys.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfkeysfiltered.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfmathfloat.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgflibraryplothandlers.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgflibraryfpu.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfcorescopes.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfcorelayers.code.tex) Package pgfplots: loading complementary utilities for your pgf version... (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfutil-common-lists.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_trig_format.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_leq.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.code .tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots liststructure.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots liststructureext.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots array.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots matrix.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable shared.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots deque.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.co de.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.da ta.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.verb .code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/libs/pgflibrarypgfplot s.surfshading.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots .surfshading.pgfsys-dvips.def))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotscolormap. code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotscolor.cod e.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.c ode.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsplothandlers.c ode.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplothandle r.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplotimage. code.tex))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code. tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotscoordprocessin g.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.cod e.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.markers.code. tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex ) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.paths.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduledecorations.co de.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.pathmorphing.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/decorations/pgflibrar ydecorations.pathmorphing.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.pathreplacing.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/decorations/pgflibrar ydecorations.pathreplacing.code.tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibraryplotmarks.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/pgflibraryplotmarks.c ode.tex))) (/usr/local/texlive/2019/texmf-dist/tex/latex/circuitikz/circuitikz.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarycalc.code.tex) ! I can't find file `tikzlibraryarrows.meta.code.tex'. <argument> ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.30 \usetikzlibrary{arrows.meta, bending} (Press Enter to retry, or Control-D to exit) Please type another input file name: ^D ! Emergency stop. <argument> ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.30 \usetikzlibrary{arrows.meta, bending} No pages of output. Transcript written on tex_template.log. ```
[ "Is my PGF/Tikz too old?\r\n'''\r\n\r\n *File List*\r\n article.cls 2019/12/20 v1.4l Standard LaTeX document class\r\n size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)\r\n tikz.sty 2010/10/13 v2.10 (rcs-revision 1.76)\r\n pgf.sty 2008/01/15 v2.10 (rcs-revision 1.12)\r\n pgfrcs.sty ...
24
Hola! Tengo una duda respecto a los gráficos en manim : Hola! sin antes disculparme con esta básica pregunta, quería plantearte una duda que me surgió al realizar gráficos de funciones, pues no encontré información en internet respecto esta. Bien, mi duda es que, ¿Cómo hago para disminuir el tamaño de los ejes y de la función ?, pues si escalo la variable "graph" sólo se escala el gráfico de mi función, mas no los ejes "x" e "y". Además, ¿Cómo hago para animar un movimiento de esta? Había pensado en definir un mismo gráfico dos veces, con distintas posiciones, pero esto resulta imposible pues los "ejes" se definen una sóla vez Espero se entiendan mis preguntas Saludos y de ante mano muchas gracias !
[ "Puedes crear los ejes que quieras usando `Axes`, ver [aquí](https://github.com/3b1b/manim/blob/48f2a1ec3c86f3ad26b6b1292b6917149005cbab/manimlib/mobject/coordinate_systems.py#L129), ya que este objeto tiene el método [`get_graph()`](https://github.com/3b1b/manim/blob/48f2a1ec3c86f3ad26b6b1292b6917149005cbab/maniml...
23
"latex" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. : Hola! tengo un problema al ejecutar "WriteStuff" cuando instalo manim. Inserto lo que me aparece en la pantalla de cmd C:\Manim\manim_3_feb>python -m manim example_scenes.py WriteStuff -pl Writing "\centering This is a some text" to C:\Manim\manim_3_feb\manimlib\files\Tex\fc014450ce29cae4.tex "latex" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. Traceback (most recent call last): File "C:\Manim\manim_3_feb\manimlib\extract_scene.py", line 153, in main scene = SceneClass(**scene_kwargs) File "C:\Manim\manim_3_feb\manimlib\scene\scene.py", line 54, in __init__ self.construct() File "example_scenes.py", line 100, in construct tex_to_color_map={"text": YELLOW} File "C:\Manim\manim_3_feb\manimlib\mobject\svg\tex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs File "C:\Manim\manim_3_feb\manimlib\mobject\svg\tex_mobject.py", line 45, in __init__ self.template_tex_file_body File "C:\Manim\manim_3_feb\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "C:\Manim\manim_3_feb\manimlib\utils\tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: C:\Manim\manim_3_feb\manimlib\files\Tex\fc014450ce29cae4.log Saludos
[ "Solucionado, en mi caso en el \"Path\" no estaba agregado miktex\r\ntuve que agregarlo a mano escribiendo la linea \"C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64\"" ]
22
Necesito ayuda para poder instalar manim. Mi problema básicamente es con la instalación de Pycairo. De igual forma instalé ffmpeg de una diferente, pero si se instaló, solo que no me instala el pycairo. : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "Escribe tu problema, no me estás diciendo nada, tienes que escribir todos tus logs (lo que te dice la terminal) y lo que sea necesario para ayudarte, cerraré este issue pero escribe otro con el formato de Markdown." ]
21
Error when trying to use text like arrays : I write this in my code, and it works fine: `title = TexMobject("\\frac{tanx - \\sqrt{3}}{2cosx + 1} = 0")` But when I write like this: `title = TexMobject("\\frac{","tanx","-\\sqrt{3}}{","2cosx","+1} = 0")` I got `Xelatex error converting to dvi` What's the problem here?
[ "Like I said in my [video](https://www.youtube.com/watch?v=DGSj7weT-y8&t=8m37s) don't use `\\frac` to fragment formulas, use `\\over`." ]
20
type object 'Animation' has no attribute 'mobject' : windows 10 64bit python3.7.2 manimlib-0.1.10 when I tpye the code in update_successions/update_successions.py class SuccessionExample1(Scene): there is an error when run this class in Succession(Animation, Mobject(), {"run_time": 2.1}, AttributeError: type object 'Animation' has no attribute 'mobject' I dont know why class SuccessionExample1Fail(Scene): ... self.play( ShowCreationThenDestruction(dashed_line, submobject_mode="lagged_start", run_time=5), Succession(Animation, Mobject(), {"run_time": 2.1}, Write, text) ) thank you for your time
[ "You are using the most recent version, so, you have to use [this](https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/update_successions/successions_in_recent_versions.py)." ]
19
Problems with "Cairo" : Hi, I could run Manim on python 3.7.4. But after installing python3.7.5, Manim just doesn't work. When I tried to run it, it says' ModuleNotFoundError: No module named 'cairo' And when I changed"import Cairo"into"import cairocffi as cairo". Another problem came up:"ValueError: Got a 480 bytes buffer, needs at least 1639680." Could you tell me how to solve this?
[ "\r\nYou may have to install Pycairo, I don't know what operating system you use (it would be good if you indicated it), but otherwise, I have no idea how to fix it.", "The OS I use is the latest Mac OS\r\n", "I have the same issue. And I try to install pycairo. And nothing change.", "Try install manim in Lin...
18
ColoringText(Scene) does not work : If I try rendering the scene I get the following error from the console: `Traceback (most recent call last): File "C:\Manim\manim_28aug\manimlib\extract_scene.py", line 155, in main scene = SceneClass(**scene_kwargs) File "C:\Manim\manim_28aug\manimlib\scene\scene.py", line 53, in __init__ self.construct() File "solow.py", line 49, in construct run_time = 0.12 File "C:\Manim\manim_28aug\manimlib\animation\composition.py", line 34, in __init__ [anim.mobject for anim in animations] File "C:\Manim\manim_28aug\manimlib\animation\composition.py", line 34, in <listcomp> [anim.mobject for anim in animations] AttributeError: type object 'ApplyMethod' has no attribute 'mobject'` Note: I am using the 28 Aug version.
[ "What part of\r\n> I remind you that this course is based on the version of February 3, 2019\r\n\r\nis it not clear?\r\nIn a few months I will make an update, but in the meantime, if you want to use my course, you have to use the version that I specify." ]
17
Analytic Geometry Series don't work in Manim_3feb : When I copied the code in Analytic Geometry Series and tried to run it, it says"TypeError: get_graph() got an unexpected keyword argument 'stroke_width'". Is it that Analytic Geometry Series can't run in Manim_3feb?
[ "Solved, copy the code again" ]
16
class ColorByCaracterFixed doesn't work : it only shows d/dx in the video, and the rest disappears
[ "Send the image and the code. Remember that this tutorial is of the 3/feb version." ]
15
Update update_successions.py :
[]
14
AttributeError: type object 'ShowCreation' has no attribute 'mobject' : hi, when i run the last code in `English/6b_plots_3D/scenes.md/Text3D3` ``` class Text3D3(ThreeDScene): def construct(self): axes = ThreeDAxes() self.set_camera_orientation(phi=75 * DEGREES,theta=-45*DEGREES) text3d=TextMobject("This is a 3D text") self.add_fixed_in_frame_mobjects(text3d) #<----- Add this text3d.to_corner(UL) self.add(axes) self.begin_ambient_camera_rotation() self.play(Write(text3d)) sphere = ParametricSurface( lambda u, v: np.array([ 1.5*np.cos(u)*np.cos(v), 1.5*np.cos(u)*np.sin(v), 1.5*np.sin(u) ]),v_min=0,v_max=TAU,u_min=-PI/2,u_max=PI/2,checkerboard_colors=[RED_D, RED_E], resolution=(15, 32)).scale(2) self.play(LaggedStart(ShowCreation,sphere)) self.wait(2) ``` my ubuntu_18.04 attention program like the title about : `AttributeError: type object 'ShowCreation' has no attribute 'mobject'` how can i solver this problem?
[ "My tutorials are created to work on the February 3, 2019 version. If you want to use that code in the modern version you must replace the line:\r\n```python\r\nself.play(LaggedStart(ShowCreation,sphere))\r\n```\r\nwith:\r\n```python\r\nself.play(LaggedStartMap(ShowCreation,sphere))\r\n```" ]
13
Manim tutorial | 3 - Arrays - CheckFormulaByTXT - what should i do about this... : this is the code: ![image](https://user-images.githubusercontent.com/36161299/64602052-a37cfd00-d3f0-11e9-998a-f3f60d7a9eb1.png) and the Traceback: ![image](https://user-images.githubusercontent.com/36161299/64602113-be4f7180-d3f0-11e9-81bd-a317c98f8d72.png) and I checked the file... ![image](https://user-images.githubusercontent.com/36161299/64602276-138b8300-d3f1-11e9-8192-38dcf8ac9eaa.png) it means the problem is still in the XeLaTax?...
[ "This only works in the 3/feb version", "> This only works in the 3/feb version\r\n\r\nthanks..." ]
12
How to realize this animation? : ![image](https://user-images.githubusercontent.com/36161299/64478651-cdaaa100-d1dd-11e9-886c-deb18c5920f7.png) I had try these three orders: 1.dot_2.rotate(110*DEGREES,about_point=dot_1,) 2.dot_2.rotate(110*DEGREES,about_point=np.array([0,1,0])) 3.self.play(ApplyMethod(dot_2.rotate(110*DEGREES,about_point=(0,1,0)))) but all these didn't work...
[ "[Here](https://github.com/Elteoremadebeethoven/Manim-TB/blob/old_master_1/proy_term/tutorial_manim/positions.py#L423) is the code, replace `Escribe` with `Write`", "Thanks a lot! " ]
11
Manim is working in terminal but not in python shell : I have succesfully installed everything as you instructed in your manim tutorial. Code is perfectly working in terminal but the same in code is not working in python shell. I am sharing the code and the error. > from big_ol_pile_of_manim_imports import * > > class WriteStuff(Scene): > def construct(self): > example_text = TextMobject( > "This is a some text", > tex_to_color_map={"text": YELLOW} > ) > example_tex = TexMobject( > "\\sum_{k=1}^\\infty {1 \\over k^2} = {\\pi^2 \\over 6}", > ) > group = VGroup(example_text, example_tex) > group.arrange_submobjects(DOWN) > group.set_width(FRAME_WIDTH - 2 * LARGE_BUFF) > > self.play(Write(example_text)) > self.play(Write(example_tex)) > self.wait() Error is > Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52) > [Clang 6.0 (clang-600.0.57)] on darwin > Type "help", "copyright", "credits" or "license()" for more information. > >>> > RESTART: /Users/richie/Desktop/Work/maniminstall/manim-master/manim_practice.py > > Warning (from warnings module): > File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pydub/utils.py", line 165 > warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) > RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work > >>>
[ "Manim was not designed to be used in the python shell, if you want to use a development environment you can use PyCharm, [here](https://superuser.com/questions/1470624/how-i-could-execute-this-code-in-pycharm-python-code-with-parameters) how configure it." ]
10
RemoveBackgroundStrokeWidth----it doesn't work : source code: class RemoveBackgroundStrokeWidth(ChangeBackgroundColor): CONFIG={ "text":TexMobject( r"\frac{d}{dx}\Bigr|_{y=2}", background_stroke_width=0, #<- Add this line ).scale(5) } $ python3 -m manim ***.py RemoveBackgroundStrokeWidth -pl Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/***/Desktop/manim-master/manim.py", line 5, in <module> manimlib.main() File "/Users/***/Desktop/manim-master/manimlib/__init__.py", line 11, in main config = manimlib.config.get_configuration(args) File "/Users/***/Desktop/manim-master/manimlib/config.py", line 185, in get_configuration module = get_module(args.file) File "/Users/***/Desktop/manim-master/manimlib/config.py", line 180, in get_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "*****.py", line 19, in <module> class RemoveBackgroundStrokeWidth(ChangeBackgroundColor): NameError: name 'ChangeBackgroundColor' is not defined and btw.... if i don't wanna put the order"background_stroke_width=0," in the config... what should i do? like this? square.set_stroke(WHITE, 10) square.set_background_stroke_width = 0 ...? or label1=TexMobject("a") label1.set_stroke_width=0 ....i try all of these orders ... but it seems that it doesn't work...
[ "Please use the markdown format to make it easier to read the code. Here I show you a [quick](https://guides.github.com/features/mastering-markdown/) tutorial.\r\n\r\nThis is because you only have the `RemoveBackgroundStrokeWidth` scene, but you also need to have `ChangeBackgroundColor`. `RemoveBackgroundStrokeWidt...
9
ModuleNotFoundError: No module named 'cairo' : I did as per your instructions but at the final command `python3 -m manim example_scenes.py WriteStuff -pl` I am getting an error `ModuleNotFoundError: No module named 'cairo` Since I have already Latex so I did not download it. I am attaching a pic of it logo. ![Screen Shot 2019-08-12 at 4 32 26 PM](https://user-images.githubusercontent.com/54025486/62860784-f8a8ee80-bd1e-11e9-947e-a6d2534d8c9a.png) Kindly help.
[ "That is not a problem of LaTeX, check [this](https://github.com/3b1b/manim/issues/661)", "@Elteoremadebeethoven Now I am in more worse situation. I deleted every progress then I restart it. But now when I am using the command\r\n\r\n`python3 -m pip install -r requirements.txt`\r\n\r\nIt is showing error\r\n\r\n`...
8
Install requirements for Cairo / Ubuntu 18.04 : Hello! I just wanted to report a minor issue that I encountered, to help people in the future. I am running on Ubuntu 18.04, and had both python 3.6 and python 3.7 already installed. When installing the dependencies for Cairo, I encountered no problem. However, when installing Cairo itself, I get an error about a missing header "Python.h". The reason is simply that when executing ```bash sudo apt install python3-dev ``` the package manager installed the headers for python 3.6. Installing explicitly the correct version, *i.e.*, `python3.7-dev`, solved the issue. Hope it helps! :)
[ "Thank you very much for this, but I think it would be better if you sent a pull request to the [official documentation](https://github.com/3b1b/manim/blob/master/docs/source/installation/linux.rst), in this way the developers can add it to the repository.", "Hi, I considered doing what you suggested and forked m...
7
fixed some typos :
[ "Thanks" ]
6
ModuleNotFoundError: No module named 'cv2' : While Running the SquareToCircle and WriteStuff Demos, I got this module error whyyy?!Please help ![mod](https://user-images.githubusercontent.com/52841935/61164983-6052fa80-a523-11e9-87c0-f39796149211.PNG)
[ "fixes using `pip install opencv-python`" ]
5
11:25: ImportError: DLL load failed: %1 is not a valid Win32 application. : While attempting to compile the SquareToCircle or WriteStuff Demos, I get this %1 thing! ![DLL](https://user-images.githubusercontent.com/52841935/61163791-4f739c00-a4c5-11e9-8776-68162103b852.PNG)
[]
4
where to get big_ol_pile_of_manim_imports??? : ###
[ "What do you mean? `big_ol_pile_of_manim_imports` is in the main manin folder.", "thanks,problem solves" ]
3
11:25 Installing manim for windows video. Error : I am stuck 11:25 When I enter the command shown in your video it shows the following output. Confused. ![Screenshot (14)](https://user-images.githubusercontent.com/52619530/60765823-fe773880-a0bd-11e9-9fea-fdf0877cf2fa.png)
[ "It is `SquareToCircle`, you wrote `SquareTocircle`, please be more careful, This way we avoid unnecessary problems." ]
2
tengo el siguiente error ""See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi." : Después de buscar entre los archivos de donde venía el error encontre que no se esta conviertiendo el archivo .tex a .dvi con los textos a animar, también no puedo instalar desde el pip pydvi, que parece ser el modulo que convierte los archivos .tex a .dvi, marcando el error siguente: ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\Gilberto\AppData\Local\Temp\pip-install-tga6ff5_\pydvi\setup.py", line 30, in <module> execfile('setup_data.py') NameError: name 'execfile' is not defined ---------------------------------------- ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Gilberto\AppData\Local\Temp\pip-install-tga6ff5_\pydvi\ parece haber un error con el instalador especificamente con "execfile" sin embargo manim funciona mientras no escriba texto, tambien ya reinstale el miktex para estar seguro que no es latex el que esta fallando
[ "Eso posiblemente se debe a que tienes varias versiones de Python.\r\n¿Usas `python -m pip install` o `python3 -m pip install`?. Ya que en Windows eso es un problema, yo recomiendo que siempre uses `python -m pip install`. \r\nSi eso no sirve usa `pip install`.", "ya he intentado con `python -m pip install` me ma...
1
can't 'import Cairo' after I ' brew install Cairo ' :
[ "Please send a screenshot of your terminal", "> Please send a screenshot of your terminal\r\n\r\nI already solved the problem by running 'conda install pycairo' in terminal. This is mainly due to the 'requirements.txt' in 3b1b/Manim does not conform to pycairo version for OS X.", "Perfect" ]
54
Function graphs to updaters : Hi everyone i don't know how to create this animation: add a decimal number "a", With the change of a, y also changes, y=a, and create a rectangular coordinate system with time as the horizontal axis and y as the vertical axis. Updater and ValueTracker seems to have no effect. Elteoremadebeethoven made a tutorial about updaters. (without graphs) But it's still hard to make this animation with graph. Here is my code: ``` class UpdaterTest9(GraphScene): def construct(self): # global number_value numberplane = NumberPlane() self.add(numberplane) self.setup_axes() line = Square() line2 = Circle() number = DecimalNumber(0, num_decimal_places=5) # number.add_updater(lambda m: m.set_value(get_area(line))) def number_updater(obj): obj.add_updater(lambda m: m.set_value(get_area(line))) # self.get_graph(lambda x: x.set_value(get_area(line))) number.add_updater(number_updater) # if number.get_value() != 0: number_value = number.get_value() graph = self.get_graph( x_values=[0, number_value], y_values=[0, number_value], # func=lambda x: 0 func=number_value ) graph.add_updater(number_updater) self.add(number, graph) self.play(Transform(line, line2), rate_func=linear, run_time=8) self.wait(2) ``` ``` class UpdaterTest10(GraphScene): def construct(self): # global number_value numberplane = NumberPlane() self.add(numberplane) self.setup_axes() line = Square() line2 = Circle() vt = ValueTracker(0) number = DecimalNumber(0, num_decimal_places=5) # numberv = ChangeDecimalToValue(decimal_mob=number) # numberv = CountInDecimal() # number.add_updater(lambda m: m.set_value(get_area(line))) def number_updater(obj): obj.add_updater(lambda m: m.set_value(vt.get_value(get_area(line)))) # self.get_graph(lambda x: x.set_value(get_area(line))) number.add_updater(number_updater) # if number.get_value() != 0: number_value = number # number_value.add_updater(lambda m: m.set_value(number)) def number_value_updater(obj): obj.add_updater(lambda m: m.set_value(number)) # graph = self.get_graph( # x_values=[], # y_values=[], # # func=lambda x: 0 # func=number_value_updater(obj) # # ).add_updater(number_value_updater) graph = FunctionGraph(function=number_updater) graph.add_updater(number_updater) self.add(number, graph) self.play(Transform(line, line2), rate_func=linear, run_time=8) self.wait(2) ```
[]
53
I can’t install requirements.txt, it founds an error with the mapbox_earcut. Could you help me? :
[]
52
Manim Installation Unsuccesfull "IndexError: list index out of range" : after the installation of manim I tried to use the command line in the command promt python -m manim example_scenes.py SquareToCircle -pl this works just fine, the problem araise when i try to use the command python -m manim example_scenes.py WriteStuff -pl ![manim-idex-error](https://user-images.githubusercontent.com/20775038/104865767-7d2f7180-5902-11eb-8a17-722889a42686.PNG) and then I got that, looking through different forums I found this ![manim-idex-error2](https://user-images.githubusercontent.com/20775038/104866072-47d75380-5903-11eb-9c3f-444a7101e814.PNG) I can tell that if I do as it is said it works for the WriteStuff, but then after even the most basic exercise related to text generation fails which remaind me of this ![manim-idex-error3](https://user-images.githubusercontent.com/20775038/104866200-9553c080-5903-11eb-8ddc-70acd23279e3.PNG)
[ "Hey Mike, I also faced this problem when i was starting off with manim. The only way to solve this problem is to download and install all the tex packages form MikTex. It will definitely work after this step. \r\n\r\n", "If you have any doubt, don't hesitate to share.. Would love to help\r\n" ]
51
Fixed typo and grammatical mistake. :
[ "Thanks" ]
50
Creature Malformation : So, I am with manim version 3 feb 2019 I followed this tutorial: https://youtu.be/KGdA8IB6JL0 I changed ALL the "NumberCreature" with "criatura_phi" I have this code: class phiCena(Scene): def construct(self): Ale=Alex().to_edge(DOWN) palabras_ale = TextMobject("Learn to do \\animations with me!!") self.add(Ale) ### self.play(criatura_phiSays( Ale, palabras_ale, bubble_kwargs = {"height" : 4, "width" : 6}, target_mode="speaking" )) ### for k in range(0, 4): self.wait() self.play(Blink(Ale)) When I render WITHOUT the middle-part (the part surrounded by the ###), it all goes right (the phi_Cena_ok gif). ![phiCena_ok](https://user-images.githubusercontent.com/70387940/97888507-1d71f300-1d23-11eb-9f0c-e59700de34bf.gif) But when I try to render WITH the middle-part, something weird happens (the phi_Cena_not_ok gif). ![phiCena_not_ok](https://user-images.githubusercontent.com/70387940/97888558-295db500-1d23-11eb-8de1-8f0e8f8a5a64.gif) (I render it like mp4 video, but I had to convert them to gifs to pu them here :P)
[ "That is because you don't have `number_creature_speaking.svg` file in your svg folder, you have to create one, all `target_mode=\"\"som` have to add a new svg file named as `number_creature_some.svg`.", "Wait, what? Sorry, did not understand anything.\r\nDo I have to create a `number_creature_speaking.svg` on th...
49
fix incorrect spelling [Stantford -> Stanford] :
[ "Thanks" ]
48
No me reconoce el comando "ffmpeg" : Pasa que al instalar FFmpeg no es reconocido como comando interno o externo. ![image](https://user-images.githubusercontent.com/72575814/96525764-ade30a80-1230-11eb-874c-59e90a449cea.png) Tengo la carpeta de FFmpeg en la raíz C: así como en las variables de entorno, así que no sé cuál sea el problema:( Nota: tengo la version 3.9 de Python pero no sé si ese sea el problema.
[]
47
Update resume.md : Fixed minor typo
[ "Thank you!" ]
46
Update README.md : some tweaks for better understanding for the reader
[]
45
Positional arguments are missing (kwargs) : I'm learning Manim through your video tutorial. Thank you for giving us such a great opportunity to learn how to use it. Currently I'm investigating the making use of arrays (Manim tutorial | 3). Almost every one of 26 classes (FormulaColor1, CrossText, etc) from 3_text_like_arrays.py give an error: ` __init__() missing 1 required positional argument: 'kwargs'` I suppose some configuration parameters are missing, but I don't know how to set them. I use Win10 x64. For example, when calling FormulaColor1, which is: ``` class FormulaColor1(Scene): def construct(self): text = TexMobject("x","=","{a","\\over","b}") text[0].set_color(RED) text[1].set_color(BLUE) text[2].set_color(GREEN) text[3].set_color(ORANGE) text[4].set_color("#DC28E2") self.play(Write(text)) self.wait(2) ``` I receive this error: ``` Traceback (most recent call last): File "C:\Program Files\Manim\manimlib\extract_scene.py", line 155, in main scene = SceneClass() File "C:\Program Files\Manim\manimlib\scene\scene.py", line 75, in __init__ self.construct(**kwargs) File "3_text_like_arrays.py", line 26, in construct self.play(Write(text)) TypeError: __init__() missing 1 required positional argument: 'kwargs' ``` What is the problem?
[ "Reinstalling manim solves this.\r\n[See for the details.](https://github.com/3b1b/manim/issues/1191)" ]
44
¿Error de renderizado? : Hola, he estado checando las guías propuestas en el canal y el git y tengo un problema. Al renderizar el código siguiente como vídeo, no me salen las etiquetas del lado derecho de la gráfica. Lo curioso de esto es que cuando lo renderizo como imagen, aparece todo. ¿Podrías ayudarme? ## Multiline code Mi código es: ```python from manimlib.imports import * def Range(in_val,end_val,step=1): return list(np.arange(in_val,end_val+step,step)) class GrafInt2(GraphScene): CONFIG = { "y_max": 1.5, "y_min": -1.5, "x_max": 2*PI, "x_min": -2*PI, "x_tick_frequency": PI/2, "y_tick_frequency": 0.5, "x_axis_width": 9, "x_axis_label": None, #No escribe la etiqueta del eje y, para eso, ir a línea 148 "y_axis_label": None, #No escribe la etiqueta del eje x, para eso, ir a línea 149 #"axes_color": BLUE, Podemos determinarlo desde aquí o como se ve en la línea 141-143 "graph_origin": ORIGIN } def construct(self): self.setup_axes() #Creación de objetos titulo = TextMobject("Gráfica coseno") graf_cos = self.get_graph( lambda x : np.cos(x), color = RED, x_min = -2*PI, x_max = 2*PI, ) #Posición de los objetos titulo.to_corner(UL) #Propiedades de los objetos graf_cos.set_stroke(width = 4) #Inicio de animación self.play( Write(titulo), run_time = 4 ) self.play( ShowCreation(graf_cos), run_time = 7 ) self.wait() def setup_axes(self): GraphScene.setup_axes(self) #Grosor de los ejes XY self.x_axis.set_stroke(width = 3) self.y_axis.set_stroke(width = 3) #Color de los ejes XY self.x_axis.set_color(BLUE) self.y_axis.set_color(BLUE) #Modificación de etiquetas de los ejes et_x = TexMobject("\\theta") et_y = TexMobject("f(\\theta)") et_x.next_to(self.x_axis,RIGHT) #Posiciona la etiqueta del lado derecho del eje de las x et_y.next_to(self.y_axis,UP) #Posiciona la etiqueta arriba del eje y #Para las etiquetas del eje Y self.y_axis.label_direction = LEFT #Posición de valores de y respecto al eje y self.y_axis.add_numbers(*[-1,1]) #Valores de y donde poner etiquetas #Para las etiquetas del eje X x_min = -2*PI x_max = 2*PI saltos_x = PI valor_decimal_x = Range(x_min,x_max,saltos_x) #Texto que llevará según el valor de X lista_x = TexMobject( "-2\\pi", #Para -2*PI "-\\pi", #Para -PI "\\", #Para cero "\\pi", #Para PI "2\\pi." #Para 2*PI ) #Asignación de texto a valores valores_x = [(i,j) for i,j in zip(valor_decimal_x, lista_x) ] self.x_axis_label = VGroup() for x_val,x_tex in valores_x: x_tex.scale(0.7) #Escala de texto de las etiquetas eje X x_tex.next_to(self.coords_to_point(x_val,0), DOWN) #Posición de las etiquetas eje X self.x_axis_label.add(x_tex) #Animación de objetos creados para el plano self.play( *[ShowCreation(objeto) for objeto in [ self.x_axis, self.y_axis, et_x, et_y, self.x_axis_label ] ], run_time=3 ) ```
[]
43
How to animate python code using manim? : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[]
42
Is it possible to place elements of a for in a VGroup? : for i in range(1,101): add i in VGroup
[ "Yes:\r\n\r\n```python\r\nvg = VGroup(...)\r\n.....\r\nfor i in range(...):\r\n vg.add(some_mob)\r\n```" ]
41
How can I draw curves in polar form. ex: r = 1 + 2cos(alpha). : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "Use the transformation equations to get the parametric equations, then use the ParametricFunction." ]
40
RateFunctions in rate_functions_scenes.py:123 doesn't compile the names of rate functions that have underscoores : Whereas we can see the video of the example running, attempting to compile and generate de scene RateFunctions using the Manin-TB clone (Feb/2019) chokes the LaTeX generation. If the names of the rate functions that have an undescore are commented out, the scene is generated, albeit with less examples...
[ "My Manim-TB repo is pretty sloppy, it's normal, use another version instead." ]
39
Update scenes.md :
[]
38
Hoping for a reply : I had a problem rendering the WriteStuff command as i got an error of latex not recognized as a batch file. But then after going through your thread on the issue i reinstalled latex and i was able to play the command. However now when i am trying to run render the WhatIsCONFIG command i get the same error of latex not recognized as a batch file. I tried running the WriteStuff command and it works just fine. But the Whatisconfig gives the error. I think the problem is with the .py files and the code regarding dvi. however as i am not from the background of computer science i do not know how to proceed
[ "You have to use the 3/feb release, that code does't work with the most recent", "Does that mean I will have to use packages in the requirement text only?\nAlso I find it weird that latex is not recognised as a batch file yet the\nWritestuff file plays efficiently. Is there are page where I can know how\nto use ...
37
Please help with that parametric surface : ### Please, I want to know or some guide to plot that parametric surface First one I want to thank you for this content, it's amazing. Returning with my problem I mean something like this: ![cassini4b](https://user-images.githubusercontent.com/49081413/82741907-116a1a00-9d1d-11ea-9015-378768bd75cd.gif) I saw that post [http://lemur.cmp.uea.ac.uk/Research/ivis/backup/PhD/Latest/Paul%20Bourke%20Screenshots/Eggs,%20melons,%20and%20peanuts%20-%20Cassini%20Oval.htm](url) to guide me, but I can´t understand how can I use that info. to create the parametric surface using `ParametricSurface(lambda u, v: np.array([ # The parameters of that surface]))` I'll be very greatful if you can help me. I'm trying with this ```python lemnisBer = ParametricSurface( lambda u, v: np.array([ np.cos(u) / (np.sin(u)**2 + 1), 0 np.cos(u) * np.sin(u) / (np.sin(u)**2 + 1), ]), u_min=TAU, u_max=TAU, checkerboard_colors=[YELLOW_E,YELLOW_E], resolution=(15, 32)).scale(1.5) ``` But that don't graph a peanut or something similar. Best and sincerely greetings,
[ "Since this is not a question about installation or my tutorials, I recommend that you watch my **How to ask your questions about manim** video. If you are still interested in me personally solving your question, I would charge you 15 USD via PayPal.", "Oh thanks you, I solved that , I did the graph that I want, ...
36
Error,runting error :
[]
35
Shift animation returns a black screen video : Is it a bug? Or there is another way to shift an animation? ``` text = Text("Manim Animation", font="Arial", stroke_width=0) self.play( LaggedStartMap(FadeIn, text), ApplyMethod(text.shift, UP) ) ``` Thanks for [these](https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/update_successions/successions_in_recent_versions.py) awesome examples!
[ "As I explained in video 8.2 you cannot apply two Animation's classes to the same object, you must do it either using methods, or create a function and apply it with ApplyFunction (you can see it in my documentation), or creating a specific updater function. It is not a bug.\r\n\r\n```python\r\nclass Test(Scene):\r...
34
Text like arrays better approach : From https://github.com/3b1b/manim/issues/941#issuecomment-623012312 ```python3 class colorIssue(Scene): def construct(self): # it shows error if you put a single "{" or "}" braces character into array numeros4 = TexMobject( "\\mathbb{N}", "=", "\\{", "1", ",", "2", ",", "3", ",", "\\ldots", "\\}" ) numeros4[0][2].set_color(RED) self.add(numeros4) self.wait() class colorBetterApproach(Scene): def construct(self): # if you want to color "{" or "}" braces character separately numeros4 = TexMobject( "\\mathbb{N}=\\{1,2,3,\\ldots\\}") # coloring first 2 characters numeros4[0][0:2].set_color(GREEN) # coloring 3rd character numeros4[0][2].set_color(RED) self.add(numeros4) self.wait() ``` ![3_text_like_arrays_better_approach](https://user-images.githubusercontent.com/30471072/80891935-f50e2b00-8ce4-11ea-8cbf-b4737bd8cadd.png) ```python3 class colorBetterApproach1(Scene): def construct(self): text = TexMobject("\\sqrt{\\int_{a}^{b}\\left(\\frac{x}{y}\\right)dx}") text[0][0].set_color(RED) text[0][1].set_color(BLUE) text[0][2].set_color(GREEN) text[0][3].set_color(YELLOW) text[0][4].set_color(PINK) text[0][5].set_color(ORANGE) text[0][6].set_color(PURPLE) text[0][7].set_color(MAROON) text[0][8].set_color(TEAL) text[0][9].set_color(GOLD) text[0][10].set_color(GRAY) text[0][11].set_color(RED) self.play(Write(text)) self.wait() ``` ![better](https://user-images.githubusercontent.com/30471072/80892649-5d5f0b80-8ce9-11ea-85e6-49d38ae57828.gif)
[ "In my tutorials I use the February 3 version for the first videos, so this does not work for me at the moment. But thanks." ]
33
Create CodeMobject.md : CodeMobject to display code with color highlighted from https://github.com/3b1b/manim/pull/1013 you can use it as follow. format code from https://codebeautify.org/cpp-formatter-beautifier with select intent = 2 means tab spacing = 2 save html file from https://tohtml.com/cpp/ ```python from manimlib.mobject.code_mobject import * code = CodeMobject("Helloword.html", coordinates=[-5,3], run_time=3, scale_factor=0.3, line_spacing=0.2, tab_spacing=0.6, font='Monospac821 BT') code.scale(1) self.play(Write(code),run_time=1) def draw_code_all_lines_at_a_time(self, code): self.play(*[Write(code[i]) for i in range(code.__len__())],run_time=code.run_time) ``` coordinate point is LEFT+UP corner. 'code' is a 2d array of characters. for example to access first 5 characters from line 2 use `code[2][0:5]` ```python code[2][0:5].set_color(RED) ``` Output will be looks like ![Ceatures](https://user-images.githubusercontent.com/30471072/80675455-1e0aa200-8ad2-11ea-9930-812f0a32e058.png) * It solves the following problems 1) display code with color highlighted 2) manage to print single LaTeX character '{' or '}' because of using Text() instead TextMobject() from https://github.com/3b1b/manim/issues/941#issuecomment-621615699
[ "I find it an interesting project, but until your PR is merged I cannot include it in my repo, maybe I will make a video of it in the future if I take the time to test your library." ]
32
How to convert simple string to LaTeX string programmatically ? : if we try `TextMobject(" \# \{ \} ")` it works fine. but if we try following code `TextMobject(" # { } ")` it will result into following error ```python File "manimlib\utils\tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: ./media\Tex\c2fe0a3b9407ff29.log ``` is there any way to convert simple string " # { } " to LaTex string " \\# \\{ \\} " ? something like `print(StringToLaTexString(" # { } "))` Output should be `\# \{ \} ` So that we can use something like `TextMobject(StringToLaTexString(" # { } "))` to avoid error.
[ "i created following function\r\n```python \r\ndef latex_escape(str):\r\n # Replace a \\ with $\\backslash$\r\n # This is made more complicated because the dollars will be escaped\r\n # by the subsequent replacement. Easiest to add \\backslash\r\n # now and then add the dollars\r\n # Must be done aft...
31
FileNotFoundError: [Errno 2] No such file or directory 'example.py' : I've been trying to run a python example by copying and pasting your code. I have copied and pasted the code into a file 'example.py' I have verified that the file does indeed exist now in the same directory I used to successfully run example_scenes.py SquareToCircle I have typed: python3 -m manim example.py TangentVector -pl It says that example.py is not there It is there Therefore wtf please help # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "what os is you are using, linux or windows ?\r\ntry to put `#!/usr/bin/env python` at first line of your file 'example.py'", "Learn to use the terminal before using Manim, clearly you are doing something wrong in the terminal and I am not going to explain such basic things." ]
30
Trying to randomize students creatures in TeacherStudentsScene but it shows same students every time when i render : I created new creatures named * PlusCreature * MinusCreature * MultiCreature * DivCreature * RemCreature * AndCreature * EqualCreature * RoundBracketsCreature * CurlyBracketsCreature * SquareBracketsCreature * AngleBracketsCreature * HashCreature * QuestionCreature Creatures are looks like ![Ceatures](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/c.png) and added this creatures to the file c_creature (renamed pi_creature) for example this one ```python class PlusCreature(CCreature): CONFIG = { "file_name_prefix": "PlusCreatures" } ``` and i changed method 'create_c_creatures()' in class TeacherStudentsScene in file c_creature_scene.py (renamed pi_creature_scene.py) ```python def create_c_creatures(self): self.teacher = CCreature(color=self.teacher_color) self.teacher.to_corner(DOWN + RIGHT) self.teacher.look(DOWN + LEFT) '''From that self.students = VGroup(*[ Randolph(color=c) for c in self.student_colors ]) ''' # To this print("yessssss its runing, we are creating students.") self.students = VGroup(*[ random.choice([PlusCreature, MinusCreature, MultiCreature, DivCreature, RemCreature, AndCreature, EqualCreature, RoundBracketsCreature, CurlyBracketsCreature, SquareBracketsCreature, AngleBracketsCreature, HashCreature, QuestionCreature])(color=c) for c in self.student_colors ]) self.students.arrange(RIGHT) self.students.scale(self.student_scale_factor) self.students.to_corner(DOWN + LEFT) self.teacher.look_at(self.students[-1].eyes) for student in self.students: student.look_at(self.teacher.eyes) return [self.teacher] + list(self.students) ``` i created file manimlib.imports_with_c that imports c_creatures instead of pi_creatures when i run following code ( i tried self.setup() and self.c_creatures = VGroup(*self.create_c_creatures()) but this lines just create another creatures onto previouse ones) ```python from manimlib.imports_with_c import * class ts(TeacherStudentsScene): def construct(self): #self.setup() #self.c_creatures = VGroup(*self.create_c_creatures()) self.teacher_says( "Something different today!", run_time = 2 ) ``` ## Output always shows same students with two EqualCreatures and one QuestionCreature even when rendering code again and again but according to changes in method 'create_c_creatures()' in class TeacherStudentsScene in file c_creature_scene.py it should be create random creatures everytimes i run the code same output is following ![output](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/ts.png) it always print the output from line print("yessssss its runing, we are creating students.") in create_c_creatures() method that means it runs every time between multiple renders. this mean may be there is something wrong with random.choice() method but i tried following code. ```python import random def a1(): return "1" def a2(): return "2" def a3(): return "3" def a4(): return "4" def a5(): return "5" numbers = [*[random.choice([a1,a2,a3,a4,a5])() for i in range(0,20)]] print(numbers) ``` it allways print random numbers. but when i put this code inside create_c_creatures() like follow ```python print("yessssss its runing, we are creating students.") self.students = VGroup(*[ random.choice([PlusCreature, MinusCreature, MultiCreature, DivCreature, RemCreature, AndCreature, EqualCreature, RoundBracketsCreature, CurlyBracketsCreature, SquareBracketsCreature, AngleBracketsCreature, HashCreature, QuestionCreature])(color=c) for c in self.student_colors ]) def a1(): return "1" def a2(): return "2" def a3(): return "3" def a4(): return "4" def a5(): return "5" numbers = [*[random.choice([a1, a2, a3, a4, a5])() for i in range(0, 20)]] print(numbers) ``` now it always shows same numbers. # then whats wrong with my code ? why always same students ?
[ "it solved by putting random.seed()\r\n```python \r\nrandom.seed()\r\nself.students = VGroup(*[\r\n random.choice([PlusCreature,\r\n MinusCreature,\r\n MultiCreature,\r\n DivCreature,\r\n RemCreature,\r\n ...
29
SVGMobject makes svg images without colors and proper geometry. : How to make svg images with colors and proper geometry ? ```python class SVGTest(Scene): def construct(self): svg1 = SVGMobject("Partial") self.play(FadeIn(svg1)) self.wait() ``` # Partial.svg is looks like ![Partial.svg](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/ezgif-4-6fb2b17cbc34.png) # Output ![Output](https://raw.githubusercontent.com/NavpreetDevpuri/LyndaDownloader/master/screenshots/SVGTest.gif) even i tried other svg images, same problem with all svg images. i want to do that so that i can create some similar charaters to 'PiCreatures' and use Transform( ) to perform animations among different poses's svg images.
[ "https://www.youtube.com/watch?v=KGdA8IB6JL0&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F&index=27\r\n\r\ni found your video, thanku.\r\n\r\ni think that svg file is having improper geometry.", "please make video about expressions." ]
28
Can't use TextMobject in CONFIG in latest version : Can't use TextMobject in CONFIG ![image](https://user-images.githubusercontent.com/15608306/79626763-276e3480-80f8-11ea-8d2f-4c3b0879bd72.png) gives error ```shell Traceback (most recent call last): File "./manim.py", line 5, in <module> manimlib.main() File "/Users/qianyiqian/Development/manim_practice/manimlib/__init__.py", line 11, in main config = manimlib.config.get_configuration(args) File "/Users/qianyiqian/Development/manim_practice/manimlib/config.py", line 185, in get_configuration module = get_module(args.file) File "/Users/qianyiqian/Development/manim_practice/manimlib/config.py", line 180, in get_module spec.loader.exec_module(module) File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "myPractice.py", line 425, in <module> class WhatIsCONFIG(Scene): File "myPractice.py", line 427, in WhatIsCONFIG "object_1": TextMobject("Object 1"), File "/Users/qianyiqian/Development/manim_practice/manimlib/mobject/svg/tex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs File "/Users/qianyiqian/Development/manim_practice/manimlib/mobject/svg/tex_mobject.py", line 44, in __init__ self.template_tex_file_body File "/Users/qianyiqian/Development/manim_practice/manimlib/utils/tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "/Users/qianyiqian/Development/manim_practice/manimlib/utils/tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: 7ba99e26556cd349.log ``` When I remove the TextMobjec() in CONFIG, it can be compiled.
[ "Yes, that is normal, because the latest version of Manim has a different configuration when compiling .tex files, so that this does not happen you can do something like:\r\n```python\r\nCONFIG = {\r\n \"text_1\": \"Some text\"\r\n}\r\ndef construct(self):\r\n text = TextMobject(self.text_1)\r\n```" ]
27
Error: Import Error : While running the manim.py. : `~/manim# python3.7 -m manim example_scenes.py SquareToCircle -pl Traceback (most recent call last): File "/root/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/root/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/manim/manim.py", line 2, in <module> import manimlib File "/root/manim/manimlib/__init__.py", line 4, in <module> import manimlib.extract_scene File "/root/manim/manimlib/extract_scene.py", line 9, in <module> from manimlib.scene.scene import Scene File "/root/manim/manimlib/scene/scene.py", line 12, in <module> from manimlib.camera.camera import Camera File "/root/manim/manimlib/camera/camera.py", line 9, in <module> import cairo File "/root/anaconda3/lib/python3.7/site-packages/cairo/__init__.py", line 1, in <module> from ._cairo import * # noqa: F401,F403 ImportError: /root/anaconda3/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index` I watched your video I followed everystep shown in [your video](https://www.youtube.com/watch?v=z_WJaHYH66M), the last step while running `example_scenes.py`, it gives `import error`. Please Help, I am trying to install Manim since last 3 days :(
[ "See this:\r\nhttps://github.com/3b1b/manim/issues/430\r\nhttps://stackoverflow.com/questions/48049253/python-import-cairo-error-2-7-3-6-undefined-symbol-cairo-tee-surface-inde\r\nhttps://gitmemory.com/issue/3b1b/manim/430/461945643", "Thanks @Elteoremadebeethoven . This is resolved now. But I am facing another i...
26
MoveAlongPathWithAngle : Hi there :-) I was looking for the code which produces the "arrow" to follow the curve. Thank you for providing this useful part of the code. Best and sincerely greetings, Thomas ![MAPWA](https://user-images.githubusercontent.com/39776780/78771536-99c07580-7990-11ea-87c0-b1e6877c91d8.PNG)
[ "The code is shown in the video (see the description of the video), find it yourself." ]
25
Latex error converting to dvi : # Please Help I met this problem when I was trying to enable Tikz like in your tutorial. I followed every step, but I am using the latest manim not 3 Feb one. And when I compiled ExampleTikz scene, I got ![image](https://user-images.githubusercontent.com/15608306/78730313-0b051780-7902-11ea-81f6-0b8420c5b37b.png) I put Tikz packages in both tex_template.tex and ctex_template.tex. I have checked all the issues, but my problem exists. I also see ur responses in other places, so I will follow your step. the *latex* commander can be recognized, but I am not sure if I am missing packages or it might be other problems. ## Run latex tex_template.tex ``` This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./tex_template.tex LaTeX2e <2020-02-02> patch level 5 L3 programming layer <2020-02-25> (/usr/local/texlive/2019/texmf-dist/tex/latex/standalone/standalone.cls Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan dalone (/usr/local/texlive/2019/texmf-dist/tex/latex/tools/shellesc.sty) (/usr/local/texlive/2019/texmf-dist/tex/generic/iftex/ifluatex.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/iftex/iftex.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/xkeyval/xkeyval.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkeyval.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/xkvutils.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (/usr/local/texlive/2019/texmf-dist/tex/latex/standalone/standalone.cfg) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/article.cls Document Class: article 2019/12/20 v1.4l Standard LaTeX document class (/usr/local/texlive/2019/texmf-dist/tex/latex/base/size10.clo)) (/usr/local/texlive/2019/texmf-dist/tex/latex/preview/preview.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/luatex85/luatex85.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/preview/prtightpage.def))) (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/babel.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/switch.def) (/usr/local/texlive/2019/texmf-dist/tex/generic/babel-english/english.ldf (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/babel.def (/usr/local/texlive/2019/texmf-dist/tex/generic/babel/txtbabel.def)))) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amssymb.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/doublestroke/dsfont.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/setspace/setspace.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/tipa/tipa.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/tipa/t3enc.def))) (/usr/local/texlive/2019/texmf-dist/tex/latex/relsize/relsize.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/base/textcomp.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/jknapltx/mathrsfs.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/fundus-calligra/calligra.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/wasysym/wasysym.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/ragged2e/ragged2e.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/ms/everysel.sty)) (/usr/local/texlive/2019/texmf-dist/tex/latex/physics/physics.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3packages/xparse/xparse.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3kernel/expl3.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/l3backend/l3backend-dvips.def))) LaTeX3 Warning: Argument delimiter '\big ' for the command '\@quantity' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@quantity' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@quantity' (LaTeX3) should be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@quantity' (LaTeX3) should be a single character. LaTeX3 Warning: Argument delimiter '\big ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\@braces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\big ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Big ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\bigg ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\Bigg ' for the command '\fbraces' should (LaTeX3) be a single character. LaTeX3 Warning: Argument delimiter '\ket ' for the command '\bra' should be a (LaTeX3) single character. ) (/usr/local/texlive/2019/texmf-dist/tex/latex/xcolor/xcolor.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/color.cfg) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-def/dvips.def)) (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype-pdftex.def) (/usr/local/texlive/2019/texmf-dist/tex/latex/microtype/microtype.cfg)) (/usr/local/texlive/2019/texmf-dist/tex/latex/pgfplots/pgfplots.sty (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.revision.tex) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphicx.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/graphics.sty (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/trig.sty) (/usr/local/texlive/2019/texmf-dist/tex/latex/graphics-cfg/graphics.cfg))) (/usr/local/texlive/texmf-local/tex/latex/pgf/frontendlayer/tikz.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/basiclayer/pgf.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgfrcs.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfutil-common.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfutil-latex.def (/usr/local/texlive/2019/texmf-dist/tex/latex/ms/everyshi.sty)) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfrcs.code.tex)) (/usr/local/texlive/texmf-local/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeys.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeysfiltered.code. tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgf.cfg) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys-dvips.def (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsys-common-posts cript.def))) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsyssoftpath.code .tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/systemlayer/pgfsysprotocol.code .tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcore.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmath.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathcalc.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathparser.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.basic.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.trigonome tric.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.random.co de.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.compariso n.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.base.code .tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.round.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfunctions.misc.code .tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/math/pgfmathfloat.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepoints.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathconstruct .code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathusage.cod e.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorescopes.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoregraphicstate. code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoretransformatio ns.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorequick.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreobjects.code. tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepathprocessin g.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorearrows.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreshade.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreimage.code.te x (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoreexternal.code .tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorelayers.code.t ex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcoretransparency. code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/basiclayer/pgfcorepatterns.code .tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduleshapes.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduleplot.code.tex) (/usr/local/texlive/texmf-local/tex/latex/pgf/compatibility/pgfcomp-version-0-6 5.sty) (/usr/local/texlive/texmf-local/tex/latex/pgf/compatibility/pgfcomp-version-1-1 8.sty)) (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgffor.sty (/usr/local/texlive/texmf-local/tex/latex/pgf/utilities/pgfkeys.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/utilities/pgffor.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/tikz.code.te x (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/pgflibraryplothandler s.code.tex) (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmodulematrix.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarytopaths.code.tex))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotscore.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/sys/pgfplotssysgeneric .code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/libs/pgfplotslibrary.c ode.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_loader.code.tex Package pgfplots: loading complementary code for your PGF version... (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_misc.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfkeys.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfkeysfiltered.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfmathfloat.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgflibraryplothandlers.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgflibraryfpu.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfcorescopes.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfcorelayers.code.tex) Package pgfplots: loading complementary utilities for your pgf version... (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_pgfutil-common-lists.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_trig_format.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/oldpgfcompatib/pgfplot soldpgfsupp_leq.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.code .tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots liststructure.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots liststructureext.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots array.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots matrix.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable shared.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/liststructure/pgfplots deque.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.co de.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsbinary.da ta.code.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotsutil.verb .code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/libs/pgflibrarypgfplot s.surfshading.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/sys/pgflibrarypgfplots .surfshading.pgfsys-dvips.def))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotscolormap. code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/util/pgfplotscolor.cod e.tex)) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsstackedplots.c ode.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsplothandlers.c ode.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplothandle r.code.tex (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsmeshplotimage. code.tex))) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.scaling.code. tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotscoordprocessin g.code.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.errorbars.cod e.tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.markers.code. tex) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex ) (/usr/local/texlive/2019/texmf-dist/tex/generic/pgfplots/pgfplots.paths.code.te x) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/modules/pgfmoduledecorations.co de.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.pathmorphing.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/decorations/pgflibrar ydecorations.pathmorphing.code.tex)) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarydecorations.pathreplacing.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/decorations/pgflibrar ydecorations.pathreplacing.code.tex))) (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibraryplotmarks.code.tex (/usr/local/texlive/texmf-local/tex/generic/pgf/libraries/pgflibraryplotmarks.c ode.tex))) (/usr/local/texlive/2019/texmf-dist/tex/latex/circuitikz/circuitikz.sty (/usr/local/texlive/texmf-local/tex/generic/pgf/frontendlayer/tikz/libraries/ti kzlibrarycalc.code.tex) ! I can't find file `tikzlibraryarrows.meta.code.tex'. <argument> ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.30 \usetikzlibrary{arrows.meta, bending} (Press Enter to retry, or Control-D to exit) Please type another input file name: ^D ! Emergency stop. <argument> ...nput tikzlibrary\pgf@temp .code.tex \catcode `\@ =\csname tikz... l.30 \usetikzlibrary{arrows.meta, bending} No pages of output. Transcript written on tex_template.log. ```
[ "Is my PGF/Tikz too old?\r\n'''\r\n\r\n *File List*\r\n article.cls 2019/12/20 v1.4l Standard LaTeX document class\r\n size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)\r\n tikz.sty 2010/10/13 v2.10 (rcs-revision 1.76)\r\n pgf.sty 2008/01/15 v2.10 (rcs-revision 1.12)\r\n pgfrcs.sty ...
24
Hola! Tengo una duda respecto a los gráficos en manim : Hola! sin antes disculparme con esta básica pregunta, quería plantearte una duda que me surgió al realizar gráficos de funciones, pues no encontré información en internet respecto esta. Bien, mi duda es que, ¿Cómo hago para disminuir el tamaño de los ejes y de la función ?, pues si escalo la variable "graph" sólo se escala el gráfico de mi función, mas no los ejes "x" e "y". Además, ¿Cómo hago para animar un movimiento de esta? Había pensado en definir un mismo gráfico dos veces, con distintas posiciones, pero esto resulta imposible pues los "ejes" se definen una sóla vez Espero se entiendan mis preguntas Saludos y de ante mano muchas gracias !
[ "Puedes crear los ejes que quieras usando `Axes`, ver [aquí](https://github.com/3b1b/manim/blob/48f2a1ec3c86f3ad26b6b1292b6917149005cbab/manimlib/mobject/coordinate_systems.py#L129), ya que este objeto tiene el método [`get_graph()`](https://github.com/3b1b/manim/blob/48f2a1ec3c86f3ad26b6b1292b6917149005cbab/maniml...
23
"latex" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. : Hola! tengo un problema al ejecutar "WriteStuff" cuando instalo manim. Inserto lo que me aparece en la pantalla de cmd C:\Manim\manim_3_feb>python -m manim example_scenes.py WriteStuff -pl Writing "\centering This is a some text" to C:\Manim\manim_3_feb\manimlib\files\Tex\fc014450ce29cae4.tex "latex" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable. Traceback (most recent call last): File "C:\Manim\manim_3_feb\manimlib\extract_scene.py", line 153, in main scene = SceneClass(**scene_kwargs) File "C:\Manim\manim_3_feb\manimlib\scene\scene.py", line 54, in __init__ self.construct() File "example_scenes.py", line 100, in construct tex_to_color_map={"text": YELLOW} File "C:\Manim\manim_3_feb\manimlib\mobject\svg\tex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs File "C:\Manim\manim_3_feb\manimlib\mobject\svg\tex_mobject.py", line 45, in __init__ self.template_tex_file_body File "C:\Manim\manim_3_feb\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "C:\Manim\manim_3_feb\manimlib\utils\tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file) Exception: Latex error converting to dvi. See log output above or the log file: C:\Manim\manim_3_feb\manimlib\files\Tex\fc014450ce29cae4.log Saludos
[ "Solucionado, en mi caso en el \"Path\" no estaba agregado miktex\r\ntuve que agregarlo a mano escribiendo la linea \"C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64\"" ]
22
Necesito ayuda para poder instalar manim. Mi problema básicamente es con la instalación de Pycairo. De igual forma instalé ffmpeg de una diferente, pero si se instaló, solo que no me instala el pycairo. : # __**WARNING**__ **Before writing an issue, please check the following links if someone has already resolved your question. If you are asking things that have already been resolved I will have no choice but to close your issue.** * [Manim issues](https://github.com/3b1b/manim/issues?q=is%3Aissue+is%3Aclosed) * [Stackoverflow](https://stackoverflow.com/questions/tagged/manim) * [Reddit](https://www.reddit.com/r/manim/) * [Official documentation](https://www.eulertour.com/learn/manim/) * [My documentation](https://elteoremadebeethoven.github.io/manim_3feb_docs.github.io/html/index.html) * [Todd tutorial](https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/) * [Malhora tutorial](https://github.com/malhotra5/Manim-Tutorial) * [My tutorials](https://www.youtube.com/watch?v=ENMyFGmq5OA&list=PL2B6OzTsMUrwo4hA3BBfS7ZR34K361Z8F) **You can joined to the Discord community [here](https://discordapp.com/invite/mMRrZQW)** # Points to consider before writing your issue * This repository works with the Manim version of February 3, unless otherwise indicated. If your code does not work, check that you are using the correct version. * At the moment Manim works with Python 3.7, not with 3.8. This is because several of the dependencies have not yet been updated. * If the terminal throws an error, please write it completely with the markdown format. * Be clear and specific with your problem, share the code (and files, if applicable) and the command you use when rendering the video. # Fast markdown tutorial. ## Inline code: **INPUT** The code is \`TexMobject\` write \`TeX\`. **OUTPUT** The code is `TexMobject` write `TeX`. ## Multiline code **INPUT** My code is: \`\`\`python Here is a multiline code \`\`\` **OUTPUT** My code is: ```python Here is a multiline code ``` **[LEARN MORE HERE](https://guides.github.com/features/mastering-markdown/#what)**
[ "Escribe tu problema, no me estás diciendo nada, tienes que escribir todos tus logs (lo que te dice la terminal) y lo que sea necesario para ayudarte, cerraré este issue pero escribe otro con el formato de Markdown." ]
21
Error when trying to use text like arrays : I write this in my code, and it works fine: `title = TexMobject("\\frac{tanx - \\sqrt{3}}{2cosx + 1} = 0")` But when I write like this: `title = TexMobject("\\frac{","tanx","-\\sqrt{3}}{","2cosx","+1} = 0")` I got `Xelatex error converting to dvi` What's the problem here?
[ "Like I said in my [video](https://www.youtube.com/watch?v=DGSj7weT-y8&t=8m37s) don't use `\\frac` to fragment formulas, use `\\over`." ]
20
type object 'Animation' has no attribute 'mobject' : windows 10 64bit python3.7.2 manimlib-0.1.10 when I tpye the code in update_successions/update_successions.py class SuccessionExample1(Scene): there is an error when run this class in Succession(Animation, Mobject(), {"run_time": 2.1}, AttributeError: type object 'Animation' has no attribute 'mobject' I dont know why class SuccessionExample1Fail(Scene): ... self.play( ShowCreationThenDestruction(dashed_line, submobject_mode="lagged_start", run_time=5), Succession(Animation, Mobject(), {"run_time": 2.1}, Write, text) ) thank you for your time
[ "You are using the most recent version, so, you have to use [this](https://github.com/Elteoremadebeethoven/AnimationsWithManim/blob/master/English/update_successions/successions_in_recent_versions.py)." ]
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6