Lar159 commited on
Commit
e36ab31
·
verified ·
1 Parent(s): 32531a8
Files changed (1) hide show
  1. tools/graph_plotter_tool.py +2 -0
tools/graph_plotter_tool.py CHANGED
@@ -28,6 +28,8 @@ def plot_function_graph(function_string: str) -> str:
28
  plt.xlabel("x")
29
  plt.ylabel("y")
30
  plt.grid(True)
 
 
31
  plt.axhline(0, color='black',linewidth=0.5)
32
  plt.axvline(0, color='black',linewidth=0.5)
33
 
 
28
  plt.xlabel("x")
29
  plt.ylabel("y")
30
  plt.grid(True)
31
+ if y_lim:
32
+ plt.ylim(y_lim)
33
  plt.axhline(0, color='black',linewidth=0.5)
34
  plt.axvline(0, color='black',linewidth=0.5)
35