Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make matplotlib Bars respect lower ylim if logy=True #3813

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

poplarShift
Copy link
Collaborator

Code:

import holoviews as hv
import pandas as pd

hv.extension('matplotlib')

df = pd.DataFrame(dict(u=['A', 'B'], y=[10,3]))
l = hv.Bars(df, ['u'], 'y')
l = l.opts(
    logy=True,
)

l.redim.range(y=(0.0001, 10))

Before:

WARNING:param.BarPlot01437: Logarithmic axis range encountered value less than or equal to zero, please supply explicit lower-bound to override default of 0.100.

Screen Shot 2019-07-09 at 7 24 22 PM

After:

Screen Shot 2019-07-09 at 7 23 53 PM

@poplarShift poplarShift added type: bug Something isn't correct or isn't working tag: backend: mpl labels Jul 9, 2019
@philippjfr philippjfr merged commit 79d43ad into master Jul 17, 2019
@philippjfr philippjfr deleted the bars_log_ylim branch August 5, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: backend: mpl type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants