Skip to content

Commit 3bf779a

Browse files
committed
FIx ReadMe
1 parent 5ce2e68 commit 3bf779a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# cmap_picker
22

3-
Pick a colormap from the colorbar in an image
3+
Pick a colormap from the colorbar in an image.
44

5-
Requires the Image Processing Toolbox!
5+
When you often want to compare your results with someone else's, it can be hard to reproduce a map or a plot with a colormap that you don't have in your setup. This tool allows you to create a colormap that matches that of any figure. You just have to accurately select where the colorbar is on the image/figure.
66

7-
## Usage
7+
Here's an example of extracting the colormap from an image with some of MatPlotLib's colormaps:
88

99
https://user-images.githubusercontent.com/4486578/162355888-9562e3ff-7cd8-4d4c-ba3c-0f1adeb351af.mov
1010

11+
Requires the Image Processing Toolbox!
12+
13+
## Usage
14+
1115
1. Find an image with a colorbar you want (e.g., take a screenshot)
1216

1317
2. Call `cmap = cmap_picker(impath)`

0 commit comments

Comments
 (0)