How to make a thermometer-style graph?

Hi,
I would like to make a graph that basically is one single vertical bar. I would like to input temperature values and then display them as horizontal lines on said bar. Finally, I would like to give different intervalls on the bar custom colors.
How can I do this? I can't seem to find a solution in the documentation
Thanks in advance!

2 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 9 月 21 日
Can you show in an image (use paint) what exactly you want?
ZedRedLed
ZedRedLed 2018 年 9 月 21 日
Roughly something like this. The difficulty is that I would like to customize the horizontal lines, like changing the strength etc.

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

 採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 9 月 21 日
編集済み: KALYAN ACHARJYA 2018 年 9 月 21 日

1 投票

Have you tried
bar(y,'stacked')

2 件のコメント

ZedRedLed
ZedRedLed 2018 年 9 月 21 日
This is close, but I would like to edit individual bar lines and individual segment colors if possible, maybe even have a legend, so more like treating the bar lines as regular plot lines
ZedRedLed
ZedRedLed 2018 年 9 月 21 日
編集済み: ZedRedLed 2018 年 9 月 21 日
I would like to for example enter a temperature, and then enter a temperature deviation and have the original temperature drawn as a solid line while the deviation is visible as a dashed line

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

製品

リリース

R2015b

質問済み:

2018 年 9 月 21 日

再開済み:

2018 年 12 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by