Making graphs pretty
SteveHatcher
I like to use Igor for presentation format graphs as it makes them very pretty and I can export them to PDF. One thing I would like to be able to do is rescale where the axis are in relation to the labels.
What I mean is lets say I have the X axis and I rename its label. I can then click and drag the label around, or drag the axis closer to the laber but without really knowing how far its going. So when I finish my labels, and drag the axis closer it looks different each time. Is there a power which allows me to control all of these things using code? For instance I can make a graph, label the axis, then move the axis so its a certain distance from the label, and move where the label is in relation to the axis eg centered, left, right etc. Then maybe resize the whole graph. Just so if I do multiple graphs they will all have excactly the same measurements?
Thanks
If you are not familiar with a graph recreation macro, execute:
You can save or update a graph recreation macro using Windows->Control->Window Control.
Create a graph recreation macro. Duplicate the macro by copy/paste and give it a new name. Manually tweak the graph and then update the original graph recreation macro. Compare the updated macro to the copy of the original one to see what has changed. This is best done with a simple graph.
For commands related to axes, execute:
I believe the keywords you might want to use are axOffset, lblLatPos, lblPosMode.
You can create a graph style macro to capture settings from one graph and apply them to other graphs. For details, execute:
April 29, 2012 at 09:36 pm - Permalink