File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ Plot 22 uses a different specific function in a file with plot commands:
180
180
181
181
.. plot :: range6.py range10
182
182
183
- Plots 23 and 24 use image-basename.
183
+ Plots 23--25 use image-basename.
184
184
185
185
.. plot ::
186
186
:image-basename: custom-basename-6
@@ -189,3 +189,12 @@ Plots 23 and 24 use image-basename.
189
189
190
190
.. plot :: range4.py
191
191
:image-basename: custom-basename-4
192
+
193
+ .. plot ::
194
+ :image-basename: custom-basename-4-6
195
+
196
+ plt.figure()
197
+ plt.plot(range(4))
198
+
199
+ plt.figure()
200
+ plt.plot(range(6))
Original file line number Diff line number Diff line change @@ -92,9 +92,11 @@ def plot_directive_file(num):
92
92
assert filecmp .cmp (range_6 , plot_file (17 ))
93
93
# plot 22 is from the range6.py file again, but a different function
94
94
assert filecmp .cmp (range_10 , img_dir / 'range6_range10.png' )
95
- # plots 23 and 24 use a custom basename
95
+ # plots 23--25 use a custom basename
96
96
assert filecmp .cmp (range_6 , img_dir / 'custom-basename-6.png' )
97
97
assert filecmp .cmp (range_4 , img_dir / 'custom-basename-4.png' )
98
+ assert filecmp .cmp (range_4 , img_dir / 'custom-basename-4-6_00.png' )
99
+ assert filecmp .cmp (range_6 , img_dir / 'custom-basename-4-6_01.png' )
98
100
99
101
# Modify the included plot
100
102
contents = (tmp_path / 'included_plot_21.rst' ).read_bytes ()
You can’t perform that action at this time.
0 commit comments