-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add kwarg legend
and change kwarg label
#15
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know there was a \label
directive that you could attach to plots. The current naming of the keyword is thus unfortunate indeed.
What I don't like about this is that it will silently change peoples plots without any deprecation. I'm not sure what the best deprecation strategy is, but I think there needs to be some heads up to users.
@@ -13,12 +14,14 @@ end | |||
Base.push!(plot::Plot, element) = (push!(plot.elements, element); plot) | |||
Base.append!(plot::Plot, element) = (append!(plot.elements, element); plot) | |||
|
|||
function Plot(elements::AbstractVector, args::Vararg{PGFOption}; incremental = true, label = nothing) | |||
Plot(elements, dictify(args), label, incremental, false) | |||
function Plot(elements::AbstractVector, args::Vararg{PGFOption}; incremental = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line breaking seems odd to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take advantage of Julia's flexibility with newlines. I hard-wrap at 80 characters. It's definitely a bad line break. Feel free to change it.
Yeah, I have an idea to fix everything. If someone provides both the |
Filed an issue regarding this, already.