Skip to content

Label setting in x vs y plot #2543

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

Closed
wesm opened this issue Dec 15, 2012 · 1 comment
Closed

Label setting in x vs y plot #2543

wesm opened this issue Dec 15, 2012 · 1 comment
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Dec 15, 2012

How can I change the label for a 'col1'-'col2'-plot of a DataFrame? pandas seems to set the label automatically, which then clashes with my label setting:

ch7[:21].plot('det','clat',label='ch7')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-122-0f4833abff5e> in <module>()
      1 clf()
----> 2 ch7[:21].plot('det','clat',label='ch7')

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/pandas-0.10.0b1-py2.7-macosx-10.5-x86_64.egg/pandas/tools/plotting.pyc in plot_frame(frame, x, y, subplots, sharex, sharey, use_index, figsize, grid, legend, rot, ax, style, title, xlim, ylim, logy, xticks, yticks, kind, sort_columns, fontsize, secondary_y, **kwds)
   1419                            grid=grid, logy=logy, secondary_y=secondary_y,
   1420                            title=title, figsize=figsize, fontsize=fontsize,
-> 1421                            **kwds)
   1422 
   1423     plot_obj = klass(frame, kind=kind, subplots=subplots, rot=rot,

TypeError: plot_series() got multiple values for keyword argument 'label'

Version: '0.10.0b1'```
@changhiskhan
Copy link
Contributor

Now the label argument sets both xaxis title and legend

jreback pushed a commit to jreback/pandas that referenced this issue Dec 28, 2012
@wesm wesm closed this as completed Dec 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants