8000
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.
1 parent 7c3147b commit e1ca3e7Copy full SHA for e1ca3e7
lib/matplotlib/tests/test_lines.py
@@ -16,6 +16,7 @@
16
from matplotlib.markers import MarkerStyle
17
from matplotlib.path import Path
18
import matplotlib.pyplot as plt
19
+import matplotlib.transforms as mtransforms
20
from matplotlib.testing.decorators import image_comparison, check_figures_equal
21
22
@@ -131,6 +132,13 @@ def test_drawstyle_variants():
131
132
ax.set(xlim=(0, 2), ylim=(0, 2))
133
134
135
+def test_no_subslice_with_transform():
136
+ fig, ax = plt.subplots()
137
+ t = mtransforms.Affine2D().translate(2000.0, 0.0)
138
+ l = ax.plot(range(2000), transform=t+ax.transData)
139
+ assert len(l[0].get_path()) == 2000
140
+
141
142
def test_valid_drawstyles():
143
line = mlines.Line2D([], [])
144
with pytest.raises(ValueError):
0 commit comments