v2.0.0
Loading...
Searching...
No Matches
graph.h File Reference

Abstract base widget providing title, axis labels and resize handling for the in-house 2-D plots. More...

#include "../disp_global.h"
#include <QWidget>
#include <QPen>
#include <Eigen/Core>
Include dependency graph for graph.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DISPLIB::Graph
 Common base widget providing title, axis labels and resize handling for DISPLIB's QPainter plots. More...

Namespaces

namespace  DISPLIB
 2-D display widgets and visualisation helpers (charts, topography, colour maps).

Detailed Description

Abstract base widget providing title, axis labels and resize handling for the in-house 2-D plots.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2018-2026 MNE-CPP Authors

Author
Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om; Juan GPC jgarc.nosp@m.iapr.nosp@m.ieto@.nosp@m.mgh..nosp@m.harva.nosp@m.rd.e.nosp@m.du; Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
0.1.0
Date
July 2018

Graph centralises the boilerplate shared by Plot, ImageSc and any other small QPainter-based plot widget in DISPLIB: storing the plot title and x/y axis label strings, performing the minimal resize bookkeeping that keeps tick spacing readable, and drawing the label band around the actual plot area. Concrete subclasses paint inside the content rectangle that Graph leaves free after the labels and title.

Definition in file graph.h.