updated glvisualize
This commit is contained in:
parent
0487d7a058
commit
a68a6885d0
@ -6,16 +6,15 @@
|
|||||||
|
|
||||||
immutable GLScreenWrapper
|
immutable GLScreenWrapper
|
||||||
window
|
window
|
||||||
render
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function _create_plot(pkg::GLVisualizePackage; kw...)
|
function _create_plot(pkg::GLVisualizePackage; kw...)
|
||||||
d = Dict(kw)
|
d = Dict(kw)
|
||||||
# TODO: create the window/canvas/context that is the plot within the backend (call it `o`)
|
# TODO: create the window/canvas/context that is the plot within the backend (call it `o`)
|
||||||
# TODO: initialize the plot... title, xlabel, bgcolor, etc
|
# TODO: initialize the plot... title, xlabel, bgcolor, etc
|
||||||
w,r=GLVisualize.glscreen()
|
w=GLVisualize.glscreen()
|
||||||
@async r()
|
@async GLVisualize.renderloop(w)
|
||||||
Plot(GLScreenWrapper(w,r), pkg, 0, d, Dict[])
|
Plot(GLScreenWrapper(w), pkg, 0, d, Dict[])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -23,8 +22,8 @@ function _add_series(::GLVisualizePackage, plt::Plot; kw...)
|
|||||||
d = Dict(kw)
|
d = Dict(kw)
|
||||||
# TODO: add one series to the underlying package
|
# TODO: add one series to the underlying package
|
||||||
push!(plt.seriesargs, d)
|
push!(plt.seriesargs, d)
|
||||||
x,y,z=map(Float32,d[:x]), map(Float32,d[:y]), map(Float32,d[:surface].surf)
|
x,y,z=map(Float32,d[:x]), map(Float32,d[:y]), map(Float32,d[:z].surf)
|
||||||
GLVisualize.view(GLVisualize.visualize(x*ones(y)', ones(x)*y', z, :surface))
|
GLVisualize.view(GLVisualize.visualize((x*ones(y)', ones(x)*y', z), :surface),plt.o.window)
|
||||||
plt
|
plt
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -510,7 +510,7 @@ supportedArgs(::GLVisualizePackage) = [
|
|||||||
# :legend,
|
# :legend,
|
||||||
# :linecolor,
|
# :linecolor,
|
||||||
# :linestyle,
|
# :linestyle,
|
||||||
# :linetype,
|
:linetype
|
||||||
# :linewidth,
|
# :linewidth,
|
||||||
# :linealpha,
|
# :linealpha,
|
||||||
# :markershape,
|
# :markershape,
|
||||||
@ -552,7 +552,7 @@ supportedArgs(::GLVisualizePackage) = [
|
|||||||
# :nlevels,
|
# :nlevels,
|
||||||
]
|
]
|
||||||
supportedAxes(::GLVisualizePackage) = [:auto, :left]
|
supportedAxes(::GLVisualizePackage) = [:auto, :left]
|
||||||
supportedTypes(::GLVisualizePackage) = [:contour] #, :path, :scatter ,:steppre, :steppost, :sticks, :heatmap, :hexbin, :hist, :bar, :hline, :vline, :contour]
|
supportedTypes(::GLVisualizePackage) = [:surface] #, :path, :scatter ,:steppre, :steppost, :sticks, :heatmap, :hexbin, :hist, :bar, :hline, :vline, :contour]
|
||||||
supportedStyles(::GLVisualizePackage) = [:auto, :solid] #, :dash, :dot, :dashdot, :dashdotdot]
|
supportedStyles(::GLVisualizePackage) = [:auto, :solid] #, :dash, :dot, :dashdot, :dashdotdot]
|
||||||
supportedMarkers(::GLVisualizePackage) = [:none, :auto, :ellipse] #, :rect, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star5] #vcat(_allMarkers, Shape)
|
supportedMarkers(::GLVisualizePackage) = [:none, :auto, :ellipse] #, :rect, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star5] #vcat(_allMarkers, Shape)
|
||||||
supportedScales(::GLVisualizePackage) = [:identity] #, :log, :log2, :log10, :asinh, :sqrt]
|
supportedScales(::GLVisualizePackage) = [:identity] #, :log, :log2, :log10, :asinh, :sqrt]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user