Comments (4)
Welcome cooperation to tackle this :)
from manim.
I cannot reproduce your problem. I mean the function which you have in your code has not a single visible point within the axes of your scene, neither has your replacement function.
When I toggle between 6*x**2+53/x
and 6*x**2+53/x
in the following code on my system, caching enabled, Manim always constructs the correct plot.
class Prove(Scene):
def construct(self):
def f(x):
return (6*x**2+53/x)
axes = Axes(x_range=[-1, 8, 1], y_range=[35, 55, 1], x_length=9, y_length=7)
curve = axes.plot(lambda x: f(x),x_range=[1, 7], color=GREEN)
self.play(
Create(axes),
Create(curve)
)
self.wait()
from manim.
Sorry for that I simplified this function while writing this issue; its original formula was:
def f(x):
return (3*x**2+53/x)/16
If you change it to:
def f(x):
return (9*x**2+53/x)/16
you will see manim use caches in the log.
from manim.
It still does not for me - rendered with "3" and manim -pql .\20240613_01.py Prove
Prove.mp4
rendered with "9"
Prove.mp4
The log-output also suggest that Manim uses some cached parts, but obviously not the function lot itself...
from manim.
Related Issues (20)
- 'RuntimeWarning: divide by zero encountered in scalar divide' causing Axes rendering failure for axis values 0 HOT 3
- How do I set the background color of code in Manim? HOT 1
- SurroundingRectangle supports *mobjects
- Improvement on the python-dev version
- Trying to make a vector field, I got a message telling me to make a bug report HOT 1
- Axes don't work correctly HOT 3
- Tex-Mobject width and font_size arguments affect eachother HOT 4
- Updaters not refreshing between animations HOT 1
- Axes and the unit_size HOT 3
- Uhhh... help? HOT 1
- Manim HOT 1
- Manim render command leads to "cannot import name 'DEFAULT_DASH_LENGTH' from 'manim.mobject.geometry'" error HOT 1
- Color palette format and builder
- LaggedStart animation bugs when z-index of animated mobject is non-positive HOT 4
- Text repr to display current text
- ParametricFunction: wrong type hint HOT 1
- Transparent background with Opengl
- apply_complex_function HELP HOT 3
- Intersection and difference bug HOT 3
- ValueTracker bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manim.