Plot without axis but with background
显示 更早的评论
Hi. I have a plot without an axis and I want to add a background around my plot. I want to do something like this plot in a picture
t=0:0.1:10;
y=sin(t);
plot(t,y);
xlim([-1,11]);
ylim([-1.1,1.1]);
axis off
set(gcf,'InvertHardCopy','off','Color','white');
saveas(gcf,'plot_test.jpg','jpeg')

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 2-D and 3-D Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
