Repository navigation
Commit 5f8c2f0
committed
FIX: Raise for single row/column grids with nearest shading
Explicitly providing a single row or single column grid for
pcolor(mesh) with nearest shading, silently produces no plot.
This happens because nearest shading interprets the X and Y
coordinates as cell centers and then calculates, from neighboring
centers, new X and Y coordinates for the cell corners. When a
coordinate array contains only one center, its corresponding cell
size cannot be determined from neighboring centers.
This commit fixes the behavior of silently producing no plot by
raising an error for such grids and recommending that users
supply cell corners instead.1 parent 2d0352a commit 5f8c2f0
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6560 | 6560 | | |
6561 | 6561 | | |
6562 | 6562 | | |
6563 | | - | |
6564 | | - | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
6565 | 6571 | | |
6566 | 6572 | | |
6567 | 6573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
1681 | 1691 | | |
1682 | 1692 | | |
1683 | 1693 | | |
| |||
0 commit comments