Skip to content

Commit

Permalink
use the full space of the figure to display the image (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein authored Dec 1, 2020
1 parent 15ab062 commit 89df957
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dash_slicer/slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,15 @@ def _create_dash_components(self):
showgrid=False,
showticklabels=False,
zeroline=False,
constrain="range",
)
fig.update_yaxes(
showgrid=False,
scaleanchor="x",
showticklabels=False,
zeroline=False,
autorange="reversed" if self._reverse_y else True,
constrain="range",
)

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

0 comments on commit 89df957

Please sign in to comment.