How to make a thermometer-style graph?

5 vues (au cours des 30 derniers jours)
ZedRedLed
ZedRedLed le 21 Sep 2018
Rouvert : Walter Roberson le 22 Déc 2018
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 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 21 Sep 2018
Can you show in an image (use paint) what exactly you want?
ZedRedLed
ZedRedLed le 21 Sep 2018
Roughly something like this. The difficulty is that I would like to customize the horizontal lines, like changing the strength etc.

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 21 Sep 2018
Modifié(e) : KALYAN ACHARJYA le 21 Sep 2018
Have you tried
bar(y,'stacked')
  2 commentaires
ZedRedLed
ZedRedLed le 21 Sep 2018
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 le 21 Sep 2018
Modifié(e) : ZedRedLed le 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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by