Effacer les filtres
Effacer les filtres

Expand the figures?

4 vues (au cours des 30 derniers jours)
Abdullah Türk
Abdullah Türk le 25 Juil 2020
Commenté : dpb le 27 Juil 2020
Hi everybody,
I have a fig file and I want to export it as a png, tif or jpeg file. I know how to do this (File - Export Setup). But graphics do not fill the field completely. So when I want to use the file in the word it looks like the following:
I mean, I want to expand my graphics to blue dots as like following:
How can I do this in MATLAB? (The fig. file is attached.)
  5 commentaires
Abdullah Türk
Abdullah Türk le 26 Juil 2020
I tried
tiledlayout(3,3,'Padding','none','TileSpacing','none')
but it does not. But I do it manually from "Property Inspector" using "POSITION" as follows:
dpb
dpb le 27 Juil 2020
Yes, but you can do it programmatically -- altho you'll have to work out how much to move which image as the necessary room for the y-axis labels is quite a lot larger for some than others owing to the additional significant digits.
You can do things globally; the following changes all, albeit then they overlap some so you'll need to back off from this extreme...
hF=openfig('untitled.fig'); % get the figure handle -- you should already have or use gcf
hAx=findobj(hF,'type','Axes'); % and get all axes handles
set(hAx,{'Position'},get(hAx,'OuterPosition')) % set all to 'OuterPosition' limits -- no space
As noted, you'll just have to work out how far you can move each and spread them out; the leftmost and rightmost columns can end up with left|left+width at the above limits; the center column may just need to grow a little in width.
I didn't spearmint further...as said, the ones with five digits of precison on y-axis will have to either be narrower than the others or you'll have to replicate the appearance of the original by leaving more space to the left if the axes themselves are to be aligned.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Object Properties 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