OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
Quick HelpExpand Quick Help
GraphingExpand Graphing

1.36 FAQ-152 How to keep the font size not change when layer gets resized?

Last Update: 8/22/2017


By default, when resizing layers or merging multiple graphs, all text labels including axis titles, tick labels, legend and other label objects wil resize with it. Select the text label, the correct font size shows on Format toolbar, but on left corner of Status bar, you will see size(actual) gives different values. This is because the default Scale Elements setting on Display tab of Layer level in Plot Details dialog is Scale with Layer Frame and all these text labels are attached to layer. You can change it to Fixed Factor and set the factor to 1 so that what you set is what you see.


To fix it for existing graphs
  1. Select Tools: Theme Organizer menu to open Theme Organizer dialog.
  2. On Graph tab, select the Layer No Element Scaling theme and set target graph(s) from Apply Theme to drop-down list.
  3. Click Apply Now button to apply the theme to the graph(s).
To fix it for all new graphs created in the future
  1. In Theme Organizer dialog, go to Graph tab.
  2. Right click the Layer No Element Scaling theme and choose Set as System Theme.

Then when creating new graphs, such system theme will be applied to newly created graphs automatically. Note: by default, system theme only applies to 2D graphs.

Running layer command

Run the following LabTalk script in Script Window.

//Set scaling factor as on the Display tab for all layers in the current window
doc -e LW //loop through all layers in current graph
{
    layer.factor=1; //set fixed factor 1
}
Only set some text labels with fixed Font

Maybe you want tick labels, etc. still resize with layer but only set some text label e.g. axis title, or some text labels to be fixed Font size.

  1. Right click on each text object (except axis label and axis title) and select Properties… from the context menu
  2. Attach the text object to Page on Programming tab of Text Object dialog. Then this object will not resize with layer.

Keywords:font size, resize, fixed factor, theme organizer

 

© OriginLab Corporation. All rights reserved.