Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d65d411

Browse files
jklymakmeeseeksmachine
authored andcommitted
Backport PR #19619: Fix bug in shape assignment
1 parent da05621 commit d65d411

12 files changed

Lines changed: 8537 additions & 7779 deletions

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def _integrate_rk12(x0, y0, dmap, f, maxlength):
572572
dx2 = ds * 0.5 * (k1x + k2x)
573573
dy2 = ds * 0.5 * (k1y + k2y)
574574

575-
nx, ny = dmap.grid.shape
575+
ny, nx = dmap.grid.shape
576576
# Error is normalized to the axes coordinates
577577
error = np.hypot((dx2 - dx1) / (nx - 1), (dy2 - dy1) / (ny - 1))
578578

Binary file not shown.
2.2 KB
Loading

lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_colormap.svg

Lines changed: 2267 additions & 2179 deletions
Loading
Binary file not shown.
12.4 KB
Loading

lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_linewidth.svg

Lines changed: 2819 additions & 2268 deletions
Loading
Binary file not shown.
2.11 KB
Loading

lib/matplotlib/tests/baseline_images/test_streamplot/streamplot_masks_and_nans.svg

Lines changed: 3437 additions & 3301 deletions
Loading

0 commit comments

Comments
 (0)