Add gridlines
This commit is contained in:
@@ -332,6 +332,9 @@ def graph_histogram(x: list[float], path: str, title: str, freq: bool, clear_out
|
||||
for spine in ax.spines.values():
|
||||
spine.set_edgecolor(border_color)
|
||||
|
||||
# Grid
|
||||
ax.grid(visible=True, axis='both')
|
||||
|
||||
# Save
|
||||
fig.savefig(os.path.join(REPORT_DIR, path))
|
||||
fig.clf()
|
||||
@@ -424,6 +427,9 @@ def graph_line_plot(x: list[datetime], y: Union[list[float], list[list[float]]],
|
||||
for spine in ax.spines.values():
|
||||
spine.set_edgecolor(border_color)
|
||||
|
||||
# Grid
|
||||
ax.grid(visible=True, axis='both')
|
||||
|
||||
# Save
|
||||
path = Path(os.path.join(REPORT_DIR, path))
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user