Saving a plot as png 224*224*3 image
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
I have generated a plot in Matlab as shown in figure.When i save it using 'saveas(gcf,'im1.png')' , it is saved as a 656*875*3 png image.I want to save it as 224*224*3 png image without the axis titles,labelling and colorbar.i.e.only the actual plot.Can anyone kindly guide on it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/522187/image.jpeg)
Thanks
댓글 수: 2
답변 (1개)
Rik
2021년 2월 17일
You can do three things:
- Don't create your image as a plot, but as an image.
- Crop the image down to the location of your axes object.
- Use export_fig.
댓글 수: 14
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!