Background value of scatter plot

9 ビュー (過去 30 日間)
YongHyun
YongHyun 2016 年 7 月 17 日
コメント済み: John BG 2016 年 7 月 18 日
In this plot, the bottom of colorbar is white to present as white color in background of scatter plot. Colors of scatter plot mean the point density. In this situation, I want to change the bottom of colorbar as blue (bottom of colormap 'jet') without changes of the background color (I mean white color maintaining.). Also, colorbar has to start from a zero. Thank you in advance.
  1 件のコメント
John BG
John BG 2016 年 7 月 18 日
it's easier to help if you make the code available. Please attach the lines that plot this graph. Awaiting answer

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2016 年 7 月 17 日
The colorbar shows the colormap that is applied to the data. Since you changed the jet colormap to white so that your 0 data will be white, it will show up as white in the colorbar also. I don't think that playing around with caxis() will help. You could make up your own image and then show that instead of the colorbar if you want. Use repmat() and ind2rgb() to make up a colored ramp, then use imshow() to display it in an axes, then use the position property of the axes to place it beside your main image.
Or you can just make up an image instead of a scatterplot and display that, which is probably easier.

カテゴリ

Help Center および File ExchangePurple についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by