Skip to content

Commit c726eb7

Browse files
committed
buf fix with get_lines_parallel_to_axis
1 parent 33fa76d commit c726eb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

manimlib/mobject/coordinate_systems.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def get_graph(self, function, x_range=None, **kwargs):
133133
**kwargs
134134
)
135135
graph.underlying_function = function
136+
graph.x_range = x_range
136137
return graph
137138

138139
def get_parametric_curve(self, function, **kwargs):
@@ -449,7 +450,7 @@ def get_lines(self):
449450
return lines1, lines2
450451

451452
def get_lines_parallel_to_axis(self, axis1, axis2):
452-
freq = axis1.x_step
453+
freq = axis2.x_step
453454
ratio = self.faded_line_ratio
454455
line = Line(axis1.get_start(), axis1.get_end())
455456
dense_freq = (1 + ratio)

0 commit comments

Comments
 (0)