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

`kwargs` are ignored in `Series.plot` #1636

Closed
andreas-h opened this issue Jul 18, 2012 · 2 comments

Comments

@andreas-h
Copy link
Contributor

commented Jul 18, 2012

It seems that some kwargs (like mew and ms) given to the Series.plot method are being ignored.

I'm running pandas.0.8.0 and matplotlib 1.1.0 on Archlinux, Python 2.7.3 with ipython 0.12.1, and starting ipython via ipython2 --pylab=qt.

The following code produces the erroneous behaviour. The mpl plotting works just fine, whereas the pandas plotting ignores ms and mew arguments.

import matplotlib as mpl
from numpy import random
import pandas
print pandas.__version__

test = pandas.Series(random.randn(120),
                     index=pandas.date_range(start="2000-01-01",
                                             end="2009-12-31",
                                             freq=pandas.datetools.MonthBegin()))

mpl.pyplot.figure()
# this produces the correct markers
mpl.pyplot.plot(test, '.', ms=12.)

mpl.pyplot.figure()
# this ignores the ms kwarg
test.plot(style='.', ms=12.)

It would be okay to use matplotlib's plotting function, but I'm dealing with time series, and I don't think matplotlib's support for dates is too convenient.

Is this a bug, or am I just doing it wrong?

@changhiskhan

This comment has been minimized.

Copy link
Contributor

commented Jul 18, 2012

I just tested this and I believe it is fixed in my most recent PR. We'll have it merged in soon and it will be part of 0.8.1 release. Thanks.

@wesm

This comment has been minimized.

Copy link
Member

commented Jul 19, 2012

Just verified that this is fixed from @changhiskhan's #1640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.