Skip to content

Commit fce4b0b

Browse files
authored
change pointinterval style (#105)
1 parent aada537 commit fce4b0b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

preliz/utils/plot_utils.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,17 @@ def plot_pointinterval(distribution, quantiles=None, rotated=False, ax=None):
3434

3535
if rotated:
3636
if q_s_size == 5:
37-
ax.plot([0, 0], (q_s.pop(0), q_s.pop(-1)), "k", lw=1.5)
37+
ax.plot([0, 0], (q_s.pop(0), q_s.pop(-1)), "k", solid_capstyle="butt", lw=1.5)
3838
if q_s_size > 2:
39-
ax.plot([0, 0], (q_s.pop(0), q_s.pop(-1)), "k", lw=4)
39+
ax.plot([0, 0], (q_s.pop(0), q_s.pop(-1)), "k", solid_capstyle="butt", lw=4)
4040
if q_s_size > 0:
4141
ax.plot(0, q_s[0], "wo", mec="k")
4242
else:
4343
if q_s_size == 5:
44-
ax.plot((q_s.pop(0), q_s.pop(-1)), [0, 0], "k", lw=1.5)
44+
ax.plot((q_s.pop(0), q_s.pop(-1)), [0, 0], "k", solid_capstyle="butt", lw=1.5)
4545
if q_s_size > 2:
46-
ax.plot((q_s.pop(0), q_s.pop(-1)), [0, 0], "k", lw=4)
46+
ax.plot((q_s.pop(0), q_s.pop(-1)), [0, 0], "k", solid_capstyle="butt", lw=4)
47+
4748
if q_s_size > 0:
4849
ax.plot(q_s[0], 0, "wo", mec="k")
4950

0 commit comments

Comments
 (0)