Colormap: ColorScale options other than linear and log (power norm, etc)

13 ビュー (過去 30 日間)
Jack M
Jack M 2020 年 1 月 28 日
編集済み: Jack M 2020 年 1 月 29 日
Hello,
I have a countourf plot with a logscale colormap using the function "set(gca,'colorscale','log')". I would like to try other options for the scale of the colormap (i.e. ln, log2, etc). I would be interested in an option similar to is provided by matplotlib: https://matplotlib.org/tutorials/colors/colormapnorms.html#sphx-glr-tutorials-colors-colormapnorms-py
How could I do this?
Thanks

回答 (1 件)

Spencer Chen
Spencer Chen 2020 年 1 月 28 日
I do not think there is native Matlab feature to do that. You can convert your data into your desired log function and plot it on a linear scale instead.
contourf(log2(x))
Blessings,
Spencer

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by