ModifyGraph: change margins without scaling axis
BMangum
Right now when I use modifygraph to change the margin size, the window remains the smae and the axis is what gets scaled.
I want to increase the window size while keeping the plot area the same, but with larger margins.
I am using 6.21 (It seems like I didn't have this trouble with 6.20 - or do I have a poor memory?)
Any advice?
Initially the margins and plot area are in auto mode meaning that Igor picks a margin size big enough to fit the tick mark labels and the rest of the window area is devoted to the plot area.
If you hardball the margins, any room left over goes to the plot area.
If you hardball the margins and the plot area size, then the window area will adjust to accommodate. I think this is what you want to do.
Here is an example:
Display jack // window area = margins + plot area
// Hardball the plot area. The window expands to accommodate the plot area and margins.
ModifyGraph width=360
// Hardball the margins. The window expands to accommodate the plot area and margins.
ModifyGraph margin(left)=72; ModifyGraph margin(right)=72 // Hardball the margins
For details execute this:
DisplayHelpTopic "Overall Graph Properties"
I don't think anything has changed in this regard.
February 1, 2011 at 07:07 pm - Permalink