How to treat a patch object as a single layer during export?

2 vues (au cours des 30 derniers jours)
Aboltabol
Aboltabol le 1 Juil 2023
Commenté : Aboltabol le 28 Sep 2023
I am using a custom script which returns a line as a patch object. I plan to use the image in a publication; so, will like to export the figure to PDF with the entire patch-object as a single layer/sub-layer, than each fragment having its own layer!

Réponses (1)

Satwik
Satwik le 5 Juil 2023
Hi, Aboltabol
I understand you want to plot figure from the above script and export it as a pdf but not able to the same.
You can use the code below to export the figure after plotting it. Just run the code in the console and it will make a pdf file of the plotted figure.
set(gcf,'Units','inches');
screenposition = get(gcf,'Position');
set(gcf,...
'PaperPosition',[0 0 screenposition(3:4)],...
'PaperSize',[screenposition(3:4)]);
print -dpdf -painters epsFig
Hope it helps!
  1 commentaire
Aboltabol
Aboltabol le 28 Sep 2023
Read what I wrote? "exporting to a single layer", etc.

Connectez-vous pour commenter.

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by