fixed linetype aliases; for qwt as well
This commit is contained in:
parent
bc13b81351
commit
3739c2881b
@ -114,7 +114,7 @@ _plotDefaults[:xlabel] = ""
|
|||||||
_plotDefaults[:ylabel] = ""
|
_plotDefaults[:ylabel] = ""
|
||||||
_plotDefaults[:yrightlabel] = ""
|
_plotDefaults[:yrightlabel] = ""
|
||||||
_plotDefaults[:legend] = true
|
_plotDefaults[:legend] = true
|
||||||
_plotDefaults[:background_color] = colorant"white"
|
_plotDefaults[:background_color] = RGB(0.1,0.1,0.1) # colorant"white"
|
||||||
_plotDefaults[:xticks] = true
|
_plotDefaults[:xticks] = true
|
||||||
_plotDefaults[:yticks] = true
|
_plotDefaults[:yticks] = true
|
||||||
_plotDefaults[:size] = (800,600)
|
_plotDefaults[:size] = (800,600)
|
||||||
@ -298,6 +298,10 @@ function getSeriesArgs(pkg::PlottingPackage, initargs::Dict, kw, commandIndex::I
|
|||||||
d[k] = _seriesDefaults[k]
|
d[k] = _seriesDefaults[k]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if haskey(_typeAliases, d[:linetype])
|
||||||
|
d[:linetype] = _typeAliases[d[:linetype]]
|
||||||
|
end
|
||||||
|
|
||||||
aliasesAndAutopick(d, :axis, _axesAliases, supportedAxes(pkg), plotIndex)
|
aliasesAndAutopick(d, :axis, _axesAliases, supportedAxes(pkg), plotIndex)
|
||||||
aliasesAndAutopick(d, :linestyle, _styleAliases, supportedStyles(pkg), plotIndex)
|
aliasesAndAutopick(d, :linestyle, _styleAliases, supportedStyles(pkg), plotIndex)
|
||||||
|
|||||||
@ -16,9 +16,16 @@ const _qwtAliases = Dict(
|
|||||||
:path => :line,
|
:path => :line,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
function replaceLinetypeAlias(d)
|
||||||
|
if haskey(_qwtAliases, d[:linetype])
|
||||||
|
d[:linetype] = _qwtAliases[d[:linetype]]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function adjustQwtKeywords(iscreating::Bool; kw...)
|
function adjustQwtKeywords(iscreating::Bool; kw...)
|
||||||
d = Dict(kw)
|
d = Dict(kw)
|
||||||
replaceAliases!(d, _qwtAliases)
|
# replaceAliases!(d, _qwtAliases)
|
||||||
|
replaceLinetypeAlias(d)
|
||||||
# if !iscreating
|
# if !iscreating
|
||||||
# d[:heatmap_n] = d[:nbins]
|
# d[:heatmap_n] = d[:nbins]
|
||||||
# end
|
# end
|
||||||
@ -41,7 +48,8 @@ end
|
|||||||
|
|
||||||
function plot(pkg::QwtPackage; kw...)
|
function plot(pkg::QwtPackage; kw...)
|
||||||
d = Dict(kw)
|
d = Dict(kw)
|
||||||
replaceAliases!(d, _qwtAliases)
|
# replaceAliases!(d, _qwtAliases)
|
||||||
|
replaceLinetypeAlias(d)
|
||||||
# d = adjustQwtKeywords(true; kw...)
|
# d = adjustQwtKeywords(true; kw...)
|
||||||
o = Qwt.plot(zeros(0,0); d..., show=false)
|
o = Qwt.plot(zeros(0,0); d..., show=false)
|
||||||
plt = Plot(o, pkg, 0, d, Dict[])
|
plt = Plot(o, pkg, 0, d, Dict[])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user