-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
doc: add plots to docstrings and reference to in what's new #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I hope my brainstroming above did not confuse too much. |
The statsmodels docs you linked to are API docs, which are very useful and On Fri, Jun 1, 2012 at 3:41 AM, timmie <
Chang She |
could you add the community tag to this? |
Can this doc issue be closed? No activity since 2012. |
Closing this as completed. |
Let's add sample plots to this.
Continuing discussion on doc, I suggest to take a similar approach like statsmodels:
http://statsmodels.sourceforge.net/devel/generated/statsmodels.graphics.functional.rainbowplot.html#statsmodels.graphics.functional.rainbowplot
The plot in the docs is generated from the docstring
the Sphinx source:
http://statsmodels.sourceforge.net/devel/_sources/generated/statsmodels.graphics.functional.rainbowplot.txt
the docstring:
https://github.com/statsmodels/statsmodels/blob/master/statsmodels/graphics/functional.py#L208
So
could be moved to a docstrin in cases where it makes sense.
Can we not reuse the test code that may already be in the code base?
https://github.com/pydata/pandas/blob/master/pandas/tests/test_graphics.py#L39
The major problem is that the test writing set-up in pandas is highly modular while docstrings à la statsmodels are more verbose.
But, taking a second look at the docstring above, the tests could actually be used to produce doc plots:
instead
use
In file
file_with_plot_examples.py
you may for the mean time import the test functions.On the other hand, such plot files:
https://github.com/statsmodels/statsmodels/blob/master/docs/source/plots/graphics_functional_rainbowplot.py
coudl be easily contributed by pandas users for more cases that core devs are probably thinging of currently.
The text was updated successfully, but these errors were encountered: