Qwt User's Guide 6.3.0
|
A 2-D plotting widget. More...
#include <qwt_plot.h>
Public Types | |
enum | LegendPosition { LeftLegend , RightLegend , BottomLegend , TopLegend } |
Public Slots | |
virtual void | replot () |
Redraw the plot. | |
void | autoRefresh () |
Replots the plot if autoReplot() is true . | |
Signals | |
void | itemAttached (QwtPlotItem *plotItem, bool on) |
void | legendDataChanged (const QVariant &itemInfo, const QList< QwtLegendData > &data) |
Public Member Functions | |
QwtPlot (QWidget *=NULL) | |
Constructor. | |
QwtPlot (const QwtText &title, QWidget *=NULL) | |
Constructor. | |
virtual | ~QwtPlot () |
Destructor. | |
void | setAutoReplot (bool=true) |
Set or reset the autoReplot option. | |
bool | autoReplot () const |
void | setPlotLayout (QwtPlotLayout *) |
Assign a new plot layout. | |
QwtPlotLayout * | plotLayout () |
const QwtPlotLayout * | plotLayout () const |
void | setTitle (const QString &) |
void | setTitle (const QwtText &) |
QwtText | title () const |
QwtTextLabel * | titleLabel () |
const QwtTextLabel * | titleLabel () const |
void | setFooter (const QString &) |
void | setFooter (const QwtText &) |
QwtText | footer () const |
QwtTextLabel * | footerLabel () |
const QwtTextLabel * | footerLabel () const |
void | setCanvas (QWidget *) |
Set the drawing canvas of the plot widget. | |
QWidget * | canvas () |
const QWidget * | canvas () const |
void | setCanvasBackground (const QBrush &) |
Change the background of the plotting area. | |
QBrush | canvasBackground () const |
virtual QwtScaleMap | canvasMap (QwtAxisId) const |
double | invTransform (QwtAxisId, double pos) const |
double | transform (QwtAxisId, double value) const |
Transform a value into a coordinate in the plotting region. | |
bool | isAxisValid (QwtAxisId) const |
void | setAxisVisible (QwtAxisId, bool on=true) |
Hide or show a specified axis. | |
bool | isAxisVisible (QwtAxisId) const |
QwtScaleEngine * | axisScaleEngine (QwtAxisId) |
const QwtScaleEngine * | axisScaleEngine (QwtAxisId) const |
void | setAxisScaleEngine (QwtAxisId, QwtScaleEngine *) |
void | setAxisAutoScale (QwtAxisId, bool on=true) |
Enable autoscaling for a specified axis. | |
bool | axisAutoScale (QwtAxisId) const |
void | setAxisFont (QwtAxisId, const QFont &) |
Change the font of an axis. | |
QFont | axisFont (QwtAxisId) const |
void | setAxisScale (QwtAxisId, double min, double max, double stepSize=0) |
Disable autoscaling and specify a fixed scale for a selected axis. | |
void | setAxisScaleDiv (QwtAxisId, const QwtScaleDiv &) |
Disable autoscaling and specify a fixed scale for a selected axis. | |
void | setAxisScaleDraw (QwtAxisId, QwtScaleDraw *) |
Set a scale draw. | |
double | axisStepSize (QwtAxisId) const |
Return the step size parameter that has been set in setAxisScale. | |
QwtInterval | axisInterval (QwtAxisId) const |
Return the current interval of the specified axis. | |
const QwtScaleDiv & | axisScaleDiv (QwtAxisId) const |
Return the scale division of a specified axis. | |
const QwtScaleDraw * | axisScaleDraw (QwtAxisId) const |
Return the scale draw of a specified axis. | |
QwtScaleDraw * | axisScaleDraw (QwtAxisId) |
Return the scale draw of a specified axis. | |
const QwtScaleWidget * | axisWidget (QwtAxisId) const |
QwtScaleWidget * | axisWidget (QwtAxisId) |
void | setAxisLabelAlignment (QwtAxisId, Qt::Alignment) |
void | setAxisLabelRotation (QwtAxisId, double rotation) |
void | setAxisTitle (QwtAxisId, const QString &) |
Change the title of a specified axis. | |
void | setAxisTitle (QwtAxisId, const QwtText &) |
Change the title of a specified axis. | |
QwtText | axisTitle (QwtAxisId) const |
void | setAxisMaxMinor (QwtAxisId, int maxMinor) |
int | axisMaxMinor (QwtAxisId) const |
void | setAxisMaxMajor (QwtAxisId, int maxMajor) |
int | axisMaxMajor (QwtAxisId) const |
void | insertLegend (QwtAbstractLegend *, LegendPosition=QwtPlot::RightLegend, double ratio=-1.0) |
Insert a legend. | |
QwtAbstractLegend * | legend () |
const QwtAbstractLegend * | legend () const |
void | updateLegend () |
void | updateLegend (const QwtPlotItem *) |
virtual QSize | sizeHint () const override |
virtual QSize | minimumSizeHint () const override |
Return a minimum size hint. | |
virtual void | updateLayout () |
Adjust plot content to its current size. | |
virtual void | drawCanvas (QPainter *) |
void | updateAxes () |
Rebuild the axes scales. | |
void | updateCanvasMargins () |
Update the canvas margins. | |
virtual void | getCanvasMarginsHint (const QwtScaleMap maps[], const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
Calculate the canvas margins. | |
virtual bool | event (QEvent *) override |
Adds handling of layout requests. | |
virtual bool | eventFilter (QObject *, QEvent *) override |
Event filter. | |
virtual void | drawItems (QPainter *, const QRectF &, const QwtScaleMap maps[QwtAxis::AxisPositions]) const |
virtual QVariant | itemToInfo (QwtPlotItem *) const |
Build an information, that can be used to identify a plot item on the legend. | |
virtual QwtPlotItem * | infoToItem (const QVariant &) const |
Identify the plot item according to an item info object, that has bee generated from itemToInfo(). | |
Public Member Functions inherited from QwtPlotDict | |
QwtPlotDict () | |
virtual | ~QwtPlotDict () |
void | setAutoDelete (bool) |
bool | autoDelete () const |
const QwtPlotItemList & | itemList () const |
A QwtPlotItemList of all attached plot items. | |
QwtPlotItemList | itemList (int rtti) const |
void | detachItems (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true) |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *) override |
Protected Member Functions inherited from QwtPlotDict | |
void | insertItem (QwtPlotItem *) |
void | removeItem (QwtPlotItem *) |
A 2-D plotting widget.
QwtPlot is a widget for plotting two-dimensional graphs. An unlimited number of plot items can be displayed on its canvas. Plot items might be curves (QwtPlotCurve), markers (QwtPlotMarker), the grid (QwtPlotGrid), or anything else derived from QwtPlotItem. A plot can have up to four axes, with each plot item attached to an x- and a y axis. The scales at the axes can be explicitly set (QwtScaleDiv), or are calculated from the plot items, using algorithms (QwtScaleEngine) which can be configured separately for each axis.
The simpleplot example is a good starting point to see how to set up a plot widget.
Definition at line 78 of file qwt_plot.h.
Position of the legend, relative to the canvas.
Enumerator | |
---|---|
LeftLegend | The legend will be left from the QwtAxis::YLeft axis. |
RightLegend | The legend will be right from the QwtAxis::YRight axis. |
BottomLegend | The legend will be below the footer. |
TopLegend | The legend will be above the title. |
Definition at line 93 of file qwt_plot.h.
|
explicit |
|
explicit |
Constructor.
title | Title text |
parent | Parent widget |
Definition at line 114 of file qwt_plot.cpp.
|
virtual |
Destructor.
Definition at line 121 of file qwt_plot.cpp.
|
slot |
Replots the plot if autoReplot() is true
.
Definition at line 289 of file qwt_plot.cpp.
bool QwtPlot::autoReplot | ( | ) | const |
Definition at line 319 of file qwt_plot.cpp.
bool QwtPlot::axisAutoScale | ( | QwtAxisId | axisId | ) | const |
True
, if autoscaling is enabled axisId | Axis |
Definition at line 213 of file qwt_plot_axis.cpp.
QFont QwtPlot::axisFont | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 237 of file qwt_plot_axis.cpp.
QwtInterval QwtPlot::axisInterval | ( | QwtAxisId | axisId | ) | const |
Return the current interval of the specified axis.
This is only a convenience function for axisScaleDiv( axisId )->interval();
axisId | Axis |
Definition at line 348 of file qwt_plot_axis.cpp.
int QwtPlot::axisMaxMajor | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 251 of file qwt_plot_axis.cpp.
int QwtPlot::axisMaxMinor | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 264 of file qwt_plot_axis.cpp.
const QwtScaleDiv & QwtPlot::axisScaleDiv | ( | QwtAxisId | axisId | ) | const |
Return the scale division of a specified axis.
axisScaleDiv(axisId).lowerBound(), axisScaleDiv(axisId).upperBound() are the current limits of the axis scale.
axisId | Axis |
Definition at line 283 of file qwt_plot_axis.cpp.
QwtScaleDraw * QwtPlot::axisScaleDraw | ( | QwtAxisId | axisId | ) |
Return the scale draw of a specified axis.
axisId | Axis |
Definition at line 312 of file qwt_plot_axis.cpp.
const QwtScaleDraw * QwtPlot::axisScaleDraw | ( | QwtAxisId | axisId | ) | const |
Return the scale draw of a specified axis.
axisId | Axis |
Definition at line 298 of file qwt_plot_axis.cpp.
QwtScaleEngine * QwtPlot::axisScaleEngine | ( | QwtAxisId | axisId | ) |
axisId | Axis |
Definition at line 190 of file qwt_plot_axis.cpp.
const QwtScaleEngine * QwtPlot::axisScaleEngine | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 202 of file qwt_plot_axis.cpp.
double QwtPlot::axisStepSize | ( | QwtAxisId | axisId | ) | const |
Return the step size parameter that has been set in setAxisScale.
This doesn't need to be the step size of the current scale.
axisId | Axis |
Definition at line 330 of file qwt_plot_axis.cpp.
QwtText QwtPlot::axisTitle | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 360 of file qwt_plot_axis.cpp.
QwtScaleWidget * QwtPlot::axisWidget | ( | QwtAxisId | axisId | ) |
axisId | Axis |
Definition at line 153 of file qwt_plot_axis.cpp.
const QwtScaleWidget * QwtPlot::axisWidget | ( | QwtAxisId | axisId | ) | const |
axisId | Axis |
Definition at line 141 of file qwt_plot_axis.cpp.
QWidget * QwtPlot::canvas | ( | ) |
Definition at line 463 of file qwt_plot.cpp.
const QWidget * QwtPlot::canvas | ( | ) | const |
Definition at line 471 of file qwt_plot.cpp.
QBrush QwtPlot::canvasBackground | ( | ) | const |
Nothing else than: canvas()->palette().brush( QPalette::Normal, QPalette::Window);
Definition at line 888 of file qwt_plot.cpp.
|
virtual |
axisId | Axis |
Definition at line 800 of file qwt_plot.cpp.
|
virtual |
Redraw the canvas.
painter | Painter used for drawing |
Definition at line 742 of file qwt_plot.cpp.
|
virtual |
Redraw the canvas items.
painter | Painter used for drawing |
canvasRect | Bounding rectangle where to paint |
maps | QwtAxis::AxisCount maps, mapping between plot and paint device coordinates |
Definition at line 764 of file qwt_plot.cpp.
|
overridevirtual |
Adds handling of layout requests.
event | Event |
Definition at line 237 of file qwt_plot.cpp.
|
overridevirtual |
Event filter.
The plot handles the following events for the canvas:
object | Object to be filtered |
event | Event |
Definition at line 271 of file qwt_plot.cpp.
QwtText QwtPlot::footer | ( | ) | const |
Definition at line 395 of file qwt_plot.cpp.
QwtTextLabel * QwtPlot::footerLabel | ( | ) |
Definition at line 401 of file qwt_plot.cpp.
const QwtTextLabel * QwtPlot::footerLabel | ( | ) | const |
Definition at line 407 of file qwt_plot.cpp.
|
virtual |
Calculate the canvas margins.
maps | QwtAxis::AxisCount maps, mapping between plot and paint device coordinates |
canvasRect | Bounding rectangle where to paint |
left | Return parameter for the left margin |
top | Return parameter for the top margin |
right | Return parameter for the right margin |
bottom | Return parameter for the bottom margin |
Plot items might indicate, that they need some extra space at the borders of the canvas by the QwtPlotItem::Margins flag.
updateCanvasMargins(), QwtPlotItem::getCanvasMarginHint()
Definition at line 670 of file qwt_plot.cpp.
|
virtual |
Identify the plot item according to an item info object, that has bee generated from itemToInfo().
The default implementation simply tries to unwrap a QwtPlotItem pointer:
itemInfo | Plot item |
Definition at line 1159 of file qwt_plot.cpp.
void QwtPlot::insertLegend | ( | QwtAbstractLegend * | legend, |
QwtPlot::LegendPosition | pos = QwtPlot::RightLegend, | ||
double | ratio = -1.0 ) |
Insert a legend.
If the position legend is QwtPlot::LeftLegend
or QwtPlot::RightLegend
the legend will be organized in one column from top to down. Otherwise the legend items will be placed in a table with a best fit number of columns from left to right.
insertLegend() will set the plot widget as parent for the legend. The legend will be deleted in the destructor of the plot or when another legend is inserted.
Legends, that are not inserted into the layout of the plot widget need to connect to the legendDataChanged() signal. Calling updateLegend() initiates this signal for an initial update. When the application code wants to implement its own layout this also needs to be done for rendering plots to a document ( see QwtPlotRenderer ).
legend | Legend |
pos | The legend's position. For top/left position the number of columns will be limited to 1, otherwise it will be set to unlimited. |
ratio | Ratio between legend and the bounding rectangle of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5. |
Definition at line 927 of file qwt_plot.cpp.
double QwtPlot::invTransform | ( | QwtAxisId | axisId, |
double | pos ) const |
Transform the x or y coordinate of a position in the drawing region into a value.
axisId | Axis |
pos | position |
Definition at line 401 of file qwt_plot_axis.cpp.
bool QwtPlot::isAxisValid | ( | QwtAxisId | axisId | ) | const |
Checks if an axis is valid
axisId | axis |
true
if the specified axis exists, otherwise false
Definition at line 132 of file qwt_plot_axis.cpp.
bool QwtPlot::isAxisVisible | ( | QwtAxisId | axisId | ) | const |
True
, if a specified axis is visible axisId | Axis |
Definition at line 225 of file qwt_plot_axis.cpp.
|
signal |
A signal indicating, that an item has been attached/detached
plotItem | Plot item |
on | Attached/Detached |
|
virtual |
Build an information, that can be used to identify a plot item on the legend.
The default implementation simply wraps the plot item into a QVariant object. When overloading itemToInfo() usually infoToItem() needs to reimplemeted too.
plotItem | Plot item |
Definition at line 1139 of file qwt_plot.cpp.
QwtAbstractLegend * QwtPlot::legend | ( | ) |
const QwtAbstractLegend * QwtPlot::legend | ( | ) | const |
|
signal |
A signal with the attributes how to update the legend entries for a plot item.
itemInfo | Info about a plot item, build from itemToInfo() |
data | Attributes of the entries ( usually <= 1 ) for the plot item. |
|
overridevirtual |
Return a minimum size hint.
Definition at line 518 of file qwt_plot.cpp.
QwtPlotLayout * QwtPlot::plotLayout | ( | ) |
Definition at line 430 of file qwt_plot.cpp.
const QwtPlotLayout * QwtPlot::plotLayout | ( | ) | const |
Definition at line 436 of file qwt_plot.cpp.
|
virtualslot |
Redraw the plot.
If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible.
Definition at line 545 of file qwt_plot.cpp.
|
overrideprotectedvirtual |
Resize and update internal layout
e | Resize event |
Definition at line 530 of file qwt_plot.cpp.
void QwtPlot::setAutoReplot | ( | bool | tf = true | ) |
Set or reset the autoReplot option.
If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call replot() explicitly if necessary.
The autoReplot option is set to false by default, which means that the user has to call replot() in order to make changes visible.
tf | true or false . Defaults to true . |
Definition at line 310 of file qwt_plot.cpp.
void QwtPlot::setAxisAutoScale | ( | QwtAxisId | axisId, |
bool | on = true ) |
Enable autoscaling for a specified axis.
This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling is enabled by default.
axisId | Axis |
on | On/Off |
Definition at line 453 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisFont | ( | QwtAxisId | axisId, |
const QFont & | font ) |
Change the font of an axis.
axisId | Axis |
font | Font |
Definition at line 434 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisLabelAlignment | ( | QwtAxisId | axisId, |
Qt::Alignment | alignment ) |
Change the alignment of the tick labels
axisId | Axis |
alignment | Or'd Qt::AlignmentFlags see <qnamespace.h> |
Definition at line 553 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisLabelRotation | ( | QwtAxisId | axisId, |
double | rotation ) |
Rotate all tick labels
axisId | Axis |
rotation | Angle in degrees. When changing the label rotation, the label alignment might be adjusted too. |
Definition at line 568 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisMaxMajor | ( | QwtAxisId | axisId, |
int | maxMajor ) |
Set the maximum number of major scale intervals for a specified axis
axisId | Axis |
maxMajor | Maximum number of major steps |
Definition at line 606 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisMaxMinor | ( | QwtAxisId | axisId, |
int | maxMinor ) |
Set the maximum number of minor scale intervals for a specified axis
axisId | Axis |
maxMinor | Maximum number of minor steps |
Definition at line 582 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisScale | ( | QwtAxisId | axisId, |
double | min, | ||
double | max, | ||
double | stepSize = 0 ) |
Disable autoscaling and specify a fixed scale for a selected axis.
In updateAxes() the scale engine calculates a scale division from the specified parameters, that will be assigned to the scale widget. So updates of the scale widget usually happen delayed with the next replot.
axisId | Axis |
min | Minimum of the scale |
max | Maximum of the scale |
stepSize | Major step size. If step == 0 , the step size is calculated automatically using the maxMajor setting. |
Definition at line 477 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisScaleDiv | ( | QwtAxisId | axisId, |
const QwtScaleDiv & | scaleDiv ) |
Disable autoscaling and specify a fixed scale for a selected axis.
The scale division will be stored locally only until the next call of updateAxes(). So updates of the scale widget usually happen delayed with the next replot.
axisId | Axis |
scaleDiv | Scale division |
Definition at line 506 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisScaleDraw | ( | QwtAxisId | axisId, |
QwtScaleDraw * | scaleDraw ) |
Set a scale draw.
axisId | Axis |
scaleDraw | Object responsible for drawing scales. |
By passing scaleDraw it is possible to extend QwtScaleDraw functionality and let it take place in QwtPlot. Please note that scaleDraw has to be created with new and will be deleted by the corresponding QwtScale member ( like a child object ).
Definition at line 536 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisScaleEngine | ( | QwtAxisId | axisId, |
QwtScaleEngine * | scaleEngine ) |
Change the scale engine for an axis
axisId | Axis |
scaleEngine | Scale engine |
Definition at line 169 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisTitle | ( | QwtAxisId | axisId, |
const QString & | title ) |
Change the title of a specified axis.
axisId | Axis |
title | axis title |
Definition at line 628 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisTitle | ( | QwtAxisId | axisId, |
const QwtText & | title ) |
Change the title of a specified axis.
axisId | Axis |
title | Axis title |
Definition at line 640 of file qwt_plot_axis.cpp.
void QwtPlot::setAxisVisible | ( | QwtAxisId | axisId, |
bool | on = true ) |
Hide or show a specified axis.
Curves, markers and other items can be attached to hidden axes, and transformation of screen coordinates into values works as normal.
Only QwtAxis::XBottom and QwtAxis::YLeft are enabled by default.
axisId | Axis |
on | true (visible) or false (hidden) |
Definition at line 380 of file qwt_plot_axis.cpp.
void QwtPlot::setCanvas | ( | QWidget * | canvas | ) |
Set the drawing canvas of the plot widget.
QwtPlot invokes methods of the canvas as meta methods ( see QMetaObject ). In opposite to using conventional C++ techniques like virtual methods they allow to use canvas implementations that are derived from QWidget or QGLWidget.
The following meta methods could be implemented:
The default canvas is a QwtPlotCanvas
canvas | Canvas Widget |
Definition at line 213 of file qwt_plot.cpp.
void QwtPlot::setCanvasBackground | ( | const QBrush & | brush | ) |
Change the background of the plotting area.
Sets brush to QPalette::Window of all color groups of the palette of the canvas. Using canvas()->setPalette() is a more powerful way to set these colors.
brush | New background brush |
Definition at line 873 of file qwt_plot.cpp.
void QwtPlot::setFooter | ( | const QString & | text | ) |
Change the text the footer
text | New text of the footer |
Definition at line 372 of file qwt_plot.cpp.
void QwtPlot::setFooter | ( | const QwtText & | text | ) |
Change the text the footer
text | New text of the footer |
Definition at line 385 of file qwt_plot.cpp.
void QwtPlot::setPlotLayout | ( | QwtPlotLayout * | layout | ) |
Assign a new plot layout.
layout | Layout() |
Definition at line 418 of file qwt_plot.cpp.
void QwtPlot::setTitle | ( | const QString & | title | ) |
void QwtPlot::setTitle | ( | const QwtText & | title | ) |
|
overridevirtual |
Definition at line 480 of file qwt_plot.cpp.
QwtText QwtPlot::title | ( | ) | const |
Definition at line 351 of file qwt_plot.cpp.
QwtTextLabel * QwtPlot::titleLabel | ( | ) |
Definition at line 357 of file qwt_plot.cpp.
const QwtTextLabel * QwtPlot::titleLabel | ( | ) | const |
Definition at line 363 of file qwt_plot.cpp.
double QwtPlot::transform | ( | QwtAxisId | axisId, |
double | value ) const |
Transform a value into a coordinate in the plotting region.
axisId | Axis |
value | value |
Definition at line 418 of file qwt_plot_axis.cpp.
void QwtPlot::updateAxes | ( | ) |
Rebuild the axes scales.
In case of autoscaling the boundaries of a scale are calculated from the bounding rectangles of all plot items, having the QwtPlotItem::AutoScale flag enabled ( QwtScaleEngine::autoScale() ). Then a scale division is calculated ( QwtScaleEngine::didvideScale() ) and assigned to scale widget.
When the scale boundaries have been assigned with setAxisScale() a scale division is calculated ( QwtScaleEngine::didvideScale() ) for this interval and assigned to the scale widget.
When the scale has been set explicitly by setAxisScaleDiv() the locally stored scale division gets assigned to the scale widget.
The scale widget indicates modifications by emitting a QwtScaleWidget::scaleDivChanged() signal.
updateAxes() is usually called by replot().
Definition at line 670 of file qwt_plot_axis.cpp.
void QwtPlot::updateCanvasMargins | ( | ) |
Update the canvas margins.
Plot items might indicate, that they need some extra space at the borders of the canvas by the QwtPlotItem::Margins flag.
getCanvasMarginsHint(), QwtPlotItem::getCanvasMarginHint()
Definition at line 706 of file qwt_plot.cpp.
|
virtual |
Adjust plot content to its current size.
Definition at line 577 of file qwt_plot.cpp.
void QwtPlot::updateLegend | ( | ) |
Emit legendDataChanged() for all plot item
Definition at line 1016 of file qwt_plot.cpp.
void QwtPlot::updateLegend | ( | const QwtPlotItem * | plotItem | ) |
Emit legendDataChanged() for a plot item
plotItem | Plot item |
Definition at line 1032 of file qwt_plot.cpp.