working on unicodeplots

This commit is contained in:
Thomas Breloff 2015-09-12 00:57:58 -04:00
parent 9e1058ec0a
commit 3e7e7e9ac0
2 changed files with 1 additions and 10 deletions

View File

@ -96,8 +96,6 @@ function getPlotKeywordArgs(kw, idx::Int, n::Int)
# fill in d with either 1) plural value, 2) value, 3) default # fill in d with either 1) plural value, 2) value, 3) default
for k in keys(PLOT_DEFAULTS) for k in keys(PLOT_DEFAULTS)
plural = makeplural(k) plural = makeplural(k)
# if haskey(d, plural)
# d[k] = d[plural][idx]
if !haskey(d, k) if !haskey(d, k)
if n == 0 || k != :size if n == 0 || k != :size
d[k] = haskey(d, plural) ? d[plural][idx] : PLOT_DEFAULTS[k] d[k] = haskey(d, plural) ? d[plural][idx] : PLOT_DEFAULTS[k]

View File

@ -66,12 +66,6 @@ function addUnicodeSeries!(o, d::Dict, addlegend::Bool)
elseif lt == :stepinverted elseif lt == :stepinverted
func = UnicodePlots.stairs! func = UnicodePlots.stairs!
stepstyle = :pre stepstyle = :pre
# elseif lt in (:sticks, :bar)
# d = barHack(; d...)
# func = UnicodePlots.lineplot!
# elseif lt == :hist
# d = histogramHack(; d...)
# func = UnicodePlots.lineplot!
else else
error("Linestyle $lt not supported by UnicodePlots") error("Linestyle $lt not supported by UnicodePlots")
end end
@ -98,8 +92,7 @@ function plot(pkg::UnicodePlotsPackage; kw...)
if !haskey(plt.initargs, :size) || plt.initargs[:size] == PLOT_DEFAULTS[:size] if !haskey(plt.initargs, :size) || plt.initargs[:size] == PLOT_DEFAULTS[:size]
plt.initargs[:size] = (60,20) plt.initargs[:size] = (60,20)
end end
# w,h = plt.initargs[:size]
# plt.initargs[:size] = (min(200,w), min(200,h))
plt plt
end end