Colorbar with histogram next to it

20 ビュー (過去 30 日間)
Christian Krogh
Christian Krogh 2022 年 11 月 24 日
コメント済み: Christian Krogh 2022 年 11 月 29 日
In a commercial program, I am using, surface measurements are visualized as an overlaid contour plot. And here comes the nice part: A histogram can be added next to the colorbar as seen in the attached image.
Now, I was wondering if adding histogram information to the colorbar can be done in MATLAB?
(The program is the digital image correlation system ARAMIS by GOM for those interested...)

採用された回答

millercommamatt
millercommamatt 2022 年 11 月 28 日
編集済み: millercommamatt 2022 年 11 月 28 日
You can do this in Matlab. However, there's nothing like this built in, so you're going to have the handle all the placements of the different plot axes required for this kind of plot yourself. The steps required are similar what is used in the various functions on the file exchange that handle plots with an arbitrary number of y-axes.
In a nutshell, you would do the histogram calculation, plot that histogram as a line (using plot) in its own axes object, and then position the axes and manipulate all the labels to get it to look how you would like it to.
  1 件のコメント
Christian Krogh
Christian Krogh 2022 年 11 月 29 日
Thanks. I suspected it would be something like this.

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

その他の回答 (0 件)

カテゴリ

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