Hello,

On 8 April 2016 at 15:07, Tom Breloff <[email protected]> wrote:

>
> It modifies a plot, and so follows Julia convention.  Anything else is
> likely to induce confusion.
>

I do see your point of view, and of course it's your library. I also don't
want to diss your work. I think the convention is about modifying inputs,
rather than modifying "something". Functions that modify files don't get
exclamation marks. On the other hand, Gtk.jl is a blend, with functions
like push!() and delete!() but also destroy(), and signal_connect(). The
authors just picked what made sense to them.



>  In PyPlot, all commands edit the current plot unless you explicitly call
>> `figure()` to create a new plot. You can also use clf() to clear the
>> current plot. I think this is something that PyPlot / Matplotlib get right.
>>
>
> We can agree to disagree on this point.  It's clunky and error-prone.
>


Agree to disagree. This is just an opinion.



> Quick tip: you can choose to reuse PyPlot windows by default if you want:
>
> # these will effectively call clf() before each command
>>
> using Plots
>
> pyplot(reuse = true)
>> plot(rand(10))
>> plot(rand(10))
>> plot(rand(10))
>
>
Thanks.

Cheers,
Daniel.

Reply via email to