Style settings

The Style setting is the top entry in the command list. The icon looks like an artist palette.

Main font & color

At the top you select the Main font style, the default pen color, line thickness, fill for markers and marker size. By default, drawing commands will refer to these settings but that can be overwritten.

Note: DataGraph also includes support for LaTeX fonts.


The ‘pen’ variable sets the line width in pixels.

The pen variable is used to set the line width in the drawing commands. Thus, when you change the pen variable, you change the line thickness across the entire graph in one place.

Since pen is a variable, you can also use it to create expressions. For example, you can set the axis line to be pen*2 to make it twice as wide as the pen.


The ‘point‘ variable is the size of the points in pixels.

This point is similar to the pen in that it is a variable. Rather than change the point size in each command, change the size in one place.


You can define different font styles in the graph.

Some are used by the axis settings, such as title and axis. The drawing commands that draw text also refer to these fonts by default. How to use them and overwrite style and color is explained in the next chapter. By default, they all refer back to the Main font defined in the top line, so if you change that font everything in your graph gets updated in a consistent manner.


Below the fonts, you set the color theme.

You can use the built in colors or you can overwrite the colors freely. The colors that are selected in the style settings are then accessible to the drawing commands. The drawing commands can pick those colors from a menu rather than having to pick every color separately. The intent is to make it easy to limit the number of colors you use and change the color of several objects at once. By defining them here you can quickly change the color scheme of the entire graph.

Line Styles

You can create four custom Line styles.

Box Style

Change how lines are drawn around the axis and customize the axis line.

Axis Line & Position

Customize the color and thickness of the axis lines and tick mark lines.

Set the drawing order of the axis box using the Axis position setting. By default, the axis lines are drawn ‘Above’ all other objects on the graph, but you can change this setting to draw the axis lines ‘Below’ all other objects.


Set the grid style and the drawing style for the tick marks.

NOTE: The position of tick marks is controlled by the Axis settings or by using the Extra Axis drawing command.

Tick marks

By default the tick marks are outside the graph to avoid overlapping the data. If you prefer to have the tick marks inside the graph you can edit that here.

You can also change the tick mark Size, remove Minor tick marks, or Mirror the tick marks to both sides of the graph.

Language & Numbers

Customize the language and localization settings.

The date tick marks use names such as Jan, Feb, and date formatters allow you to use week day names as well. The default option is to use the settings in the system, but if you want to share a file with someone in a different country or use a different language for other reasons, you can select that here.

Here you can also specify whether or not numbers should be formatted with a decimal or a period.

Style set

You can save the settings by using the style set and quickly switch between styles. For example, you can set up a grayscale vs color theme or thick presentation theme vs thin scheme for printing.

You can copy a style and paste it into a style setting in a different graph. You do that by selecting the style setting entry (thick blue border) and select Copy. Then go to the graph you want to change and select Paste. You don’t have to select anything.

Related Articles