Skip to content

Commit

Permalink
DOC: add and improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed Apr 19, 2017
1 parent c326cdb commit 68ccb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polytope/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ def bounding_box(self):

def plot(self, ax=None, color=None,
hatch=None, alpha=1.0):
"""Plot a `polytope` on axes `ax`."""
# TODO optional arg for text label
if self.dim != 2:
raise Exception("Cannot plot region of dimension larger than 2")
Expand Down Expand Up @@ -2100,7 +2101,7 @@ def _get_patch(poly1, **kwargs):


def grid_region(polyreg, res=None):
"""Grid within polytope or region.
"""Return bounding box grid points within `polyreg`.
@type polyreg: L{Polytope} or L{Region}
@param res: resolution of grid
Expand Down

0 comments on commit 68ccb40

Please sign in to comment.