Plot axis limits
조회 수: 3 (최근 30일)
이전 댓글 표시
I am wasting my life trying to get the axes to go from a to b (ONLY!).
For example, the data file goes from 290 to 420 (variable) in steps of .02. I plot all rows and one column. There are 6500 rows. But Matlab insists on making the axes go from 0 to 7000 leaving whitespace at the end. If I add a line command within the x axis range, sometimes it creates two lines instead of one. Why is plotting so flakey?
댓글 수: 0
답변 (2개)
Honglei Chen
2011년 11월 10일
You can give following command a try
axis tight
If you want more control, you can use axis command to control the limits
doc axis
HTH
Jonathan
2011년 11월 10일
You can set the axis limits using ylim([290 420]) or xlim([290 420]).
댓글 수: 3
참고 항목
카테고리
Help Center 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!