Skip to content

Commit

Permalink
Fix tableplotter issue when using facet_col and undefined axis range (
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKallekleiv authored Mar 20, 2023
1 parent 9f0d998 commit edba59b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webviz_config/generic_plugins/_table_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,11 @@ def _update_output(
else:
div_style.append(self.style_options_div_hidden)
figure: Figure = plotfunc(data, template=self.plotly_theme, **plotargs)
figure.update_layout(
xaxis_range=[xaxis_min, xaxis_max], yaxis_range=[yaxis_min, yaxis_max]
)
if xaxis_min is not None and xaxis_max is not None:
figure.update_layout(xaxis_range=[xaxis_min, xaxis_max])
if yaxis_min is not None and yaxis_max is not None:
figure.update_layout(yaxis_range=[yaxis_min, yaxis_max])

return (figure, *div_style)


Expand Down

0 comments on commit edba59b

Please sign in to comment.