How to save the plot in bitmap format with resolution 1200dpi?
2 views (last 30 days)
Show older comments
I want to save the plot in the bitmap with resolution 1200dpi in MATLab. I tried but not succeeded. The program is below:
plot(x,y6);set(gca,'FontSize',12,'FontWeight','bold','LineWidth',2)
xlim([1 372])
ylabel('Temperature (deg.Cel.)','FontWeight','bold','FontSize',12)
xlabel('Months','FontWeight','bold','FontSize',12)
hold on
m1=plot(xjan,y6,'*','MarkerSize', 6,'MarkerFaceColor','black','MarkerEdgeColor', 'black');set(gca,'FontSize',12,'FontWeight','bold','LineWidth',2)
xlim([1 372])
ylabel('Temperature (deg.Cel.)','FontWeight','bold','FontSize',12)
xlabel('Months','FontWeight','bold','FontSize',12)
hold on
m2=plot(xjun,y6,'ro','MarkerSize', 4,'MarkerFaceColor','red','MarkerEdgeColor', 'red');set(gca,'FontSize',12,'FontWeight','bold','LineWidth',2)
xlim([1 372])
ylabel('Temperature (deg.Cel.)','FontWeight','bold','FontSize',12)
xlabel('Months','FontWeight','bold','FontSize',12)% hold on
leg = legend([m1 m2],{'May','August'});
title('500hPa','FontWeight','bold','FontSize',14)
%saveas(gcf,'-dpng','-r300','test.png')
print (gcf, '-dbmp','-r1200', 'myfile.bmp')
Kindly, guide me regarding this.
Thanks & Regards
0 Comments
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!