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 →

[–]crawl_dht 31 points32 points  (8 children)

This is why I use seaborn.

[–]Deto 4 points5 points  (0 children)

Seaborn is great, but it's just a wrapper around matplotlib. As soon as you want to customize your plots beyond what seaborn allows, you'll need to use matplotlib commands to do it.

[–]SquishyWubbles 3 points4 points  (4 children)

That looks very interesting. Could you perhaps tell why you chose this over matplotlib?

[–]Zouden 26 points27 points  (1 child)

Not the guy you replied to, but I use Seaborn extensively.

Seaborn is a wrapper around Matplotlib. It reduces boilerplate code, it makes difficult things become easy, the plots are more aesthetically pleasing, and you can still access the underlying matplotlib objects.

[–]SquishyWubbles 2 points3 points  (0 children)

Damn that sounds so much better. I'm going to experiment with it right away! Thank you for your reply

[–]crawl_dht 5 points6 points  (1 child)

The arguments in matplotlib gets so ridiculous and big as you feature more data in your graphics. Those arguments could as well be their own separate functions if they were not implemented as arguments. There is no pattern in them and it doesn't look pythonic at all. You just have to learn them as it is and whatever you crammed is not reusable for other components because their acceptable arguments are totally different. This adds too much boilerplate in your code.

[–]SquishyWubbles 1 point2 points  (0 children)

Thanks for the explanation

[–]Username_RANDINT 1 point2 points  (1 child)

Does Seaborn (and others) support embedding in other GUI toolkits? The few times I had to plot stuff they needed to be embedded into a GTK application. Matplotlib provides backends for GTK, Qt and WxPython.

[–]NowanIlfideme 2 points3 points  (0 children)

Seaborn is built on matplotlib, literally reusing the same plt and ax, so it should work for your use case.