How can I change the linewidth on some, not all, grid lines in heatmap images?

6 ビュー (過去 30 日間)
HW
HW 2017 年 9 月 7 日
回答済み: Afiq Azaibi 2017 年 9 月 14 日
I am using the heatmap function to display correlation coefficients for a number of variables. I would like to make some lines in the resulting grid of the figure have a heavier linewidth, but not all of them. Any ideas on how to do this? I have looked into the properties that are available when you use h = heatmap... , but nothing seems relevant (GridVisible is the closest).
Thank you.

回答 (1 件)

Afiq Azaibi
Afiq Azaibi 2017 年 9 月 14 日
There is currently no programmatic way to change the linewidth of a HeatMap. As a workaround to this, you can interactively add a line to the figure by navigating to the MenuBar of the figure and under "Insert" have an option to select "Line". From there, you can alter the properties of the line to fit your specifications by double clicking it to bring up the property inspector.

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by