Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitcce31fa
committed
Don't let margins expand polar plots to negative radii by default.
This is implemented by altering the semantics of sticky edges asdocumented in the changelog. As it turns out, this change also improvesconsistency for streamplot():- in test_streamplot.py::test_{linewidth,mask_and_nans}, the change is necessary because the axes limits would now be (-3, 3) (matching the vector field limits), whereas they were previously xlim=(-3.0, 2.9999999999999947), ylim=(-3.0000000000000004, 2.9999999999999947) (they can be inspected with `plt.gcf().canvas.draw(); print(plt.gca().get_xlim(), plt.gca().get_ylim())`).- in test_streamplot.py::test_maxlength, note that the previous version expanded the axes limits *beyond* (-3, 3), whereas the current doesn't do so anymore. It doesn't actually make much sense if the vector field limits are applied if the streamplot goes all the way to the edges, but are ignored otherwise.1 parent79ccf53 commitcce31fa
File tree
5 files changed
+66
-24
lines changed- doc/api/next_api_changes
- lib/matplotlib
- axes
- tests
- baseline_images/test_streamplot
5 files changed
+66
-24
lines changedLines changed: 24 additions & 0 deletions
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 | + | |
| 23 | + | |
| 24 | + |
Lines changed: 29 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2402 | 2402 |
| |
2403 | 2403 |
| |
2404 | 2404 |
| |
2405 |
| - | |
2406 |
| - | |
2407 |
| - | |
2408 |
| - | |
2409 |
| - | |
2410 |
| - | |
2411 | 2405 |
| |
2412 |
| - | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
2413 | 2413 |
| |
2414 | 2414 |
| |
2415 | 2415 |
| |
| |||
2450 | 2450 |
| |
2451 | 2451 |
| |
2452 | 2452 |
| |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
2453 | 2465 |
| |
2454 | 2466 |
| |
2455 | 2467 |
| |
2456 | 2468 |
| |
2457 | 2469 |
| |
2458 |
| - | |
2459 |
| - | |
2460 |
| - | |
2461 |
| - | |
2462 | 2470 |
| |
2463 | 2471 |
| |
2464 |
| - | |
2465 |
| - | |
2466 |
| - | |
2467 |
| - | |
2468 |
| - | |
2469 |
| - | |
2470 |
| - | |
2471 |
| - | |
2472 |
| - | |
2473 |
| - | |
2474 |
| - | |
2475 |
| - | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
2476 | 2482 |
| |
2477 | 2483 |
| |
2478 | 2484 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
800 | 806 |
| |
801 | 807 |
| |
802 | 808 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 |
| |
60 | 63 |
| |
61 | 64 |
| |
| |||
69 | 72 |
| |
70 | 73 |
| |
71 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 |
| |
73 | 79 |
| |
74 | 80 |
| |
|
0 commit comments
Comments
(0)