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

Plot keyword arguments are unused in DataFrame plot() #4

Closed
wesm opened this issue Sep 29, 2010 · 1 comment
Closed

Plot keyword arguments are unused in DataFrame plot() #4

wesm opened this issue Sep 29, 2010 · 1 comment

Comments

@wesm
Copy link
Member

wesm commented Sep 29, 2010

Reported by twhitcomb, Jul 27, 2010
What steps will reproduce the problem?

  1. Import pandas
  2. Create a sample DataFrame
  3. Plot the DataFrame using a linewidth keyword argument.

What is the expected output? What do you see instead?
I expect to see the linewidth keyword argument passed through to the plotting routine. Instead, the plot is displayed with the default linewidth (see attached figure).

What version of the product are you using? On what operating system?

pandas.version
0.20000000000000001
Microsoft Windows Vista, Python(x,y) 2.6.5.1

Please provide any additional information below.
Looking at the plot function in frame.py it's obvious why this is happening:
def plot(self, kind='line', **kwds): # pragma: no cover
from pylab import plot

    for col in sorted(self.columns):
        s = self[col]
        plot(s.index, s, label=col)

Note that **kwds is not used in the plot command.

If I load a new function into my workspace like
def plot_frame(frame, *_kwargs):
from pylab import plot
for col in sorted(frame.columns):
s = frame[col]
plot(s.index, s, label=col, *_kwargs)

Then the arguments are correctly passed on, and I get the proper response, as shown in the other attached figure.

@wesm
Copy link
Member Author

wesm commented Dec 11, 2010

fixed

dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
…hrough_to_tickstore to master

* commit 'f3d7229c98cde50257394dddb41400c44ea051b0':
  MDP-448 Pass all arguments through from TopLevelTickStore.read to TickStore.read
phofl referenced this issue in phofl/pandas Aug 16, 2022
dimastbk pushed a commit to dimastbk/pandas that referenced this issue Aug 2, 2023
pyfra pushed a commit to pyfra/pandas that referenced this issue Nov 9, 2024
This issue was closed.
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

1 participant