Skip to content

Commit dc4c57d

Browse files
committed
Added docstrings for various modules, removed unnecessary data classes, etc.
1 parent 6a1c67c commit dc4c57d

23 files changed

+2038
-1024
lines changed

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Contents:
77
:maxdepth: 2
88

99
overview
10+
limitations
1011
installation
1112
examples/index
1213
reference/index

doc/overview.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,31 @@ only plot items needed by `guiqwt`): `QwtPlotItem` (base class),
2525
`QwtPlotItem`, `QwtPlotMarker`, `QwtPlotSeriesItem`, `QwtPlotHistogram`,
2626
`QwtPlotCurve`.
2727

28+
The `HistogramItem` object implemented in PyQwt's HistogramDemo.py is not
29+
available here as a similar item is already implemented in `guiqwt`. As a
30+
consequence, the following classes are not implemented: `QwtPlotHistogram`,
31+
`QwtIntervalSeriesData`, `QwtIntervalSample`.
32+
33+
The following data structure objects are not implemented as they seemed not
34+
relevant with Python and NumPy: `QwtCPointerData` (As a consequence, method
35+
`QwtPlot.setRawSamples` is not implemented), `QwtSyntheticPointData`.
36+
37+
The following sample data type objects are not implemented as they seemed
38+
quite specific: `QwtSetSample`, `QwtOHLCSample`. For similar reasons, the
39+
`QwtPointPolar` class and the following sample iterator objects are not
40+
implemented: `QwtSetSeriesData`, `QwtTradingChartData`,
41+
`QwtPoint3DSeriesData`, `QwtArraySeriesData`, `QwtPointSeriesData`.
42+
43+
Threads:
44+
45+
- Multiple threads for graphic rendering is implemented in Qwt C++ code
46+
thanks to the `QtConcurrent` and `QFuture` Qt features which are
47+
currently not supported by PyQt.
48+
- As a consequence the following API is not supported in `python-qwt`:
49+
- `QwtPlotItem.renderThreadCount`
50+
- `QwtPlotItem.setRenderThreadCount`
51+
- option `numThreads` in `QwtPointMapper.toImage`
52+
2853
The `QwtClipper` class is not implemented yet (and it will probably be
2954
very difficult or even impossible to implement it in pure Python without
3055
performance issues). As a consequence, when zooming in a plot curve, the

doc/reference/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ Main `python-qwt` classes:
1717
plot_curve
1818
plot_directpainter
1919
plot_grid
20-
plot_histogram
2120
plot_layout
2221
plot_marker
2322
plot_renderer
2423
plot_seriesitem
24+
scale_div
25+
scale_draw
26+
scale_engine
27+
scale_widget
28+
series_data
29+
toqimage

doc/reference/scale_div.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.scale_div
2+
:members:

doc/reference/scale_draw.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.scale_draw
2+
:members:

doc/reference/scale_engine.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.scale_engine
2+
:members:

doc/reference/scale_widget.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.scale_widget
2+
:members:

doc/reference/series_data.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.series_data
2+
:members:

doc/reference/toqimage.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: qwt.toqimage
2+
:members:

qwt/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,10 @@
4545
from qwt.scale_div import QwtScaleDiv
4646
from qwt.scale_draw import QwtScaleDraw
4747
from qwt.scale_draw import QwtAbstractScaleDraw
48-
from qwt.series_data import QwtIntervalSeriesData
49-
from qwt.sample import QwtIntervalSample
5048
from qwt.painter import QwtPainter
5149
from qwt.legend_data import QwtLegendData
5250

53-
from qwt.point_data import QwtPointArrayData
51+
from qwt.series_data import QwtPointArrayData
5452

5553
from qwt.plot_renderer import QwtPlotRenderer
5654

0 commit comments

Comments
 (0)