Skip to content

Linear and nonlinear scales

One of the most common traits found on gauges are their characteristic scales, with tickmarks and matching numeric values.

In most design apps these scales have to be created by entering each tickmark value one by one. Even with convenient radial copy tools, this can still take some time, specially when trying different options.

GaugeMaster Pro takes advantage of some key patterns that characterize gauges and provides parametric tools to quickly generate tickmarks and value sequences with very little effort. These type of tools are mostly for linear gauge scales.

For more complex designs where tickmarks or values may not have a linear correlation between them, the app has a powerful nonlinear option. With this option you can import a CSV spreadsheet file to easily generate tickmarks and values at precise arbitrary locations across an arc.

Linear scales are usually made up of a segment that gets repeated for a number of major steps/divisions on the arc. For example, a pressure gauge from 0 to 100 bar may have a linear segment with one major tickmark and nine minor tickmarks, repeated every 10 bar.

Segment edit button

Within every segment we can specify any combination of tickmarks by adding sub-segments that define the following parameters for the tickmarks they represent:

  • count: how many tickmarks to draw for the sub-segment
  • length: the tickmarks length within the width of the arc, from 0 to 1, 1 being the full arc width
  • width: the thickness of the tickmarks on this sub-segment

On the previous 1 to 100 bar example, we would have two sub-segments, the one defining the major tickmark, and the one defining the 9 minor tickmarks as follows: Segment editing

When editing any of the sub-segments, its tickmarks will show in red on the segment preview at the top of the sub-segment list, and on the gauge on the canvas. As you modify the sub-segment values you will see them updating in real-time so you can quickly define your needed tickmarks pattern.

Nonlinear scales allow full freedom to design your scales. They are built from CSV files you generate on your favorite spreadsheet app. The CSV file will contain the location of the nonlinear element (tic mark or text), and any other key details required to render it, as specified below.

The format of each line on this CSV file is as follows:

Tickmarks Arc

  • location: location within the arc, being 0 the start angle and 1 the end angle.
  • length: length of the tickmark within the width of the arc, being 1 the full width of the arc.
  • width: the thickness of the tickmark.

Text Arc

  • location: location within the arc, being 0 the start angle and 1 the end angle.
  • text: the text for each location.

Here are some sample nonlinear tickmarks arc spreadsheet values:

locationlengthwidth
013
0.0530.52
0.15813
0.39413
0.65513
0.8270.52
113

And here is the resulting nonlinear tickmarks arc CSV file content:

location,length,width
0,1,3
0.053,0.5,2
0.158,1,3
0.394,1,3
0.655,1,3
0.827,0.5,2
1,1,1

Here are some sample nonlinear text arc spreadsheet values:

locationtext
00
0.162
0.395
0.668
110

And here is the resulting nonlinear text arc CSV file content:

location,text
0,0
0.16,2
0.39,5
0.66,8
1,10

And here is the resulting gauge with the tickmarks and text arcs:

Nonlinear gauge sample

Import nonlinear CSV file button

Use the Import nonlinear CSV file button to load the CSV file for your nonlinear arc.

Export nonlinear CSV file button

You can also use the Export nonlinear CSV button to export the CSV file of any existing nonlinear arc. This could be useful to restore the CSV file of an old gauge design or to tweak some of the values of nonlinear arc.

Since nonlinear arcs are created with individual elements at precise locations determined by you, you edit these details individually with the nonlinear editor.

Edit nonlinear tick matk items Use the tickmarks preview button to access the nonlinear tickmarks arc editor list.

Edit nonlinear text items Use the Edit Nonlinear Text button to access the nonlinear text arc editor list.

This will provide a list with each individual tickmark or text entry, where you can reposition or adjust its other settings.

Copy to nonlinear button

Sometimes a gauge may contain arcs that are mostly linear in design, but that due to some specific requirements would need to be handled as nonlinear.

In some of those cases it may be possible to initially design the arc as linear, and then use the Copy to Nonlinear button to complete the editing in nonlinear mode.