How to set the plot in matlab to a specific size?

前端 未结 4 781
小蘑菇
小蘑菇 2020-12-01 13:46

Generally, I wish to plot a rather complex x-y plot (lots of overlapping curves) to an A3 format so:

A4 210x297  
A3 = A4*2 = 420 x 297  
... - 10mm each sid         


        
4条回答
  •  攒了一身酷
    2020-12-01 13:56

    If you want a custom shape (e.g. for a long, thin plot or for a square plot to include in another file), set both the PaperSize and PaperPosition options.

    set(gcf, 'PaperSize', [30 10], 'PaperPosition', [0 0 30 10])
    print -pdf filename
    

提交回复
热议问题