You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Histogram with histtype='step' dows not respect lines.linewidth #4065
I would like to suggest switching to using ax.step internally to plot such histograms, so that lines.linewidth gets respected (I think it makes sense e.g. for seaborn to set a relatively small patch.linewidth but a large lines.linewidth).
Reporting an idea that had been shot down on seaborn's side:
What about having hist locally patch rcParams to set patch.linewidth to lines.linewidth when making the plot? I still think the current behavior is unintuitive.
If something like that were to happen, the right place would be for seaborn to wrap hist and then use the style context manager to locally over-ride the rcparams.
Activity
tacaswell commentedon Feb 6, 2015
This is because hist use a
Patchobject to draw the stepped histogram, not aLine2Dobject.I would suggest not using
histand instead usenp.histogram+ax.stepwhich should be aware of that rcparam.
maxnoe commentedon Feb 6, 2015
Ah ok. So it does respect
patch.linewidth.anntzer commentedon Sep 17, 2015
I would like to suggest switching to using
ax.stepinternally to plot such histograms, so thatlines.linewidthgets respected (I think it makes sense e.g. for seaborn to set a relatively smallpatch.linewidthbut a largelines.linewidth).tacaswell commentedon Sep 17, 2015
@anntzer No, because then the return typo of
histwould depend on a kwarg which is really bad form.anntzer commentedon Sep 17, 2015
Fair enough, reopened on seaborn's side as mwaskom/seaborn#704.
anntzer commentedon Oct 8, 2015
Reporting an idea that had been shot down on seaborn's side:
What about having
histlocally patch rcParams to setpatch.linewidthtolines.linewidthwhen making the plot? I still think the current behavior is unintuitive.tacaswell commentedon Oct 8, 2015
👎 on that from me as well.
If something like that were to happen, the right place would be for seaborn to wrap hist and then use the style context manager to locally over-ride the rcparams.