Spaces:
Runtime error
Runtime error
Rolv-Arild
commited on
Commit
•
406d117
1
Parent(s):
e93c2e7
Add margins and slightly reduce size of plotly plot
Browse files
app.py
CHANGED
@@ -112,7 +112,12 @@ def plot_stats(data_path, plotting_library="plotly", columns=None, table=None):
|
|
112 |
for i in range(nrows * ncols):
|
113 |
fig.update_xaxes(tickangle=-5, row=i // ncols + 1, col=i % ncols + 1)
|
114 |
|
115 |
-
fig.update_layout(
|
|
|
|
|
|
|
|
|
|
|
116 |
#fig.show()
|
117 |
else:
|
118 |
raise ValueError(f"Unknown plotting library: {args.library}")
|
|
|
112 |
for i in range(nrows * ncols):
|
113 |
fig.update_xaxes(tickangle=-5, row=i // ncols + 1, col=i % ncols + 1)
|
114 |
|
115 |
+
fig.update_layout(
|
116 |
+
height=400 * nrows,
|
117 |
+
width=400 * ncols,
|
118 |
+
showlegend=False,
|
119 |
+
margin=dict(t=50, b=50, l=50, r=50) # Adjust these values as needed
|
120 |
+
)
|
121 |
#fig.show()
|
122 |
else:
|
123 |
raise ValueError(f"Unknown plotting library: {args.library}")
|