How to scale a plot to fit a plot window without white end
조회 수: 20 (최근 30일)
이전 댓글 표시
Whenever I plot data, there is some white space left on the right end. Is there a command to scale the plot all over the plot box ? In this case make the x-Axis show the data from 0-260
x = 0:260; % Create Data
y = rand(size(x)); % Create Data
figure(1)
plot(x, y)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200576/image.jpeg)
I already tried axis([0 259 min(y) max(y)]); but this did not help
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!