Skip to content
Prev Previous commit
Next Next commit
Coding guide pyplot update.
  • Loading branch information
pelson committed Jun 8, 2012
commit 7b1e8872b18ff2ccf3dc1989de42388cad09868f
13 changes: 12 additions & 1 deletion doc/devel/coding_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Writing examples
================

We have hundreds of examples in subdirectories of
file:`matplotlib/examples`, and these are automatically
:file:`matplotlib/examples`, and these are automatically
generated when the website is built to show up both in the `examples
<http://matplotlib.sourceforge.net/examples/index.html>`_ and `gallery
<http://matplotlib.sourceforge.net/gallery.html>`_ sections of the
Expand All @@ -349,6 +349,17 @@ object::
print 'datafile', datafile


Writing a new pyplot function
=============================

The :mod:`matplotlib.pyplot` module can be thought of as combination of some
manually written and some autogenerated functions. Modifications can be made
to pyplot where the function definition does not explicitly state otherwise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise than what?

and autogenerated functions can be modified by changing, and subsequently
runnning, the :file:`boilerplate.py` script which will re-generate the complete
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changes to boilerplate.py are required?

pyplot module inplace, keeping all of the manual content.


Testing
=======

Expand Down