mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added point_to_coords method to graph_scene. Also, modified MOVIE_DIR in constants.py
This commit is contained in:
parent
1b0819ce97
commit
1082d04b7f
2 changed files with 5 additions and 1 deletions
|
@ -61,7 +61,7 @@ RIGHT_SIDE = SPACE_WIDTH*RIGHT
|
||||||
|
|
||||||
# Change this to point to where you want
|
# Change this to point to where you want
|
||||||
# animation files to output
|
# 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")
|
STAGED_SCENES_DIR = os.path.join(MOVIE_DIR, "staged_scenes")
|
||||||
###
|
###
|
||||||
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
|
THIS_DIR = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
|
@ -123,6 +123,10 @@ class GraphScene(Scene):
|
||||||
result += self.y_axis.number_to_point(y)[1]*UP
|
result += self.y_axis.number_to_point(y)[1]*UP
|
||||||
return result
|
return 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(
|
def get_graph(
|
||||||
self, func,
|
self, func,
|
||||||
color = None,
|
color = None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue