Lar159 commited on
Commit
ce6c838
·
verified ·
1 Parent(s): cabf9fd
Files changed (1) hide show
  1. tools/parabola_plotter_tool.py +4 -2
tools/parabola_plotter_tool.py CHANGED
@@ -46,8 +46,10 @@ def plot_parabola_graph(a: float, b: float, c: float) -> str:
46
  plt.grid(True)
47
  plt.axhline(0, color='black', linewidth=0.5)
48
  plt.axvline(0, color='black', linewidth=0.5)
49
-
50
- file_path = f"parabola_{int(time.time())}.png"
 
 
51
  plt.savefig(file_path)
52
  plt.close()
53
 
 
46
  plt.grid(True)
47
  plt.axhline(0, color='black', linewidth=0.5)
48
  plt.axvline(0, color='black', linewidth=0.5)
49
+
50
+ # USA time.time_ns() (nanossegundos) para garantir um nome de arquivo único
51
+
52
+ file_path = f"parabola_{int(time.time_ns())}.png"
53
  plt.savefig(file_path)
54
  plt.close()
55