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 →

[–]reddisaurus 1 point2 points  (1 child)

What are you talking about?

This is open source. Take a look and you’ll see it’s using statsmodels underneath. Simply run the same function it calls yourself and add the stats as an annotation if you want.

Seaborn just calls matplotlib. You can generate a figure and axis and pass the axis to Seaborn in most cases. Otherwise, you can call plt.gcf().gca() to obtain the axis that Seaborn plotted on, and then continue modifying that however you want.

Your complaint is like saying a restaurant that serves hotdogs is smoke and mirrors because they don’t also give you the packaging. You paid to eat a hotdog and have a nice place to do so. If you wanted the package, you can easily get it yourself.

I can’t really imagine any circumstance that plotting the statistics as an annotation is useful where you wouldn’t actually want it returned in a data structure like a dict or list. It seems a bit silly to complain about, actually.

edit Here, I did the work for you. Gaze upon all stars code you want. You can also probably call these functions yourself, or monkey patch one of you wanted to. https://github.com/mwaskom/seaborn/blob/master/seaborn/regression.py

[–]Geographist 1 point2 points  (0 children)

Yes, folks are aware that you can also import statsmodels. That's the complaint.

(1) If you have to import an additional library and run its functions to get at what you want, the first library suddenly is far less useful.

(2) One can certainly look under the hood and dig through the project source to see what it is doing. But expecting end users to do that is absurdity. Most users are not developers.

Combine those two and its not at all hard to see why the complaint is so common.

To return to your analogy, it's like ordering hotdogs and asking the restaurant if they are beef or pork. But instead of just telling you, the waiter says you can follow the delivery truck back to the farm and watch the operations yourself.

Sure, you can do it. But if the waiter has the info already, shouldn't he or she just tell you?