Skip to content

BUG: barplot with log=True not working for values smaller than 1 #9914

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

Merged
merged 1 commit into from
Apr 16, 2015

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Apr 16, 2015

Closes #9905. Also include a fix that log kw is ignored in horizontal bar plot. Test cases are based on standard mpl result:

plt.bar([0, 1, 2], [0.1, 0.01, 0.001], log=True)

plt.gca().get_ylim()
# (0.001, 0.10000000000000001)

plt.gca().yaxis.get_ticklocs()
# [  1.00000000e-04   1.00000000e-03   1.00000000e-02   1.00000000e-01
#    1.00000000e+00   1.00000000e+01]

Maybe log in bar plot and logx and logy kw should be merged in future...

TomAugspurger pushed a commit that referenced this pull request Apr 16, 2015
BUG: barplot with log=True not working for values smaller than 1
@TomAugspurger TomAugspurger merged commit 08245ba into pandas-dev:master Apr 16, 2015
@TomAugspurger
Copy link
Contributor

Looks good. Thanks.

@jorisvandenbossche jorisvandenbossche added this to the 0.16.1 milestone Apr 16, 2015
@jorisvandenbossche
Copy link
Member

@sinhrks Thanks a lot! Can confirm this fixes my issue!

@sinhrks sinhrks deleted the bar_log branch April 18, 2015 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: barplot with log=True not working for values smaller than 1
3 participants