-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Plotting series (columns) fails #224
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
Comments
I was aware of this issue but wasn't sure what to do about it. The preferred way of doing When you say "plot one versus the other" you mean a scatter plot? |
Yes, I am thinking of scatter plots - they're the commonest type of plot in my field. The Would it make sesnse to fall back to an array if we try to index to additional axes? The key is mpl calling |
I definitely agree that good integration with mpl is important-- where is the right place to report these issues? I guess it's sort of my own fault for breaking the ndarray interface in getitem, but I think it's a worthwhile tradeoff. I think we can put in a hack without breaking any unit tests, will take a look later today (after I get my PyCon proposals done) |
Thanks - I look forward to testing it (as you've probably guessed, I'm |
try it out and let me know if things work like they should now |
I can confirm that's doing the trick. Thanks, Wes. |
Calling plot from matplotlib with series (e.g. columns of a DataFrame) fails, because it tries to add an axis to the series objects. A traceback can be found here: https://gist.github.com/1281034 .
One way to solve this could be, if we try to index a series to multiple dimensions, simply return a plain numpy array of the data. Or maybe it makes more sense to make changes on the matplotlib side?
Series.plot()
andDataFrame.plot()
are designed to plot columns against the index, but don't appear to help with plotting one column against another.The text was updated successfully, but these errors were encountered: