Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f06c0a4

Browse files
committed
Don't plot errorbar caps by default
Fix #5047
1 parent 8203f27 commit f06c0a4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/pylab_examples/errorbar_limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
x = np.arange(10.0)
1010
y = np.sin(np.arange(10.0)/20.0*np.pi)
1111

12-
plt.errorbar(x, y, yerr=0.1, capsize=3)
12+
plt.errorbar(x, y, yerr=0.1)
1313

1414
y = np.sin(np.arange(10.0)/20.0*np.pi) + 1
1515
plt.errorbar(x, y, yerr=0.1, uplims=True)

examples/statistics/errorbar_limits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
uplims[[3]] = True
4646
plt.errorbar(x, y + 2.1, marker='o', ms=8, xerr=xerr, yerr=yerr,
4747
xlolims=xlolims, xuplims=xuplims, uplims=uplims, lolims=lolims,
48-
ls='none', mec='blue', capsize=0, color='cyan')
48+
ls='none', mec='blue', color='cyan')
4949

5050
ax.set_xlim((0, 5.5))
5151
ax.set_title('Errorbar upper and lower limits')

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def validate_hist_bins(s):
954954
'contour.corner_mask': [True, validate_corner_mask],
955955

956956
# errorbar props
957-
'errorbar.capsize': [3, validate_float],
957+
'errorbar.capsize': [0, validate_float],
958958

959959
# axes props
960960
'axes.axisbelow': [False, validate_bool],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ backend : %(backend)s
425425
#contour.corner_mask : True # True | False | legacy
426426

427427
### ERRORBAR PLOTS
428-
#errorbar.capsize : 3 # length of end cap on error bars in pixels
428+
#errorbar.capsize : 0 # length of end cap on error bars in pixels
429429

430430
### HISTOGRAM PLOTS
431431
#hist.bins : 10 # The default number of histogram bins.

0 commit comments

Comments
 (0)