-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Bar Plot does not allow to change linewidth #1658
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
What version of pandas are you on? |
I am on 0.8.1, just upgraded. Here is my output: a.plot(kind='bar',stacked=True) so this works fine. If I specify a linewidth keyword it breaks, as the method bar_f already has a keyword linewidth: a.plot(kind='bar',stacked=True,linewidth=2)TypeError Traceback (most recent call last) /usr/local/lib/python2.7/site-packages/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) /usr/local/lib/python2.7/site-packages/pandas/tools/plotting.pyc in generate(self) /usr/local/lib/python2.7/site-packages/pandas/tools/plotting.pyc in _make_plot(self) TypeError: f() got multiple values for keyword argument 'linewidth' |
Oh I see. For some reason the linewidth keyword defaulted to 1 for the bar plot if stacked was True (I was quickly checking it without stacked). I'll put in a fix. On Jul 24, 2012, at 3:16 AM, Christian Prinoth wrote:
|
Thanks, btw, I also noticed an inconsistent handling of x axis formatting: eg the size of xaxis ticklabels is controlled by the fontsize parameter, but this does not affect y axis and/or legend. Further, even if the fontsize keyword is not explicitly specified, there is a default somewhere that overrides matplotlib rc settings. maybe it would be better not to handle fontsize at pandas level and fall back on matplotlib defaults. |
Yeah, I think it absolutely makes sense to push as much of the styling down to matplotlib as possible. |
linewidth for barplots (ie the edge lines of the bars) appears to be fixed at 1. Would it be possible to allow it to be set freely?
The text was updated successfully, but these errors were encountered: