Commit f6a6fa6
Add new num_arrows option to streamplot (#27617)
* Add new narrows option to streamplot
Fix test image
numarrows > narrows
* Add multiple arrows example
Fix example
* Tidy up alt text in what's new example
* narrows > n_arrows
* Fix new streamplot type stub
Co-authored-by: Kyle Sunden <git@ksunden.space>
* Rename n_arrows to num_arrows
* Fix handling of stream line width with multiple arrows
---------
Co-authored-by: clairefio <clairefiorino@icloud.com>
Co-authored-by: Kyle Sunden <git@ksunden.space>
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>1 parent 2fa9151 commit f6a6fa6Copy full SHA for f6a6fa6
File tree
Expand file treeCollapse file tree
10 files changed
+73
-3124
lines changedOpen diff view settings
Filter options
- doc/users/next_whats_new
- galleries/examples/images_contours_and_fields
- lib/matplotlib
- tests
- baseline_images/test_streamplot
Expand file treeCollapse file tree
10 files changed
+73
-3124
lines changedOpen diff view settings
Collapse file
doc/users/next_whats_new/streamplot_multiple_arrows.rst
Copy file name to clipboard+22Lines changed: 22 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
Collapse file
galleries/examples/images_contours_and_fields/plot_streamplot.py
Copy file name to clipboardExpand all lines: galleries/examples/images_contours_and_fields/plot_streamplot.py+14-8Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
| 26 | + |
27 | 27 | |
28 | 28 | |
29 | 29 | |
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
55 | 61 | |
56 | 62 | |
57 | 63 | |
58 | 64 | |
59 | 65 | |
60 | 66 | |
61 | | - |
62 | | - |
| 67 | + |
| 68 | + |
63 | 69 | |
64 | | - |
| 70 | + |
65 | 71 | |
66 | | - |
| 72 | + |
67 | 73 | |
68 | | - |
69 | | - |
| 74 | + |
| 75 | + |
70 | 76 | |
71 | 77 | |
72 | 78 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4125 | 4125 | |
4126 | 4126 | |
4127 | 4127 | |
| 4128 | + |
4128 | 4129 | |
4129 | 4130 | |
4130 | 4131 | |
| ||
4146 | 4147 | |
4147 | 4148 | |
4148 | 4149 | |
| 4150 | + |
4149 | 4151 | |
4150 | 4152 | |
4151 | 4153 | |
|
Collapse file
lib/matplotlib/streamplot.py
Copy file name to clipboardExpand all lines: lib/matplotlib/streamplot.py+26-12Lines changed: 26 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
23 | 23 | |
24 | 24 | |
25 | 25 | |
| ||
73 | 73 | |
74 | 74 | |
75 | 75 | |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
76 | 81 | |
77 | 82 | |
78 | 83 | |
| ||
92 | 97 | |
93 | 98 | |
94 | 99 | |
| 100 | + |
| 101 | + |
| 102 | + |
95 | 103 | |
96 | 104 | |
97 | 105 | |
| ||
206 | 214 | |
207 | 215 | |
208 | 216 | |
209 | | - |
| 217 | + |
210 | 218 | |
211 | | - |
212 | | - |
213 | | - |
214 | | - |
215 | 219 | |
216 | 220 | |
217 | 221 | |
218 | | - |
219 | | - |
220 | 222 | |
221 | 223 | |
222 | 224 | |
223 | | - |
224 | 225 | |
225 | | - |
226 | | - |
227 | | - |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
228 | 242 | |
229 | 243 | |
230 | 244 | |
|
Collapse file
lib/matplotlib/streamplot.pyi
Copy file name to clipboardExpand all lines: lib/matplotlib/streamplot.pyi+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
| 32 | + |
31 | 33 | |
32 | 34 | |
33 | 35 | |
|
Collapse file
lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_linewidth.pdf
Copy file name to clipboard-21.3 KBBinary file not shown.
Collapse file
lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_linewidth.png
Copy file name to clipboard1.93 KB- Display the source diff
- Display the rich diff
Loading
0 commit comments