old vs new page setup function in Layout
erikku
Tue, 06/26/2018 - 07:25 pm
hello,
I generally make my graphs all the same size, setting the margins and absolute window sizes. Partly for consistency, partly to choose a size that's easily readable on screen. In IGOR 6, I would put graphs in a layout and use the File/Page Setup to scale the % size of the layout in order to accomodate my graph sizes. This was nice and fast--change one number, all my graphs fit: don't have to resize the graphs individually (eg if I used auto-sizing, I'd often find my graph formatting would change uncontrollably).
In IGOR 7 (and perhaps now 8, but haven't tried it yet), I see a dialog pop up about how the page setup only impacts printing. And indeed, changing the % leaves the page size (or rather, the relative size of the graphs) unchanged. So, I guess I have to change my approach! Is there a recommended way to vary graph size to fit however many graphs I want into a layout, that preserves the formatting I may have used in designing the graph?
(apologies if this isn't clear. In short, I make graphs, want to put a bunch in layout, and not have to change the size of every individual graph....)
Thanks!
Make/O jack=sin(x), fred=cos(x)
Display jack; Display fred
NewLayout/W=(332,145,838,763)
AppendLayoutObject/F=1/T=0/R=(36,36,433,246) Graph Graph0
AppendLayoutObject/F=1/T=0/R=(38,264,435,474) Graph Graph1
// Set page size to fit graphs
LayoutPageAction size(-1)=(468, 504), margins(-1)=(18, 18, 18, 18)
// Magnify layout so it is easier to read on screen
ModifyLayout mag=0.75
End
June 27, 2018 at 06:57 am - Permalink
June 27, 2018 at 09:02 am - Permalink