I made a graph with some text in it (like x, y axis labels, and scale values, are set to size 18). Then, included the graph in a layout. When the size of graph is changed in a layout, text size remains same despite of graph size change. Is it normal? Can I set it somehow to change the text size according to changes in the graph size?
If you specify an explicit size for graph text (e.g., axis label), Igor will use that size regardless of the size of the graph.
If you remove the explicit size, Igor will autosize the text based on the graph size.
In your case, you want autosizing, but the default Igor font sizes are too small for your taste. You can remove all explicit sizing and use the ModifyGraph operation with the gfRelSize keyword, like this:
ModifyGraph gfRelSize=5
I don't really understand the units of the gfRelSize parameter and the documentation is not clear. Try 4, 5, 6, .... Values in that range seem to give reasonable results.
If you remove the explicit size, Igor will autosize the text based on the graph size.
In your case, you want autosizing, but the default Igor font sizes are too small for your taste. You can remove all explicit sizing and use the ModifyGraph operation with the gfRelSize keyword, like this:
I don't really understand the units of the gfRelSize parameter and the documentation is not clear. Try 4, 5, 6, .... Values in that range seem to give reasonable results.
June 14, 2015 at 04:04 pm - Permalink
It work exactly the way I was looking for and saves lot of time.
June 17, 2015 at 02:03 am - Permalink