How to make a thermometer-style graph?

조회 수: 6 (최근 30일)
ZedRedLed
ZedRedLed 2018년 9월 21일
다시 열림: Walter Roberson 2018년 12월 22일
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일
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개)

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by