Commit 426abc7
committed
Remove {counter} from output-base-name and remove the global config
The idea of allowing the use of the counter for custom base names is flawed
because the counter would always be incremented even for custom names that
don't use it. Also, the global base name is difficult to get working because
we don't have a good global view of the plots to create a counter, especially
in the case of partial rebuilds.
Instead, we just simplify things by just allowing setting a custom-base-name.
If two plot directives use the same custom-base-name, then one will end up
overwriting the other (I'm still looking into whether it's possible to at
least detect this and give an error).1 parent b432962 commit 426abc7
File tree
3 files changed
+11
-19
lines changed- lib/matplotlib
- sphinxext
- tests
- tinypages
3 files changed
+11
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
57 | 54 | | |
58 | 55 | | |
59 | 56 | | |
| |||
97 | 94 | | |
98 | 95 | | |
99 | 96 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 97 | | |
105 | 98 | | |
106 | 99 | | |
| |||
313 | 306 | | |
314 | 307 | | |
315 | 308 | | |
316 | | - | |
317 | 309 | | |
318 | 310 | | |
319 | 311 | | |
| |||
749 | 741 | | |
750 | 742 | | |
751 | 743 | | |
752 | | - | |
| 744 | + | |
753 | 745 | | |
754 | 746 | | |
755 | 747 | | |
| |||
798 | 790 | | |
799 | 791 | | |
800 | 792 | | |
801 | | - | |
802 | | - | |
803 | 793 | | |
804 | 794 | | |
805 | | - | |
| 795 | + | |
806 | 796 | | |
| 797 | + | |
| 798 | + | |
807 | 799 | | |
808 | 800 | | |
809 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
0 commit comments