Python条形图中error_kw的关键字值

tnk*_*epp 6 matplotlib kwargs python-2.7

我想调整条形图中的错误栏属性.显然,这是通过使用关键字参数(即在error_kw中)来完成的.例如

from pylab import *

fig = figure()
ax  = fig.add_subplot(111)

ax.plot( left=0, width=1, height=5, error_kw=dict(elinewidth=3, ecolor='b') )
Run Code Online (Sandbox Code Playgroud)

但是,我找不到可能的error_kw值的列表.
我提前为提出这样一个微不足道的问题而道歉,但我无法在任何地方找到它,这让我感到疯狂.

zer*_*cog 3

请参阅 matplotlib.pyplot.bar 的参数

\n\n
Parameters: \nleft : sequence of scalars\n\nthe x coordinates of the left sides of the bars\n\nheight : sequence of scalars\n\nthe heights of the bars\n\nwidth : scalar or array-like, optional, default: 0.8\n\nthe width(s) of the bars\n\nbottom : scalar or array-like, optional, default: None\n\nthe y coordinate(s) of the bars\n\ncolor : scalar or array-like, optional\n\nthe colors of the bar faces\n\nedgecolor : scalar or array-like, optional\n\nthe colors of the bar edges\n\nlinewidth : scalar or array-like, optional, default: None\n\nwidth of bar edge(s). If None, use default linewidth; If 0, don\xe2\x80\x99t draw edges.\n\nxerr : scalar or array-like, optional, default: None\n\nif not None, will be used to generate errorbar(s) on the bar chart\n\nyerr :scalar or array-like, optional, default: None :\n\nif not None, will be used to generate errorbar(s) on the bar chart\n\necolor : scalar or array-like, optional, default: None\n\nspecifies the color of errorbar(s)\n\ncapsize : integer, optional, default: 3\n\ndetermines the length in points of the error bar caps\n\nerror_kw : :\n\ndictionary of kwargs to be passed to errorbar method. ecolor and capsize may be specified here rather than as independent kwargs.\n\nalign : [\xe2\x80\x98edge\xe2\x80\x99 | \xe2\x80\x98center\xe2\x80\x99], optional, default: \xe2\x80\x98edge\xe2\x80\x99\n\nIf edge, aligns bars by their left edges (for vertical bars) and by their bottom edges (for horizontal bars). If center, interpret the left argument as the coordinates of the centers of the bars.\n\norientation : \xe2\x80\x98vertical\xe2\x80\x99 | \xe2\x80\x98horizontal\xe2\x80\x99, optional, default: \xe2\x80\x98vertical\xe2\x80\x99\n\nThe orientation of the bars.\n\nlog : boolean, optional, default: False\n\nIf true, sets the axis to be log scale\n
Run Code Online (Sandbox Code Playgroud)\n