Skip to content

Commit

Permalink
working on args
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreloff committed Nov 6, 2015
1 parent 6236ace commit b0991a0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/args.jl
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ function processLineArg(d::Dict, arg)
arg.color == nothing || (d[:fillcolor] = arg.color == :auto ? :auto : colorscheme(arg.color))
arg.alpha == nothing || (d[:fillalpha] = arg.alpha)

# linewidth
elseif trueOrAllTrue(a -> typeof(a) <: Integer, arg)
d[:linewidth] = arg

# linealpha
elseif trueOrAllTrue(a -> typeof(a) <: Real && a >= 0 && a <= 1, arg)
elseif trueOrAllTrue(a -> typeof(a) <: Real && a > 0 && a < 1, arg)
d[:linealpha] = arg

# linewidth
elseif trueOrAllTrue(a -> typeof(a) <: Real, arg)
d[:linewidth] = arg

# color
elseif !handleColors!(d, arg, :linecolor)
warn("Skipped line arg $arg.")
Expand Down Expand Up @@ -463,14 +463,14 @@ function processMarkerArg(d::Dict, arg)
arg.color == nothing || (d[:markercolor] = arg.color == :auto ? :auto : colorscheme(arg.color))
arg.alpha == nothing || (d[:markeralpha] = arg.alpha)

# markersize
elseif trueOrAllTrue(a -> typeof(a) <: Integer, arg)
d[:markersize] = arg

# linealpha
elseif trueOrAllTrue(a -> typeof(a) <: Real && a >= 0 && a <= 1, arg)
elseif trueOrAllTrue(a -> typeof(a) <: Real && a > 0 && a < 1, arg)
d[:markeralpha] = arg

# markersize
elseif trueOrAllTrue(a -> typeof(a) <: Real, arg)
d[:markersize] = arg

# markercolor
elseif !handleColors!(d, arg, :markercolor)
warn("Skipped marker arg $arg.")
Expand Down

0 comments on commit b0991a0

Please sign in to comment.