redid supportedArgs
This commit is contained in:
parent
3a7887d003
commit
92a65296b5
@ -91,7 +91,7 @@ const examples = PlotExample[
|
||||
[
|
||||
:(y = rand(10)),
|
||||
:(plot(y, ann=(3,y[3],"this is #3"))),
|
||||
:(annotate!([(5,y[5],"this is #5"),(8.4,y[10],"this is #10")]))
|
||||
:(annotate!([(5,y[5],"this is #5"),(9,y[10],"this is #10")]))
|
||||
]),
|
||||
|
||||
]
|
||||
|
||||
@ -11,11 +11,11 @@ gadfly() = backend(:gadfly)
|
||||
supportedArgs(::GadflyPackage) = [
|
||||
:annotation,
|
||||
:args,
|
||||
:axis,
|
||||
# :axis,
|
||||
:background_color,
|
||||
:color,
|
||||
:fillto,
|
||||
:foreground_color,
|
||||
# :foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
|
||||
@ -8,7 +8,48 @@ pyplot() = backend(:pyplot)
|
||||
|
||||
# -------------------------------
|
||||
|
||||
supportedArgs(::PyPlotPackage) = setdiff(_allArgs, [:reg, :heatmap_c, :fillto, :pos, :xlims, :ylims, :xticks, :yticks])
|
||||
# supportedArgs(::PyPlotPackage) = setdiff(_allArgs, [:reg, :heatmap_c, :fillto, :pos, :xlims, :ylims, :xticks, :yticks])
|
||||
supportedArgs(::PyPlotPackage) = [
|
||||
:annotation,
|
||||
:args,
|
||||
:axis,
|
||||
:background_color,
|
||||
:color,
|
||||
# :fillto,
|
||||
:foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
:linestyle,
|
||||
:linetype,
|
||||
:marker,
|
||||
:markercolor,
|
||||
:markersize,
|
||||
:n,
|
||||
:nbins,
|
||||
:nc,
|
||||
:nr,
|
||||
# :pos,
|
||||
# :reg,
|
||||
# :ribbon,
|
||||
:show,
|
||||
:size,
|
||||
:title,
|
||||
:width,
|
||||
:windowtitle,
|
||||
:x,
|
||||
:xlabel,
|
||||
# :xlims,
|
||||
# :xticks,
|
||||
:y,
|
||||
:ylabel,
|
||||
# :ylims,
|
||||
:yrightlabel,
|
||||
# :yticks,
|
||||
]
|
||||
supportedAxes(::PyPlotPackage) = _allAxes
|
||||
supportedTypes(::PyPlotPackage) = [:none, :line, :path, :step, :stepinverted, :sticks, :scatter, :heatmap, :hexbin, :hist, :bar]
|
||||
supportedStyles(::PyPlotPackage) = [:auto, :solid, :dash, :dot, :dashdot]
|
||||
|
||||
@ -6,7 +6,48 @@ immutable QwtPackage <: PlottingPackage end
|
||||
export qwt
|
||||
qwt() = backend(:qwt)
|
||||
|
||||
supportedArgs(::QwtPackage) = setdiff(_allArgs, [:xlims, :ylims, :xticks, :yticks])
|
||||
# supportedArgs(::QwtPackage) = setdiff(_allArgs, [:xlims, :ylims, :xticks, :yticks])
|
||||
supportedArgs(::QwtPackage) = [
|
||||
:annotation,
|
||||
:args,
|
||||
:axis,
|
||||
:background_color,
|
||||
:color,
|
||||
:fillto,
|
||||
:foreground_color,
|
||||
:group,
|
||||
:heatmap_c,
|
||||
:kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
:linestyle,
|
||||
:linetype,
|
||||
:marker,
|
||||
:markercolor,
|
||||
:markersize,
|
||||
:n,
|
||||
:nbins,
|
||||
:nc,
|
||||
:nr,
|
||||
:pos,
|
||||
:reg,
|
||||
# :ribbon,
|
||||
:show,
|
||||
:size,
|
||||
:title,
|
||||
:width,
|
||||
:windowtitle,
|
||||
:x,
|
||||
:xlabel,
|
||||
# :xlims,
|
||||
# :xticks,
|
||||
:y,
|
||||
:ylabel,
|
||||
# :ylims,
|
||||
:yrightlabel,
|
||||
# :yticks,
|
||||
]
|
||||
supportedTypes(::QwtPackage) = [:none, :line, :path, :steppre, :steppost, :sticks, :scatter, :heatmap, :hexbin, :hist, :bar]
|
||||
supportedMarkers(::QwtPackage) = [:none, :auto, :rect, :ellipse, :diamond, :utriangle, :dtriangle, :cross, :xcross, :star1, :star2, :hexagon]
|
||||
|
||||
|
||||
@ -10,7 +10,48 @@ export [pkgname]
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
supportedArgs(::[PkgName]Package) = _allArgs
|
||||
# supportedArgs(::[PkgName]Package) = _allArgs
|
||||
supportedArgs(::[PkgName]Package) = [
|
||||
:annotation,
|
||||
:args,
|
||||
:axis,
|
||||
:background_color,
|
||||
:color,
|
||||
:fillto,
|
||||
:foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
:kwargs,
|
||||
:label,
|
||||
:layout,
|
||||
:legend,
|
||||
:linestyle,
|
||||
:linetype,
|
||||
:marker,
|
||||
:markercolor,
|
||||
:markersize,
|
||||
:n,
|
||||
:nbins,
|
||||
:nc,
|
||||
:nr,
|
||||
# :pos,
|
||||
:reg,
|
||||
# :ribbon,
|
||||
:show,
|
||||
:size,
|
||||
:title,
|
||||
:width,
|
||||
:windowtitle,
|
||||
:x,
|
||||
:xlabel,
|
||||
:xlims,
|
||||
:xticks,
|
||||
:y,
|
||||
:ylabel,
|
||||
:ylims,
|
||||
# :yrightlabel,
|
||||
:yticks,
|
||||
]
|
||||
supportedAxes(::[PkgName]Package) = _allAxes
|
||||
supportedTypes(::[PkgName]Package) = _allTypes
|
||||
supportedStyles(::[PkgName]Package) = _allStyles
|
||||
|
||||
@ -8,7 +8,48 @@ unicodeplots() = backend(:unicodeplots)
|
||||
|
||||
# -------------------------------
|
||||
|
||||
supportedArgs(::UnicodePlotsPackage) = setdiff(_allArgs, [:reg, :heatmap_c, :fillto, :pos, :xlims, :ylims, :xticks, :yticks])
|
||||
# supportedArgs(::UnicodePlotsPackage) = setdiff(_allArgs, [:reg, :heatmap_c, :fillto, :pos, :xlims, :ylims, :xticks, :yticks])
|
||||
supportedArgs(::UnicodePlotsPackage) = [
|
||||
# :annotation,
|
||||
# :args,
|
||||
# :axis,
|
||||
# :background_color,
|
||||
# :color,
|
||||
# :fillto,
|
||||
# :foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
# :kwargs,
|
||||
:label,
|
||||
# :layout,
|
||||
:legend,
|
||||
:linestyle,
|
||||
:linetype,
|
||||
:marker,
|
||||
# :markercolor,
|
||||
# :markersize,
|
||||
# :n,
|
||||
:nbins,
|
||||
# :nc,
|
||||
# :nr,
|
||||
# :pos,
|
||||
# :reg,
|
||||
# :ribbon,
|
||||
:show,
|
||||
:size,
|
||||
:title,
|
||||
:width,
|
||||
:windowtitle,
|
||||
:x,
|
||||
:xlabel,
|
||||
# :xlims,
|
||||
# :xticks,
|
||||
:y,
|
||||
:ylabel,
|
||||
# :ylims,
|
||||
# :yrightlabel,
|
||||
# :yticks,
|
||||
]
|
||||
supportedAxes(::UnicodePlotsPackage) = [:auto, :left]
|
||||
supportedTypes(::UnicodePlotsPackage) = [:none, :line, :path, :steppost, :sticks, :scatter, :heatmap, :hexbin, :hist, :bar]
|
||||
supportedStyles(::UnicodePlotsPackage) = [:auto, :solid]
|
||||
|
||||
@ -30,7 +30,48 @@ const winston_marker = Dict(:none=>".",
|
||||
)
|
||||
|
||||
|
||||
supportedArgs(::WinstonPackage) = setdiff(_allArgs, [:heatmap_c, :fillto, :pos, :markercolor, :background_color, :xlims, :ylims, :xticks, :yticks])
|
||||
# supportedArgs(::WinstonPackage) = setdiff(_allArgs, [:heatmap_c, :fillto, :pos, :markercolor, :background_color, :xlims, :ylims, :xticks, :yticks])
|
||||
supportedArgs(::WinstonPackage) = [
|
||||
:annotation,
|
||||
# :args,
|
||||
# :axis,
|
||||
# :background_color,
|
||||
:color,
|
||||
:fillto,
|
||||
# :foreground_color,
|
||||
:group,
|
||||
# :heatmap_c,
|
||||
# :kwargs,
|
||||
:label,
|
||||
# :layout,
|
||||
:legend,
|
||||
:linestyle,
|
||||
:linetype,
|
||||
:marker,
|
||||
:markercolor,
|
||||
:markersize,
|
||||
# :n,
|
||||
:nbins,
|
||||
# :nc,
|
||||
# :nr,
|
||||
# :pos,
|
||||
:reg,
|
||||
# :ribbon,
|
||||
:show,
|
||||
:size,
|
||||
:title,
|
||||
:width,
|
||||
:windowtitle,
|
||||
:x,
|
||||
:xlabel,
|
||||
# :xlims,
|
||||
# :xticks,
|
||||
:y,
|
||||
:ylabel,
|
||||
# :ylims,
|
||||
# :yrightlabel,
|
||||
# :yticks,
|
||||
]
|
||||
supportedAxes(::WinstonPackage) = [:auto, :left]
|
||||
supportedTypes(::WinstonPackage) = [:none, :line, :path, :sticks, :scatter, :hist, :bar]
|
||||
supportedStyles(::WinstonPackage) = intersect(_allStyles, collect(keys(winston_linestyle)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user