LabPlot/ThemesAndTemplates: Difference between revisions

From KDE UserBase Wiki
Line 13: Line 13:
The management of templates is done via the template bar at the bottom of the [[Special:myLanguage/LabPlot/Interface/PropertiesExplorer|Properties Explorer]] hosting the three buttons to save the current properties as a template, to load the properties from a list of saved templates and to save the current properties as the new default ones.
The management of templates is done via the template bar at the bottom of the [[Special:myLanguage/LabPlot/Interface/PropertiesExplorer|Properties Explorer]] hosting the three buttons to save the current properties as a template, to load the properties from a list of saved templates and to save the current properties as the new default ones.


== Plot Templates ==  
== Plot Templates ==
Contrary to the object templates described above that save and load the properties for one object type only, '''plot templates'''  do the same for the whole plot including all its children. This is helpful for example if a certain definition of a plot with multiple axes, curves, labels, etc. is frequently used. Once the desired plot definition is designed finally and saved as a plot template, a new plot of such a new "type" is created similar to how other basic and predefined plot types are created on the Worksheet.


== Themes ==  
== Themes ==  

Revision as of 16:37, 21 May 2023

LabPlot provides different tools to quickly apply settings on multiple objects:

  • Templates - save and re-use definitions of single objects like curve, axis, etc.
  • Plot Templates - save and re-use the complete definition of the plot including its all children
  • Themes - apply colors from a predefined set of color themes to a worksheet or a plot and to all their children

Templates

Templates allow to save the properties of objects on the worksheet like curves, axis, etc. and to quickly apply them on other objects.

A common use-case for the usage of templates is for example the situation where the appearance of a curve with a certain set of properties for the symbol type and size, line width, colors, etc. needs to be applied on other curves in the same or in other projects in a quick way. For this, the current settings are saved in a template and loaded for other objects of interest.

Similarly, the current properties of the object can be saved as the default properties ("default template") that will be automatically applied for every new object of this type.

The management of templates is done via the template bar at the bottom of the Properties Explorer hosting the three buttons to save the current properties as a template, to load the properties from a list of saved templates and to save the current properties as the new default ones.

Plot Templates

Contrary to the object templates described above that save and load the properties for one object type only, plot templates do the same for the whole plot including all its children. This is helpful for example if a certain definition of a plot with multiple axes, curves, labels, etc. is frequently used. Once the desired plot definition is designed finally and saved as a plot template, a new plot of such a new "type" is created similar to how other basic and predefined plot types are created on the Worksheet.

Themes

See the video on how to use themes in Labplot.