Giter Club home page Giter Club logo

Comments (4)

makai410 avatar makai410 commented on September 13, 2024

Welcome cooperation to tackle this :)

from manim.

uwezi avatar uwezi commented on September 13, 2024

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.

bild

bild

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.

makai410 avatar makai410 commented on September 13, 2024

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.

uwezi avatar uwezi commented on September 13, 2024

It still does not for me - rendered with "3" and manim -pql .\20240613_01.py Prove

bild

Prove.mp4

rendered with "9"

bild

Prove.mp4

The log-output also suggest that Manim uses some cached parts, but obviously not the function lot itself...

bild

from manim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.