Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa24348 + 213d37f commit e1bdb3bCopy full SHA for e1bdb3b
1 file changed
examples/text_labels_and_annotations/mathtext_examples.py
@@ -89,9 +89,7 @@ def doall():
89
baseline = 1 - i_line * line_axesfrac
90
baseline_next = baseline - line_axesfrac
91
fill_color = ['white', 'tab:blue'][i_line % 2]
92
- ax.fill_between([0, 1], [baseline, baseline],
93
- [baseline_next, baseline_next],
94
- color=fill_color, alpha=0.2)
+ ax.axhspan(baseline, baseline_next, color=fill_color, alpha=0.2)
95
ax.annotate(f'{title}:',
96
xy=(0.06, baseline - 0.3 * line_axesfrac),
97
color=mpl_grey_rgb, weight='bold')
0 commit comments