Skip to content

Commit

Permalink
make mpl Bars respect lower ylim if logy=True (#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
poplarShift authored and philippjfr committed Jul 17, 2019
1 parent b4c631c commit 79d43ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/plotting/mpl/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,8 @@ def get_extents(self, element, ranges, range_type='combined'):
return 0, 0, ngroups, np.NaN
else:
vrange = ranges[vdim]['combined']
return 0, np.nanmin([vrange[0], 0]), ngroups, vrange[1]
lower_limit = vrange[0] if self.logy else np.nanmin([vrange[0], 0])
return 0, lower_limit, ngroups, vrange[1]


@mpl_rc_context
Expand Down

0 comments on commit 79d43ad

Please sign in to comment.