D******t 发帖数: 49 | 1 怎么把gray scale 变成从white to black? (colorbar也是从百到黑)
有没有这个选项?
多谢了!! | r****y 发帖数: 1437 | 2 sure
you define you own color table, let it be
[1 1 1]
monotonically changes to [0 0 0]
e.g cmap = repmat([0:1/63:1]', 1, 3);
colormap(cmap);
If you use colorbar before this set of commands,
replot your colorbar to reflect the changes as well.
【在 D******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 怎么把gray scale 变成从white to black? (colorbar也是从百到黑) : 有没有这个选项? : 多谢了!!
| j**u 发帖数: 6059 | 3 这个我也第一次知道,多谢!
【在 r****y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : sure : you define you own color table, let it be : [1 1 1] : monotonically changes to [0 0 0] : : e.g cmap = repmat([0:1/63:1]', 1, 3); : colormap(cmap); : : If you use colorbar before this set of commands, : replot your colorbar to reflect the changes as well.
| j**u 发帖数: 6059 | 4 cmap = repmat([1:-1/63:0]', 1, 3);
就把颜色该成从白到黑了。
【在 r****y 的大作中提到】![](/moin_static193/solenoid/img/up.png) : sure : you define you own color table, let it be : [1 1 1] : monotonically changes to [0 0 0] : : e.g cmap = repmat([0:1/63:1]', 1, 3); : colormap(cmap); : : If you use colorbar before this set of commands, : replot your colorbar to reflect the changes as well.
| r****y 发帖数: 1437 | 5 such detail, just experiment it. hehe.
【在 j**u 的大作中提到】![](/moin_static193/solenoid/img/up.png) : cmap = repmat([1:-1/63:0]', 1, 3); : 就把颜色该成从白到黑了。
|
|