upside down plot in GUI

Hi! I am programming a GUI which draws a plot from the values that the user gives, and once I already have a plot drawn, when I change the inputs so that the program draws a new one I sometimes get a plot upside down, and it doesn't make any sense because I have not programmed any function to rotate my plot or something similar, Any idea? Thanks!

回答 (1 件)

Paulo Silva
Paulo Silva 2011 年 7 月 28 日

0 投票

You may have something like this
set(gca,'ydir','reverse')
on your code

2 件のコメント

Andrea Gil
Andrea Gil 2011 年 7 月 28 日
no, I didn't write that. it is really weird. I just have a plot, and pretend to rewrite it each time, and although the code to be followed is exactly the same, it is drawn upside down...
Walter Roberson
Walter Roberson 2011 年 7 月 28 日
We will need to see a code example.

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

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

質問済み:

2011 年 7 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by