how to resize x and y axis

前端 未结 2 436
自闭症患者
自闭症患者 2021-01-22 15:05

How can I resize x and y axis ?

What I want, n more specific;

3900  |
  .   |
  .   |
  .   |
  60  |
      |
  30  |
      |____________________________         


        
相关标签:
2条回答
  • 2021-01-22 15:22

    Another way:

    xlim([0 3600])
    ylim([0 3900])
    

    http://www.mathworks.com/help/techdoc/ref/xlim.html

    http://www.mathworks.com/help/techdoc/ref/ylim.html

    I think for the step size it's

    set(gca, 'XTick', [0:60:3600])
    set(gca, 'YTick', [0:30:3900])
    
    0 讨论(0)
  • 2021-01-22 15:32

    Check the documentation: http://www.mathworks.com/help/techdoc/ref/axis.html

    axis([xmin xmax ymin ymax])
    
    0 讨论(0)
提交回复
热议问题