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 Comments

Can you show in an image (use paint) what exactly you want?
Roughly something like this. The difficulty is that I would like to customize the horizontal lines, like changing the strength etc.

Sign in to comment.

 Accepted Answer

Have you tried
bar(y,'stacked')

2 Comments

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 on 21 Sep 2018
Edited: ZedRedLed on 21 Sep 2018
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

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Products

Release

R2015b

Asked:

on 21 Sep 2018

Reopened:

on 22 Dec 2018

Community Treasure Hunt

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

Start Hunting!