Skip to content

Commit 89df957

Browse files
authored
use the full space of the figure to display the image (#30)
1 parent 15ab062 commit 89df957

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dash_slicer/slicer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,15 @@ def _create_dash_components(self):
259259
showgrid=False,
260260
showticklabels=False,
261261
zeroline=False,
262+
constrain="range",
262263
)
263264
fig.update_yaxes(
264265
showgrid=False,
265266
scaleanchor="x",
266267
showticklabels=False,
267268
zeroline=False,
268269
autorange="reversed" if self._reverse_y else True,
270+
constrain="range",
269271
)
270272

271273
# Create the graph (graph is a Dash component wrapping a Plotly figure)

0 commit comments

Comments
 (0)