Where is the documentation kept for spyder (python IDE) to access?
As I am typing
import matplotlib.pyplot as plt
The documentation that you're seeing comes from the docstrings of the function you typed in. You can get the raw text with
plt.savefig.__doc__, or get it with a bit of formatting by using the builtin
help command from an interactive interpreter:
help(plt.savefig). Spyder applies some additional fancy formatting to the contents of its documentation window.
How detailed the documentation is will vary quite a bit from module to module. In the case of
matplotlib, it's quite detailed, probably because the maintainers have put the effort in to make it easy to use that package without a lot of programming experience.
As for your question about how you can view those docs outside of Spyder, I'd suggest looking online. I see on the
matplotlib homepage they have extensive documentation, including web pages with the same contents as the docs you were seeing (presumably generated from the same docstrings).