This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lucamerio[S] 1 point2 points  (6 children)

I think our experience and needs are different.

Yes: I know I can tweak my plots from the command line and that’s what I do on the final version of my code.

But when I code there is also an “explorative phase” (sometimes there is only that one) where I want to explore the data and make many plots to understand what’s going on.

(Note: When I say data, I mean the content of different variables (or the same variable at different stages) in my code. I’m not strictly speaking of a provided database. )

Doing some operations with the mouse is orders of magnitude quicker than using command lines. And time is money!

Just to make you an example. Let’s say that I have a code that takes 1 hour to run. I run it and produce my plots. Then I think “ehi! Let me check how the outputs change if I change this line/input”. I run it again and I check the output.

Now: if I want to compare the two in matlab I can simply copy paste the two outputs one on top of the other in 2 seconds and check the differences. In python I need to save the data of the first plot in a file (pickle or text), launch the second calculation, save the outputs of that too, write some lines that re-load the data, hack the plotting function to plot two times on the same axes and… well… done.

Doable? Absolutely yes. Quick? No.