Undo unrelated change
This commit is contained in:
parent
74e985d924
commit
6c9d5b85b6
@ -305,11 +305,9 @@ function heatmap_edges(
|
|||||||
ismidpoints = prod(z_size) == (ny * nx)
|
ismidpoints = prod(z_size) == (ny * nx)
|
||||||
isedges = z_size == (ny - 1, nx - 1)
|
isedges = z_size == (ny - 1, nx - 1)
|
||||||
if !ismidpoints && !isedges
|
if !ismidpoints && !isedges
|
||||||
error(
|
error("""Length of x & y does not match the size of z.
|
||||||
"""Length of x & y does not match the size of z.
|
Must be either `size(z) == (length(y), length(x))` (x & y define midpoints)
|
||||||
Must be either `size(z) == (length(y), length(x))` (x & y define midpoints)
|
or `size(z) == (length(y)+1, length(x)+1))` (x & y define edges).""")
|
||||||
or `size(z) == (length(y)+1, length(x)+1))` (x & y define edges).""",
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
x, y = heatmap_edges(x, xscale, isedges), heatmap_edges(y, yscale, isedges, ispolar) # special handle for `r` in polar plots
|
x, y = heatmap_edges(x, xscale, isedges), heatmap_edges(y, yscale, isedges, ispolar) # special handle for `r` in polar plots
|
||||||
return x, y
|
return x, y
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user