The reference should be used in conjunction with the Qwt manual on your hard disk or Qwt on the web. Only the differences specific to the Python bindings are documented here.
In this chapter, is not yet implemented implies that the feature can be easily implemented if needed, is not implemented implies that the feature is not easily implemented, and is not Pythonic implies that the feature will not be implemented because it violates the Python philosophy (e.g. may use dangling pointers).
If a class is described as being fully implemented then all non-private member functions and all public class variables have been implemented.
Undocumented classes have not yet been implemented or are still experimental.
The classes in the Qwt library have quite a few protected attributes. They are not yet available in Python (as far as I know, sip wraps protected member function, but not protected attributes). I may try to implement protected attributes on demand.
*args) |
*args) |
*args) |
*args) |
void adjust(double minVal, double maxVal, int reset = 0); void adjust(double* x, int size, int reset = 0);
autoScale.adjust(minVal, maxVal, reset = 0) autoScale.adjust(x, reset = 0)
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
void setData(double* x, double* y, int size)
curve.setData(x, y)
void setRawData(double* x, double* y, int size)
setRawData
is not Pythonic.
int verifyRange(int& i1, int& i2);
length, first, last = curve.verifyRange(i1, i2)
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
void print(QPrinter &, const QwtPlotPrintFilter &); void print(QPainter *, const QRect &, const QwtPlotPrintFilter &);
print
has been renamed to printPlot
in Python.
QArray<long> curveKeys() const;
curveKeys
returns a list containing the keys of all curves.
long closestCurve(int xPos, int yPos, int& distance) const; long closestCurve(int xPos, int yPos, int& distance, double& xVal, double& yVal, int& index) const;
key, distance, xVal, yVal, index = plot.closestCurve(xPos, yPos)
bool setCurveData(long key, double *x, double *y, int size);
plot.setCurveData(key, x, y)
key
is an index to the curve and x
and y
are any
combination of lists, tuples or NumPy arrays of Python floats.
All sequences are internally truncated to the length of the shortest
sequence.
bool setCurveRawData(long key, double* x, double* y, int size);
setCurveRawData
is not Pythonic.
bool axisMargins(int axis, double& lowMargin, double& highMargin) const;
valid, lowMargin, highMargin = plot.axisMargins(axis)
void axisLabelFormat(int axis, char& format, int& precision, int& width) const;
format, precision, width = plot.axisLabelFormat(axis)
long closestMarker(int xPos, int yPos, int& distance) const;
key, distance = plot.closestMarker(xPos, yPos)
closestMarker
takes the x- and y-coordinates of a point and
returns a tuple containing the key of the closest marker and the distance
between the closest marker and the point.
QArray<long> markerKeys() const;
markerKeys
returns a list containing the keys of all markers.
void markerPos(long key, double& x, double& y) const;
x, y = plot.markerPos(key)
markerPos
takes the key of a marker and returns a tuple containing
the x- and y-coordinates.
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
void labelFormat(char& format, int& precision, int& width) const;
format, precision, width = scale.labelFormat()
void minBorderDist(int& start, int& end) const;
start, end = scale.minBorderDist()
*args) |
*args) |
*args) |
*args) |
*args) |
*args) |
virtual void getScrollMode(const QPoint& point, int& mode, int& direction) = 0;
mode, direction = sliderBase.getScrollMode(point)
*args) |
int recalc(double* x, double* y, int n, bool periodic = 0);
errorCode = spline.recalc(x, y, periodic)
void copyValues(int enable = 1);
*args) |
*args) |
*args) |
*args) |