Editor & Interactions

Viewer

The standard GRPlot plot view enables various interactions, such as panning and box zooming. To do this, either scroll or right-click and drag a box. You can also move the coordinate system window around.

zoom move

Hovering over a data point will show the x- and y-values, as well as the label or z-data, if applicable. In addition, if you press the Shift key, all y-data and labels/z-data at that specific x-value will be shown inside the tooltip.

tooltip

The view can be reset using the r key or by double-clicking.

Toolbar

The toolbar is part of the GRPlot widget. This allows you to quickly change certain aspects of the plot.

toolbar

Icon

Description

kind

This icon allows you to transform series. For example, line plots can be converted into scatter plots with one click.

algorithm

This allows you to change the marginal heatmap algorithm.

log

You can display the axes logarithmically with one click.

flip

Allows flipping every axis.

lim

The limits of each individual axis can be changed.

orientation

This allows the x- and y-axis values to be swapped.

aspect_ratio

It allows you to either keep the aspect ratio or force a quadratic aspect ratio for certain types of plot.

location

You can change the position of the color bar and legend.

use_gr3

This icon is only useful for swapping the underlying algorithm in surface plots.

polar_with_pan

This is only available for polar plots to enable panning and zooming.

colormap

The color map used can be changed.

text_color_ind

Change the text color.

disable_grid

This is used to enable or disable the grid in two-dimensional plots.

multiplot

It is used to apply quick changes to multiplots, such as the use of consecutive colour bars.

Editor view

If the editor view is enabled, multiple new options become available. Firstly, normal interactions with the plot, such as panning, are disabled, and every mouse movement highlights the elements displayed under the cursor. This way, the user knows what they could change at that specific location, and a click selects that element. The attributes of that element can then be changed in the newly opened dock widget and applied to the plot. Any red attribute in the list is valid for the selected element, but has not yet been set. Hover over any attribute to get a tooltip with a short explanation of that attribute. To disable the editor completely use GRDISPLAY=view.

select_series edit_element

Any changes made can be undone or redone using the options in the editor menu. This is restricted to the last five changes.

Another feature of the editor view is the ability to add text or overlay elements (pictures) at the mouse position by right-clicking. Newly inserted text or overlay elements can be dragged and resized by their corners. More complex additions can only be made with the advanced editor, which requires a greater understanding of the tree structure. This involves selecting the correct parent element and setting all the necessary attributes.

right_click

Elements can also be moved within the editor view. To do this, press the control key (command on Mac) before clicking on an element. If the advanced editor is not enabled, only important elements can be moved. If more than one element is selected for movement, an element intersection will be shown, allowing similar attributes to be changed on all selected elements. You can also resize an element if the cursor is at the edge of it.

move_element element_intersection

To remove an existing element, select it and then press Backspace or Delete. Press Escape to deselect everything.

All of these options are also available for the tree view, which can be opened via the Editor menu. Clicking on an element in the tree view opens the corresponding element edit window, while the checkboxes can be used to move elements.

tree_view