필터 지우기
필터 지우기

Array plot vertically flipped

조회 수: 1 (최근 30일)
ivan
ivan 2023년 1월 25일
답변: Smit 2023년 2월 7일
My graphic (six couples of vectors) is vertically flipped (like in figure). This happens only on online editor, anyone can fix this?

답변 (1개)

Smit
Smit 2023년 2월 7일
Hi,
I understand that MATLAB Online is showing your plot upside down and you want it to be in the correct orientation.
One way to resolve this is setting the figure’s “Renderer” property to “painters”. Example of this as follows
figure;
set(gcf, 'renderer', 'painters');
However, if that does not work, you can try changing the display of the axes object. Example of this could be
axes;
set(gca, 'YTickLabelRotation', angle);
set(gca, 'XTickLabelRotation', angle);
set(gca, 'XAxisLocation', 'bottom');
You can also explore properties like “Ydir” and “Xdir” of the axes object if the values on the axis are reversed.
For more information, you can refer the documentation page for axes properties.

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by