FLIPXYVIEW (v2.0, mar 2010)

版本 1.0.0.0 (2.0 KB) 作者: Jos (10584)
flips (mirror rotates) the horizontal and vertical plot axes
550.0 次下载
更新时间 2010/3/17

查看许可证

FLIPXYVIEW sets the view of the current 2D axes in such a way that the x and y axis interchange positions. The current horizontal axis will become the vertical axis, and vice versa.

FLIPXYVIEW (AX) rotates the axes specified by the handle AX.

Note that this function only changes the view and not the x and y values of the plotted points. Applying this function twice will undo the flip.

Example 1: See screenshot

Example 2: Create a errorbar plot, with horizontal error bars

y = 1:5 ; x = polyval([2 3 4],y) ;
xerr = 5*rand(size(x)) ; % Errors in X
subplot(2,2,3) ; errorbar(y,x,xerr,'bo') ;
xlabel('Y') ; ylabel('X') ; % !! note the names
flipxyview

引用格式

Jos (10584) (2025). FLIPXYVIEW (v2.0, mar 2010) (https://ww2.mathworks.cn/matlabcentral/fileexchange/26983-flipxyview-v2-0-mar-2010), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Axes Appearance 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0