Key-Value Pairs¶
The following table lists all the keys that can be used on the command line with GRPlot. They can also be put inside the
data file, preceded by a #. Some of these keys can be used for every plot type, while the use of others depends on
whether the data sets are two or three dimensional. There are also keys that only work in combination with a specific
plot type.
All parameters are separated by a space. Some parameters are more complex than others. These parameters represent
containers inside GRM. Container parameters follow a different syntax to normal parameters. The parameters inside the
container are enclosed by {}. If more than one parameter is given to the container, each key-value pair is enclosed
by {} and the parameters are separated by ,, with no whitespace characters.
Key |
Description |
|---|---|
|
This parameter determines whether the surface plot is calculated using the GR or GR3 functionalities. The value of this parameter must be 0 or 1, with GR3 being used by default. Restricted to surface. |
|
This parameter defines the model to be used for data reduction. If
If
Restricted to volume and marginal_heatmap. |
|
This parameter defines the color of all the bars in the plot. This parameter can have one of two values: an integer representing a color index, or three doubles representing the RGB value of the color. If this parameter is not set, the bars will be dark blue (index 989). Restricted to barplot and histogram. |
|
This parameter defines the width of all the bars within the plot. Depending on the specified width, the bars may overlap. This parameter’s value is a double number, with a default value of 0.8. Restricted to barplot. |
|
This parameter determines the number of classes used for binning. Restricted to polar_histogram. |
|
This parameter defines the boundaries of the bins. Restricted to polar_histogram. |
|
The width of all the bins is set by this parameter. Restricted to polar_histogram. |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
If this parameter is set, only positive radii will be displayed; otherwise, negative radii will be mirrored. Restricted to polar_line and polar_scatter. |
|
Same as |
|
This parameter defines the colormap to be used. The default is 44 (Viridis). |
|
Define which columns of the file should be included in the plot. The default is to include all columns. To draw all columns from A to B, use A:B. A is necessary even if you want to draw all the lines from B to the end. To select more than one specific column, use a comma as the separator, with no whitespace. |
|
This allows the same colour bar to be forced onto all plots that share the same type of coordinate system. Therefore, the maximum and minimum values of all matching types are calculated and used as the color bar limits. |
|
If a colormap is used, this parameter determines whether the outer shape is drawn. The value can be either 0 or 1. Restricted to polar_histogram. |
|
This parameter defines the color of all edges within the plot. It can have one of two values: an integer representing a color index, or three doubles representing the RGB value of the color. If this parameter is not set, the edges will be colored with index 1 (black). Restricted to barplot and histogram. |
|
This parameter defines the width of all edges within the plot. This parameter takes the form of a floating-point number, with a default value of 1.0. Restricted to barplot. |
|
This parameter allows the relative error to be displayed. The values for this parameter are key-value pairs with the following keys:
Note: if the error bars are to be displayed, the last two columns of the data are
used for the error. If the upward and downward errors are equal, use
|
|
This defines how error bars are displayed. They can be displayed as single error
lines (0) or as an error area (1). The appearance of the error area depends on the
|
|
Define the columns of the file that will represent the error data. Depending on the
status of the flag parameter |
|
This parameter determines whether error data is interpreted as |
|
This parameter defines whether the same values are used for up and down errors. If it is set to 1, only one error column is needed instead of two. |
|
This contains the data that should be displayed. If no file is specified, an error
message is displayed. If this parameter is the first argument, the |
|
This parameter ensures consistency between the plot types: contour, contourf, heatmap, imshow, marginal_heatmap, surface and wireframe. When set, the data is displayed in the same order by all these types, whereas the imshow plot would generally be flipped. The value can be either 0 or 1, and if not otherwise set, it is always 1. |
|
Same as marginal_heatmap_kind. |
|
If set to 1, ignore blank lines inside the data. |
|
This parameter defines the upper limits of all integrals. The syntax for this
parameter is: |
|
This parameter defines the lower limits of all integrals. The syntax for this
parameter is: |
|
Values greater than the isovalue will be considered outside the isosurface, and values less than the isovalue will be considered inside it. The value must be an integer or a double, with 0.5 being the default. Restricted to isosurface. |
|
This parameter can only be used on the command line to create a plot combining
multiple datasets or types (multi_series). It is similar to the |
|
This defines whether or not the aspect ratio of the initial picture is kept. This parameter can have a value of 0 or 1. |
|
This parameter only has an impact if |
|
This parameter determines which plot type is displayed. The possible options are: The default plot kind is |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
This parameter is primarily intended for the data header and is used to define the
labels for the data columns. It can be used in the following way:
|
|
When this parameter is set to 1, the first line above the data will be interpreted as legend entries. If this parameter is not set, grplot will only interpret non-number values as legend entries. |
|
This parameter determines the number of contour lines to be drawn. The default setting is 20. Restricted to contour, contourf and tricontour. |
|
This parameter specifies the string for colour, line type and marker type. Therefore, the symbols in the string are interpreted. This only works for 2D plots. |
|
Defines the location of the legend. Possible options are:
|
|
This parameter determines whether contour labels should be drawn. Any number greater than 0 specifies which lines will be labelled. Setting an offset of 1000 to this parameter will also color the lines. Restricted to contour and contourf. |
|
This parameter determines which part of the data is displayed in the side plots. The
possible options are |
|
This parameter defines the style of the visualized data points. The effect on the numbers is the same as for gr_setmarkertype. |
|
This parameter defines the number of bins representing a hexagonal cell in the plot. The default value is 40. Restricted to hexbin, histogram and polar_histogram. |
|
This parameter specifies the type of normalization applied to the polar_histogram. The possible values are:
|
|
This defines whether the aspect ratio of the data (x, y) is forced to be equal and
kept this way. Note that this parameter will not work if the |
|
This parameter defines the orientation of the displayed series. They can be drawn
either |
|
This parameter determines whether or not the r-axis is flipped. Restricted to polar_histogram. |
|
This parameter defines the upper and lower radius limits. It can be used as follows:
|
|
This parameter determines whether the r values are displayed in a logarithmic scale. Only works for polar plots. |
|
This parameter defines the resampling method to be used. The possible values are
Restricted to heatmap. |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
This parameter specifies the counter-clockwise rotation angle, in degrees, of the displayed data. This parameter must be set to an integer or double value. The default setting is no rotation. Restricted to isosurface. |
|
If this parameter is enabled, only the outlines of the bins are drawn. The value can be either 0 or 1. Restricted to polar_histogram. |
|
This parameter defines how the steps are calculated. The possible values are |
|
This parameter determines the display of data within a bar plot. There are three
options: |
|
This parameter determines whether the theta values are flipped. It can have a value of either 0 or 1. Restricted to polar_histogram. |
|
This parameter defines the upper and lower limits of the theta data. It can be used
as follows: |
|
This parameter defines the upper and lower limits of theta. It can be used as
follows: |
|
This parameter specifies the tilt of the camera in degrees. This parameter must be set to an integer or double value. The default setting is no tilt. Restricted to isosurface. |
|
This parameter defines the title of the displayed plot. |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
This parameter defines the type of transformation used for color mapping. This parameter must be an integer, with 1 being the default value. The effect of the numbers is the same as for gr_shadepoints and restricted to shade. |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
This parameter defines an axis at the specified position. The values of this key determine one or more series that will be plotted on that axis (multi_axes). |
|
When this parameter is set to 1, the first row and column of the data are interpreted as information about the x_range and y_range. |
|
This parameter defines the number of bins in the x direction. This parameter must be an integer; the default value is 100. Restricted to shade. |
|
This parameter defines the columns of the file that represent the x-data. This is useful when multiple lines are included in the plot and their y-values do not always correspond to the same x-points. Another use case would be non-linear x-values, which cannot be generated automatically by GRPlot. |
|
This parameter determines whether or not the x-axis is flipped. |
|
Determines whether a x-grid is shown. |
|
This parameter defines the x-axis label of the displayed plot. |
|
This parameter defines the upper and lower limits of the x-axis. It can be used as
follows: |
|
This parameter determines whether the x-values are displayed in a logarithmic scale. |
|
This parameter defines the lower and upper x-values. The data is then mapped onto these limits. |
|
This defines a special case of the data file. In this case, the first column
represents the x-axis, the second the y-axis, and the third and fourth columns the
error values. The parameter can only have the values 0 or 1; if it has the value 1,
it is not necessary to set the |
|
This defines a special case of the data file. In this case, the first column represents the x-axis, the second the y-axis, and the third the z-axis. The parameter can only have the values 0 or 1. |
|
This parameter defines the number of bins in the y direction. This parameter must be an integer; the default is 100. Restricted to shade. |
|
This parameter defines the columns of the file that represent the y-data. This
parameter is only useful when used alongside either the |
|
This parameter determines whether or not the y-axis is flipped. |
|
Determines whether a y-grid is shown. |
|
This parameter determines the y-axis label for the displayed plot. |
|
This parameter enables users to assign labels to specific bars, which can display the
value of the bar, for example. The syntax of this parameter is |
|
This parameter defines the upper and lower limits of the y-axis. It can be used as
follows: |
|
This parameter determines whether the y-values are displayed in a logarithmic scale. |
|
This parameter defines the lower and upper y-values. The data is scaled within these limits. |
|
Determines whether a z-grid is shown. |
|
This parameter defines the z-label of the displayed plot. |
|
This parameter defines the upper and lower z limits. It can be used as follows:
|
|
This parameter determines whether the z-values are displayed in a logarithmic scale. |
|
This parameter defines the lower and upper z-values. The data is scaled within these limits. |
Restricted parameters¶
The following additional options can be provided on the command line:
Option |
Description |
|---|---|
|
GRPlot also supports figures containing multiple plots
using the |
|
Another option for using GRPlot is via a sender-receiver
mechanism. To do this, start GRPlot with the parameter
|
|
This command can be used to change the initial size of the window at the beginning of the command line arguments. |
|
In most cases, the plots created from GRPlot support interactions. These interactions can be used manually or via test cases. Furthermore, these test cases enable the automatic testing of all GRPlot functionalities. The main purpose of these test cases is to verify whether any changes affect existing interactions. |
|
This command-line option opens the help window for GRPlot. Use the <plot_type> option to get extra information about a specific plot type. |