Skip to content

Commit a516548

Browse files
committed
Fix ReadMe
1 parent 409ee93 commit a516548

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ Requires the Image Processing Toolbox!
1818

1919
1. Find an image with a colorbar you want (e.g., take a screenshot)
2020

21-
2. Call `cmap = cmap_picker(impath)`
22-
This will open a figure window with your image in it.
21+
2. Call `cmap = cmap_picker(image_path)`
22+
This will open a figure window with your image displayed in it.
23+
(Don't forget to edit `image_path` to be your image's path!)
2324

24-
3. Draw a rectancgle with your mouse (click-and-drag)
25+
3. And draw a rectancgle with your mouse (click-and-drag)!
2526
A colormap will be built by averaging over the colorbar's "width"
2627
(depending on the orientation of your rectangle).
27-
A colorbar will also be added next to the figure to show you the colormap
28-
you just made.
28+
And a colorbar will be added to the figure to show you the colormap you just created.
2929

3030
## Example:
3131

@@ -35,6 +35,6 @@ Try this command and select whichever colorbar you want!
3535
cmap = cmap_picker('https://matplotlib.org/stable/_images/sphx_glr_colormaps_001_2_0x.png');
3636
```
3737

38-
and select the colormap of your choice, which will be saved in the variable `cmap` above. You can then save it or use it as you would anyother colormap!
38+
You can then save the variable `cmap` or use it once, as you would anyother colormap!
3939

4040
[![View cmap_picker on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://au.mathworks.com/matlabcentral/fileexchange/109635-cmap_picker)

0 commit comments

Comments
 (0)