A community-maintained Python framework for creating mathematical animations.
Added point_to_coords method to graph_scene. Also, modified MOVIE_DIR in constants.py
Sridhar Ramesh1082d04b7f12
diff --git a/constants.py b/constants.pyindex 7137f2c11..257cd97d4 100644--- a/constants.py+++ b/constants.py@@ -61,7 +61,7 @@ RIGHT_SIDE = SPACE_WIDTH*RIGHT# Change this to point to where you want# animation files to output-MOVIE_DIR = os.path.join(os.path.expanduser('~'), "Dropbox/3Blue1Brown Team Folder/animations")+MOVIE_DIR = os.path.join(os.path.expanduser('~'), "Dropbox (3Blue1Brown)/3Blue1Brown Team Folder/animations")STAGED_SCENES_DIR = os.path.join(MOVIE_DIR, "staged_scenes")###THIS_DIR = os.path.dirname(os.path.realpath(__file__))diff --git a/topics/graph_scene.py b/topics/graph_scene.pyindex 435ca5839..22eac91ee 100644--- a/topics/graph_scene.py+++ b/topics/graph_scene.py@@ -123,6 +123,10 @@ class GraphScene(Scene):result += self.y_axis.number_to_point(y)[1]*UPreturn result+ def point_to_coords(self, point):+ return (self.x_axis.point_to_number(point),+ self.y_axis.point_to_number(point))+def get_graph(self, func,color = None,