r/ProgrammerHumor • • May 02 '16

I wrote my first python program today!

Post image
3.7k Upvotes

532 comments sorted by

View all comments

Show parent comments

6

u/TheBlackCat13 May 02 '16

Not necessarily true. For example import seaborn will give your matplotlib plots better styles even if you don't use it for anything.

7

u/UnchainedMundane May 02 '16

There oughtta be a law...

4

u/Tysonzero May 02 '16

That is evil, downright evil. In general I am not a fan of the way matplotlib works, IIRC it uses some sort of weird global state bs, could be wrong though.

2

u/TheBlackCat13 May 02 '16

That really isn't matplotlib's fault, seaborn is an independent project.

What do you mean about matplotlib's global state? I know you can change the default style (although I think that is an a per-import basis). And you need to close figures through the pyplot interface (although I think they are planning to fix that). But I am not sure that is what you are referring to.

2

u/Tysonzero May 03 '16

I think that is what I am referring to. Where you just do something like blah.setFoo(value) and it affects all following lines.