Spaces:
Sleeping
Sleeping
y_lim
Browse files
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 |
|