Leônidas Araújo
leorusvellt@hotmail.com 2024

# Main Window

The Graphs main window is split into two areas: a sidebar on the left containing the item list and controls, and a canvas on the right where the figure is displayed.

# Sidebar

The sidebar contains everything related to managing items and interacting with the figure.

## Header buttons

At the top of the sidebar, we have the header with a button to add data, a button to open the figure settings, and a button with the primary menu. At the top, the Add button opens a menu with three options:

### Add Data from File…

Opens the import dialog to load a dataset from a file or database. See for details on the supported formats and import options.

### Add Equation…

Opens a dialog to add a new equation item, rendered continuously on the canvas.

### Generate Data…

Opens a dialog to generate a fixed dataset from an equation over a configurable x-range.

## Primary Menu

The primary menu in the top right provides access to some general options:

### New Project

Opens a new empty project in a new window.

### Save Project / Save Project As…

Saves the current project to a file, preserving all items, figure settings, and the full undo and view history.

### Open Project…

Opens a previously saved project file.

### Close Project

Closes the current project and returns to an empty state.

### Export Data…

Exports the current datasets to a file.

### Export Figure…

Exports the figure as an image.

### Style Editor

Opens the style editor window. See for details.

The item list shows all items currently in the project. Each item can be selected or deselected by clicking the checkbox next to it. Only selected items are affected by data operations. Clicking the item name opens the edit panel for that item. Items can be deleted, and their order can be changed by dragging.

## Figure Settings

The figure settings button in the top right of the sidebar opens the Figure Settings panel, where the figure title, axis labels, axis limits, axis scales, legend visibility and position, and the active style can all be configured. Axis labels and limits are only shown for the axes that are currently in use. The current figure settings can be saved as the default for new projects using the Set as Default button at the bottom of the panel.

## Canvas Modes

Below the item list, three canvas interaction modes are available:

### Pan

Click and drag on the canvas to pan the view. This is the default mode.

### Zoom

Click and drag to draw a rectangle on the canvas to zoom into that area.

### Select

Click and drag to highlight a region of the data. Data operations will only affect the data within the highlighted area when this mode is active.

## Operations

Below the canvas mode buttons, the operations panel provides quick access to all data manipulation actions. These act on all selected items. See for a full description of each operation.

# Canvas

The canvas shows the plot containing all active items. Clicking once on the label, limits or opens the Figure Settings, focused on the clicked item, allowing for quick adjustments.

On the top left we have the undo and redo button. On the top right of the canvas there's the view buttons. The back-arrow moves you to the previous view after having changed the limits while the forward-arrow moves you to the next view after having clicked the back-arrow. Finally the Optimize Limits button will try and adjust the limits automatically to fit all visible items in the canvas. For equations, only the y-range is taken into account, as the x-data spans an infinite range.