Changed treatment of contour types, to allow for x,y in grid form, allowed by PyPlot backend
This commit is contained in:
parent
fde0fa673b
commit
f792aea98e
@ -638,6 +638,12 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
|
|
||||||
if st in (:contour, :contour3d)
|
if st in (:contour, :contour3d)
|
||||||
z = transpose_z(series, z.surf)
|
z = transpose_z(series, z.surf)
|
||||||
|
if typeof(x)<:Plots.Surface
|
||||||
|
x = Plots.transpose_z(series, x.surf)
|
||||||
|
end
|
||||||
|
if typeof(y)<:Plots.Surface
|
||||||
|
y = Plots.transpose_z(series, y.surf)
|
||||||
|
end
|
||||||
|
|
||||||
if st == :contour3d
|
if st == :contour3d
|
||||||
extrakw[:extend3d] = true
|
extrakw[:extend3d] = true
|
||||||
|
|||||||
@ -327,7 +327,7 @@ end
|
|||||||
|
|
||||||
function _override_seriestype_check(d::KW, st::Symbol)
|
function _override_seriestype_check(d::KW, st::Symbol)
|
||||||
# do we want to override the series type?
|
# do we want to override the series type?
|
||||||
if !is3d(st)
|
if !is3d(st) && !(st in (:contour,:contour3d))
|
||||||
z = d[:z]
|
z = d[:z]
|
||||||
if !isa(z, Void) && (size(d[:x]) == size(d[:y]) == size(z))
|
if !isa(z, Void) && (size(d[:x]) == size(d[:y]) == size(z))
|
||||||
st = (st == :scatter ? :scatter3d : :path3d)
|
st = (st == :scatter ? :scatter3d : :path3d)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user