show arg fix; add image to all3D
This commit is contained in:
parent
928c306803
commit
99fe4f615d
@ -805,14 +805,14 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
||||
push!(handles, handle)
|
||||
needs_colorbar = true
|
||||
|
||||
# TODO: this should probably be handled generically
|
||||
# expand extrema... handle is a QuadMesh object
|
||||
for path in handle[:properties]()["paths"]
|
||||
verts = path[:vertices]
|
||||
xmin, ymin = minimum(verts, 1)
|
||||
xmax, ymax = maximum(verts, 1)
|
||||
expand_extrema!(sp, xmin, xmax, ymin, ymax)
|
||||
end
|
||||
# # TODO: this should probably be handled generically
|
||||
# # expand extrema... handle is a QuadMesh object
|
||||
# for path in handle[:properties]()["paths"]
|
||||
# verts = path[:vertices]
|
||||
# xmin, ymin = minimum(verts, 1)
|
||||
# xmax, ymax = maximum(verts, 1)
|
||||
# expand_extrema!(sp, xmin, xmax, ymin, ymax)
|
||||
# end
|
||||
|
||||
end
|
||||
|
||||
|
||||
@ -541,10 +541,8 @@ function _plot!(plt::Plot, d::KW, args...)
|
||||
|
||||
current(plt)
|
||||
|
||||
# note: lets ignore the show param and effectively use the semicolon at the end of the REPL statement
|
||||
# # do we want to show it?
|
||||
# if haskey(d, :show) && d[:show]
|
||||
if get(d, :show, default(:show))
|
||||
# do we want to force display?
|
||||
if plt[:show]
|
||||
gui()
|
||||
end
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
typealias FuncOrFuncs @compat(Union{Function, AVec{Function}})
|
||||
|
||||
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :heatmap, :surface, :wireframe, :contour3d), get(d, :seriestype, :none))
|
||||
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
|
||||
|
||||
# missing
|
||||
convertToAnyVector(v::@compat(Void), d::KW) = Any[nothing], nothing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user