Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update coding guide with suggestions from the PR.
  • Loading branch information
mdboom committed Nov 16, 2012
commit 4f75fff0bd8e7a1382d19a20b60d9b195589cdab
9 changes: 8 additions & 1 deletion doc/devel/coding_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Style
- You may want to consider installing automatic PEP8 checking in
your editor.

* No tabs (only space). No trailing whitespace.
* No tabs (only spaces). No trailing whitespace.

- Configuring your editor to remove these things upon saving will
save a lot of trouble.
Expand All @@ -49,11 +49,16 @@ Style
import matplotlib as mpl
from matplotlib import pyplot as plt
import matplotlib.cbook as cbook
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

import matplotlib.collections as mcol
import matplotlib.patches as mpatches

or whatever it is that is standard...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'll add these. I've never been a huge fan of that, but it's sometimes required, and of course is used a lot throughout the codebase. We can remove them here if we clean that style up globally later.

import matplotlib.collections as mcol
import matplotlib.patches as mpatches

* See below for additional points about
:ref:`keyword-argument-processing`, if code in your pull request
does that.

* Adding a new pyplot function involves generating code. See
:ref:`new-pyplot-function` for more information.

Documentation
-------------

Expand Down Expand Up @@ -236,6 +241,8 @@ example code you can load it into a file handle with::
import matplotlib.cbook as cbook
fh = cbook.get_sample_data('mydata.dat')

.. _new-pyplot-function:

Writing a new pyplot function
-----------------------------

Expand Down