Merge pull request #1069 from daschw/seriestype-error

Seriestype error (fix #1068)
This commit is contained in:
Michael Krabbe Borregaard 2017-09-04 11:50:17 +02:00 committed by GitHub
commit fb04b3d78b

View File

@ -1280,6 +1280,8 @@ end
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
has_black_border_for_default(st) = error("The seriestype attribute only accepts Symbols, you passed the $(typeof(st)) $st.")
has_black_border_for_default(st::Function) = error("The seriestype attribute only accepts Symbols, you passed the function $st.")
function has_black_border_for_default(st::Symbol) function has_black_border_for_default(st::Symbol)
like_histogram(st) || st in (:hexbin, :bar, :shape) like_histogram(st) || st in (:hexbin, :bar, :shape)
end end