Skip to content

Commit

Permalink
Merge d459eff into 07087c5
Browse files Browse the repository at this point in the history
  • Loading branch information
Vab-jain committed Mar 12, 2019
2 parents 07087c5 + d459eff commit 6105624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/masks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Here are what the different modes look like:
plt.title("mode='subpixels', subpixels=20", size=9)
plt.imshow(mask4.data, cmap=plt.cm.viridis,
interpolation='nearest', origin='lower')
plt.show()

As we've seen above, the :class:`~regions.Mask` objects have a ``data``
attribute that contains a Numpy array with the mask values. However, if you
Expand Down Expand Up @@ -116,6 +117,7 @@ boundary effects:
plt.figure(figsize=(4, 4))
plt.imshow(mask.to_image((10, 10)), cmap=plt.cm.viridis,
interpolation='nearest', origin='lower')
plt.show()

The :meth:`~regions.Mask.cutout` method can be used to create a cutout from
the input data over the mask bounding box, and the
Expand Down

0 comments on commit 6105624

Please sign in to comment.