axis()的用法


  • axis([xmin xmax ymin ymax]): [ ]中分別給出x軸和y軸的最大值、最小值。( sets scaling for the x- and y-axes  on the current plot.)
  • ​axis([xmin xmax ymin ymax zmin zmax]):[ ]中分別給出x軸、y軸、z軸的最大值、最小值。(sets the scaling for the x-, y- and z-axes on the current 3-D plot)
  • axis equal 或axis(‘equal’) :表示x軸和y軸的單位長度相同。(sets the aspect ratio so that equal tick mark  increments on the x-,y- and z-axis are equal in size)
  • ​axis square 或 axis(‘square’): 顯示的坐標系呈正方形。(makes the current axis box square in size.)
  • axis off 或 axis(‘off’) :關閉所有坐標軸線、刻度標記和標簽。(turns off all axis labeling, tick marks and background)
  • axis auto:​基於x、y和z的最大值和最小值來自動設置坐標軸的范圍。用戶可以只限定某一個坐標軸,如:axis 'auto x'用來限定x軸的范圍;axis 'auto yz'用來限定y軸和z軸的范圍。(returns the axis scaling to its default, automatic mode where,for each dimension, 'nice' limits are chosen based on the extents of all line, surface, patch, and image children.)
  • axis manual:將坐標軸的范圍鎖定為當前范圍。如果打開了hold on命令,則后續的圖形都使用同樣的坐標范圍。該函數設置XLimMode、YLimMode和ZLimMode屬性為manual值。(freezes the scaling at the current limits, so that if HOLD is turned on, subsequent plots will use the same limits.)
  • axis tight:設置坐標軸的范圍為數據的范圍。(sets the axis limits to the range of the data.)
  • axis fill:設置坐標軸的范圍以及PlotBoxAspectRatio屬性。坐標軸將填充整個矩形局域。只有PlotBoxAspectRatioMode或DataAspectRatioMode屬性值為 manual時,該方法才起作用。(sets the axis limits and PlotBoxAspectRatio so that the axis fills the position rectangle.)
  • a xis ij:將坐標系的原點設置到左上角。i軸為垂直軸,正方向為從上到下。j軸為水平軸,正方向為從左到右。(puts MATLAB into its "matrix" axes mode.  The coordinate system origin is at the upper left corner.  The i axis is vertical and is numbered from top to bottom.  The j axis is horizontal and is numbered from left to right.)
  • axis xy:在默認的笛卡爾坐標系中繪制圖形,坐標系的原點在左下角。x軸為水平坐標軸,正方向為從左到右;y軸為垂直坐標軸,正方向為從下到上。(puts MATLAB into its default "Cartesian" axes mode.  The  coordinate system origin is at the lower left corner.  The x axis is horizontal and is numbered from left to right.  The y axis is vertical and is numbered from bottom to top.)
  • axis on:關閉所有坐標軸線、刻度標記和標簽。( turns axis labeling, tick marks and background back on)
  • axis image:​功能與axis equal相同。只不過坐標軸的邊框緊貼在數據的四軸。多用來顯示圖片。(is the same as AXIS EQUAL except that the plot  box fits tightly around the data.)
  • axis normal:​自動調節坐標軸的縱橫比,從而是圖形隨窗口的形狀而改變.(restores the current axis box to full size and removes any restrictions on the scaling of the units.This undoes the effects of AXIS SQUARE and AXIS EQUAL)
  • v=axis:返回一個行向量,向量中的元素包含x、y和z軸的刻度因子。v具有四個或六個元素,這取決於當前坐標軸是二維的還是三維的。返回值是當前坐標軸的XLim、YLim和ZLim屬性的值。(returns a row vector containing the scaling for the current plot.  If the current view is 2-D, V has four components; if it is 3-D, V has six components.)
  • axis Vis3D:鎖定坐標軸的縱橫比​.(freezes aspect ratio properties to enable rotation of 3-D objects and overrides stretch-to-fill.)
  •  
     

  • 免責聲明!

    本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



     
    粵ICP備18138465號   © 2018-2025 CODEPRJ.COM