Inverse Y axis with negative values

Hello, I would like to plot 3 negative values with the plot in the vertical direction and not inverted. I figured out the command to reverse the plot set(gca,'Ydir','reverse') but the plot is misleading since the bar is shown higher for smaller values (-1.8) hence I would like to have the negative values to start and end with 0.
Could you please tell me how to do this. Thank you!

댓글 수: 3

dpb
dpb 2016년 8월 3일
Attach the figure with the IMAGE (colored) button, not the paperclip so we can see it w/o having to download it...pasting the data/code to generate an example is always useful, too, then folks can 'spearmint w/o having to write their own demo, just keep it short.
Image Analyst
Image Analyst 2016년 8월 3일
편집: Image Analyst 2016년 8월 3일
Can you attach a screenshot so we can see it here without saving a .fig to disk and then opening it up in MATLAB? You can type alt-PrintScreen, then go to snag.gy and paste it in, then use the green and brown frame icon to paste in the URL snaggy gives you.
dpb
dpb 2016년 8월 3일
Or, SaveAs from file menu on figure, "Save As' a *.jpg and then paste that image. I keep an 'untitled.jpg' in my working directory simply as a repository for such exercise...
Your choice between IA's way and the above...they're just two ways to same end.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Annotations에 대해 자세히 알아보기

태그

질문:

2016년 8월 3일

댓글:

dpb
2016년 8월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by