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

Hexbin plots does not display x label and xtick labels #10678

Closed
BDannowitz opened this issue Jul 26, 2015 · 10 comments · Fixed by #20446
Closed

Hexbin plots does not display x label and xtick labels #10678

BDannowitz opened this issue Jul 26, 2015 · 10 comments · Fixed by #20446
Labels
Milestone

Comments

@BDannowitz
Copy link

I'm currently using python 2.7, pandas 0.16.2.dev, and ipython version 3.1.0

In brief, it seems that there are cases that the sharex option of pandas.DataFrame.plot(kind='hexbin') defaults to True instead of False. This causes the x label and xtick labels to be invisible.

pandas-sharex-bug

Preceding stack overflow and ipython github threads that led to here:

http://stackoverflow.com/questions/31220329/pandas-dataframe-hexbin-plot-has-no-xlabel-or-axis-values

ipython/ipython#8653

@TomAugspurger
Copy link
Contributor

I suspect that it's the same underlying issue as #10611, which is for scatter.

@rabernat
Copy link

rabernat commented Sep 7, 2017

What is the recommended workaround for this issue?

@cwwalter
Copy link

cwwalter commented Sep 7, 2017

What is the recommended workaround for this issue?

Put a sharex=False in your plot command.

@stelios-c
Copy link

stelios-c commented Oct 14, 2021

has this definitely been fixed? I just had to use the sharex=False workaround on Jupyter 3 (Google Cloud Platform Vertex AI notebooks)

@rabernat
Copy link

I just had to use the sharex=False workaround on Jupyter 3 (Google Cloud Platform Vertex AI notebooks)

What version of pandas does your environment have?

@stelios-c
Copy link

stelios-c commented Oct 14, 2021

It's this GCP release https://cloud.google.com/deep-learning-vm/docs/release-notes#October_12_2021

import pandas as pd
pd.__version__
'1.3.3'

@rabernat
Copy link

Indeed that is the latest version. 😬

I just reproduced the original bug with 1.3.3 as well

import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(1000, 2), columns=['a', 'b'])
df.plot.hexbin(x='a', y='b');

image

@stelios-c
Copy link

I don't have permissions to re-open this, so anyone with the permissions please re-open.

@jreback
Copy link
Contributor

jreback commented Oct 15, 2021

beat to open a new issue

@stelios-c
Copy link

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants