Spaces:
Sleeping
Sleeping
Update tools/statistical_graph_generator.py
Browse files
tools/statistical_graph_generator.py
CHANGED
|
@@ -29,7 +29,7 @@ def plot_line_chart(x_values: List, y_values: List[float], title: str = "Gráfic
|
|
| 29 |
plt.grid(True, which='both', linestyle='--', linewidth=0.5)
|
| 30 |
plt.tight_layout()
|
| 31 |
|
| 32 |
-
file_path = f"line_chart_{int(time.
|
| 33 |
plt.savefig(file_path)
|
| 34 |
plt.close()
|
| 35 |
|
|
@@ -59,7 +59,7 @@ def plot_bar_chart(labels: List[str], values: List[float], title: str = "Gráfic
|
|
| 59 |
plt.grid(axis='y', linestyle='--', alpha=0.7)
|
| 60 |
plt.tight_layout()
|
| 61 |
|
| 62 |
-
file_path = f"bar_chart_{int(time.
|
| 63 |
plt.savefig(file_path)
|
| 64 |
plt.close()
|
| 65 |
|
|
@@ -84,7 +84,7 @@ def plot_pie_chart(labels: List[str], sizes: List[float], title: str = "Gráfico
|
|
| 84 |
plt.title(title)
|
| 85 |
plt.axis('equal') # Assegura que o gráfico seja um círculo.
|
| 86 |
|
| 87 |
-
file_path = f"pie_chart_{int(time.
|
| 88 |
plt.savefig(file_path)
|
| 89 |
plt.close()
|
| 90 |
|
|
@@ -113,7 +113,7 @@ def plot_histogram(data: List[float], bins: int = 10, title: str = "Histograma",
|
|
| 113 |
plt.ylabel(y_label)
|
| 114 |
plt.grid(axis='y', linestyle='--', alpha=0.7)
|
| 115 |
|
| 116 |
-
file_path = f"histogram_{int(time.
|
| 117 |
plt.savefig(file_path)
|
| 118 |
plt.close()
|
| 119 |
|
|
|
|
| 29 |
plt.grid(True, which='both', linestyle='--', linewidth=0.5)
|
| 30 |
plt.tight_layout()
|
| 31 |
|
| 32 |
+
file_path = f"line_chart_{int(time.time_ns())}.png"
|
| 33 |
plt.savefig(file_path)
|
| 34 |
plt.close()
|
| 35 |
|
|
|
|
| 59 |
plt.grid(axis='y', linestyle='--', alpha=0.7)
|
| 60 |
plt.tight_layout()
|
| 61 |
|
| 62 |
+
file_path = f"bar_chart_{int(time.time_ns())}.png"
|
| 63 |
plt.savefig(file_path)
|
| 64 |
plt.close()
|
| 65 |
|
|
|
|
| 84 |
plt.title(title)
|
| 85 |
plt.axis('equal') # Assegura que o gráfico seja um círculo.
|
| 86 |
|
| 87 |
+
file_path = f"pie_chart_{int(time.time_ns())}.png"
|
| 88 |
plt.savefig(file_path)
|
| 89 |
plt.close()
|
| 90 |
|
|
|
|
| 113 |
plt.ylabel(y_label)
|
| 114 |
plt.grid(axis='y', linestyle='--', alpha=0.7)
|
| 115 |
|
| 116 |
+
file_path = f"histogram_{int(time.time_ns())}.png"
|
| 117 |
plt.savefig(file_path)
|
| 118 |
plt.close()
|
| 119 |
|