Skip to content

Commit 2724116

Browse files
authored
Merge pull request matplotlib#19619 from r03ert0/patch-1
Fix bug in shape assignment
2 parents 8d7e4aa + 4f74c15 commit 2724116

12 files changed

+8537
-7779
lines changed

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)