pyplot surface fix
This commit is contained in:
parent
3d4d844e72
commit
1d1e1beca5
@ -300,11 +300,13 @@ function _add_series(pkg::PyPlotBackend, plt::Plot; kw...)
|
|||||||
|
|
||||||
# handle mismatched x/y sizes, as PyPlot doesn't like that
|
# handle mismatched x/y sizes, as PyPlot doesn't like that
|
||||||
x, y = d[:x], d[:y]
|
x, y = d[:x], d[:y]
|
||||||
nx, ny = map(length, (x,y))
|
if !isa(get(d, :z, nothing), Surface)
|
||||||
if nx < ny
|
nx, ny = map(length, (x,y))
|
||||||
d[:x] = Float64[x[mod1(i,nx)] for i=1:ny]
|
if nx < ny
|
||||||
else
|
d[:x] = Float64[x[mod1(i,nx)] for i=1:ny]
|
||||||
d[:y] = Float64[y[mod1(i,ny)] for i=1:nx]
|
else
|
||||||
|
d[:y] = Float64[y[mod1(i,ny)] for i=1:nx]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ax = getAxis(plt, d[:axis])
|
ax = getAxis(plt, d[:axis])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user