Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion plotly/matplotlylib/mplexporter/renderers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
class Renderer(object):
@staticmethod
def ax_zoomable(ax):
return bool(ax and ax.get_navigate())
# Return False if ax is None or falsy
if not ax:
return False
# get_navigate() is already a boolean
return ax.get_navigate()

@staticmethod
def ax_has_xgrid(ax):
Expand Down