Effacer les filtres
Effacer les filtres

Remove the margin of the plot

91 vues (au cours des 30 derniers jours)
Saugat Shrestha
Saugat Shrestha le 28 Juin 2020
When extracting the plot, I want the plot to be tight to the boundaries. I am unable to do it.
Can you please help me.
Thanks in advance
fig = gcf
fig.PaperUnits = 'inches';
fig.PaperPosition = [0 0 12 6];
%fig.Units = 'normalized';
%fig.Position=[0.13 0.11 0.77 0.34];
%fig.ActivePositionProperty = 'position';
fig.InvertHardcopy = 'off';
ylim([yli(1,1) yli(1,2)])%([MI MX+(MX-MI)*0.4])
xlim([10^-3 10^0])
saveas(gcf,'1.Across_semilog.png')
closereq

Réponses (1)

Gaurav Aggarwal
Gaurav Aggarwal le 28 Juin 2020
Hi Saugat,
It worked for me, hope it helps you too. Thanks.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by