linewidth default

This commit is contained in:
Thomas Breloff 2016-05-04 13:38:08 -04:00
parent 59c1e24371
commit 548c59719b
2 changed files with 8 additions and 3 deletions

View File

@ -642,9 +642,9 @@ function preprocessArgs!(d::KW)
processLineArg(d, arg)
end
# delete!(d, :line)
if get(d, :linewidth, :auto) == :auto
d[:linewidth] = (get(d, :linetype, :path) in (:surface,:heatmap) ? 0 : 1)
end
# if get(d, :linewidth, :auto) == :auto
# d[:linewidth] = (get(d, :linetype, :path) in (:surface,:heatmap) ? 0 : 1)
# end
# handle marker args... default to ellipse if shape not set
anymarker = false

View File

@ -189,6 +189,11 @@ function _add_series(plt::Plot, d::KW, ::Void, args...;
delete!(di, k)
end
# get a good default linewidth... 0 for surface and heatmaps
if get(di, :linewidth, :auto) == :auto
di[:linewidth] = (get(di, :linetype, :path) in (:surface,:heatmap,:image) ? 0 : 1)
end
# merge in plotarg_overrides
plotarg_overrides = pop!(di, :plotarg_overrides, nothing)
if plotarg_overrides != nothing