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

nbagg backend API incomplete? #4301

Closed
michaelaye opened this issue Mar 31, 2015 · 5 comments
Closed

nbagg backend API incomplete? #4301

michaelaye opened this issue Mar 31, 2015 · 5 comments

Comments

@michaelaye
Copy link

I'm having a problem with some of seaborn's plots not showing the x/y coordinates for the nbagg backend, see here: mwaskom/seaborn#495

The author of seaborn claims this to be a MPL problem. Will you now kick me back to him? ;)

@mdboom
Copy link
Member

mdboom commented Mar 31, 2015

Doesn't seem to be nbagg-specific. Same issue on GtkAgg and Qt4Agg -- that the coordinates displayed are x= y=. Or is the issue something else?

@michaelaye
Copy link
Author

I don't know which qt I get when I do %matplotlib qt but the coordinates are shown fine here for me.

Using this example code from seaborn:

%matplotlib qt
import seaborn as sns
sns.set()

flights_long = sns.load_dataset("flights")
flights = flights_long.pivot("month", "year", "passengers")
flights = flights.reindex(flights_long.iloc[:12].month)

sns.heatmap(flights, annot=True, fmt="d")

and just leaving out the sns related plotting (but still importing sns just for the dataset):

%matplotlib qt
import seaborn as sns

flights_long = sns.load_dataset("flights")
flights = flights_long.pivot("month", "year", "passengers")
flights = flights.reindex(flights_long.iloc[:12].month)

plt.imshow(flights.values)

I get a QT window that is able to show the x/y coordinates.

screenshot 2015-03-31 14 07 37

while above code using seaborn's heatmap does not show the x/y-coordinates.

@tacaswell
Copy link
Member

The reason sns.heatmap does not show the mouse over is due to https://github.com/mwaskom/seaborn/blob/master/seaborn/matrix.py#L172. This is a seaborn bug, not a mpl bug.

More detail at #4302 and mwaskom/seaborn#495

@mwaskom
Copy link

mwaskom commented Apr 1, 2015

Not to send pissy issues shooting back and forth at each other, but calling the use of ax.set_xticklabels(xticklabels) a "bug" perplexes me.

@michaelaye
Copy link
Author

I don't think unprofessional language is helping anyone, so I unsubscribed from this.

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

No branches or pull requests

4 participants