mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-03 13:11:25 +08:00
Space comment and code in plot directive call
This commit is contained in:
@@ -119,7 +119,9 @@ We can also use 2D boolean masks for a 2D color image, as we did with
|
||||
the grayscale image above:
|
||||
|
||||
.. plot::
|
||||
|
||||
Using a 2D mask on a 2D color image
|
||||
|
||||
>>> reddish = cat[:, :, 0] > 160
|
||||
>>> cat[reddish] = [0, 255, 0]
|
||||
>>> plt.imshow(cat)
|
||||
|
||||
Reference in New Issue
Block a user