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

Skip to content

Commit 80089cd

Browse files
committed
RR - fix axes vlines and hlines using wrong coordinates
1 parent 70e0ba8 commit 80089cd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4938,6 +4938,17 @@ def test_lines_with_colors(fig_test, fig_ref, data):
49384938
colors=expect_color, linewidth=5)
49394939

49404940

4941+
@image_comparison(['vlines_blended_transform'],
4942+
extensions=['png'], style='mpl20')
4943+
def test_vlines_blended_transform():
4944+
t = np.arange(5.0, 10.0, 0.1)
4945+
s = np.exp(-t) + np.sin(2 * np.pi * t) + 10
4946+
vax = plt.figure(figsize=(12, 6)).gca()
4947+
vax.plot(t, s, '^')
4948+
vax.vlines([6, 7], ymin=0, ymax=0.15, transform=vax.get_xaxis_transform(),
4949+
colors='r')
4950+
4951+
49414952
@image_comparison(['step_linestyle', 'step_linestyle'], remove_text=True)
49424953
def test_step_linestyle():
49434954
x = y = np.arange(10)

0 commit comments

Comments
 (0)