Skip to content

Commit ffc26d3

Browse files
committed
CHANGELOG/README: .md code cleaning
1 parent 1c421b2 commit ffc26d3

File tree

2 files changed

+57
-68
lines changed

2 files changed

+57
-68
lines changed

CHANGELOG.md

Lines changed: 36 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# PythonQwt Releases #
1+
# PythonQwt Releases
22

3-
### Version 0.8.3 ###
3+
## Version 0.8.3
44

55
- Fixed simple plot examples (setup.py & plot.py's doc page) following the introduction
66
of the new QtPy dependency (Qt compatibility layer) since V0.8.0.
77

8-
### Version 0.8.2 ###
8+
## Version 0.8.2
99

1010
- Added new GUI-based test script `PythonQwt-py3` to run the test launcher.
1111
- Added command-line options to the `PythonQwt-tests-py3` script to run all the tests
@@ -14,31 +14,31 @@
1414
- Added internal scripts for automated test in virtual environments with both PyQt5 and
1515
PySide2.
1616

17-
### Version 0.8.1 ###
17+
## Version 0.8.1
1818

1919
- PySide2 support was significatively improved betwen PythonQwt V0.8.0 and
2020
V0.8.1 thanks to the new `qwt.qwt_curve.array2d_to_qpolygonf` function.
2121

22-
### Version 0.8.0 ###
22+
## Version 0.8.0
2323

2424
- Added PySide2 support: PythonQwt is now compatible with Python 2.7, Python 3.4+,
2525
PyQt4, PyQt5 and PySide2!
2626

27-
### Version 0.7.1 ###
27+
## Version 0.7.1
2828

2929
- Changed QwtPlotItem.detachItems signature: removed unnecessary "autoDelete" argument,
3030
initialiazing "rtti" argument to None (remove all items)
3131
- Improved Qt universal support (PyQt5, ...)
3232

33-
### Version 0.7.0 ###
33+
## Version 0.7.0
3434

3535
- Added convenience functions for creating usual objects (curve, grid, marker, ...):
3636

37-
- `QwtPlotCurve.make`
38-
- `QwtPlotMarker.make`
39-
- `QwtPlotGrid.make`
40-
- `QwtSymbol.make`
41-
- `QwtText.make`
37+
- `QwtPlotCurve.make`
38+
- `QwtPlotMarker.make`
39+
- `QwtPlotGrid.make`
40+
- `QwtSymbol.make`
41+
- `QwtText.make`
4242

4343
- Added new test launcher with screenshots (automatically generated)
4444
- Removed `guidata` dependency thanks to the new specific GUI-based test launcher
@@ -52,33 +52,30 @@
5252
- Fixed obvious errors (+ poor implementations) in untested code parts
5353
- Major code cleaning and formatting
5454

55-
56-
### Version 0.6.2 ###
55+
## Version 0.6.2
5756

5857
- Fixed Python crash occuring at exit when deleting objects (Python 3 only)
59-
- Moved documentation to https://docs.readthedocs.io/
58+
- Moved documentation to <https://docs.readthedocs.io/>
6059
- Added unattended tests with multiple versions of WinPython:
61-
62-
- WinPython-32bit-2.7.6.4
63-
- WinPython-64bit-2.7.6.4
64-
- WinPython-64bit-3.4.4.3
65-
- WinPython-64bit-3.4.4.3Qt5
66-
- WPy64-3680
67-
- WPy64-3771
68-
- WPy64-3830
6960

70-
- Added PyQt4/PyQt5/PySide automatic switch depending on installed libraries
61+
- WinPython-32bit-2.7.6.4
62+
- WinPython-64bit-2.7.6.4
63+
- WinPython-64bit-3.4.4.3
64+
- WinPython-64bit-3.4.4.3Qt5
65+
- WPy64-3680
66+
- WPy64-3771
67+
- WPy64-3830
7168

69+
- Added PyQt4/PyQt5/PySide automatic switch depending on installed libraries
7270

73-
### Version 0.6.1 ###
71+
## Version 0.6.1
7472

7573
- Fixed rounding issue with PythonQwt scale engine (0...1000 is now divided
7674
in 200-size steps, as in both Qwt and PyQwt)
7775
- Removed unnecessary mask on scaleWidget (this closes #35)
7876
- CurveBenchmark.py: fixed TypeError with numpy.linspace (NumPy=1.18)
7977

80-
81-
### Version 0.6.0 ###
78+
## Version 0.6.0
8279

8380
- Ported changes from Qwt 6.1.2 to Qwt 6.1.5
8481
- `QwtPlotCanvas.setPaintAttribute`: fixed PyQt4 compatibility issue for BackingStore paint attribute
@@ -89,21 +86,18 @@
8986
- `QwtStyleSheetRecorder`: fixed obvious bug in untested code (this closes #47, closes #48 and closes #52)
9087
- Added "plot without margins" test for Issue #35
9188

92-
93-
### Version 0.5.5 ###
89+
## Version 0.5.5
9490

9591
- `QwtScaleMap.invTransform_scalar`: avoid divide by 0
9692
- Avoid error when computing ticks: when the axis was so small that no tick could be drawn, an exception used to be raised
9793

98-
99-
### Version 0.5.4 ###
94+
## Version 0.5.4
10095

10196
Fixed an annoying bug which caused scale widget (axis ticks in particular)
10297
to be misaligned with canvas grid: the user was forced to resize the plot
10398
widget as a workaround
10499

105-
106-
### Version 0.5.3 ###
100+
## Version 0.5.3
107101

108102
- Better handling of infinity and `NaN` values in scales (removed `NumPy`
109103
warnings)
@@ -112,16 +106,14 @@ can't be drawn
112106
- Fixed logarithmic scale engine: presence of values <= 0 was slowing down
113107
series data plotting
114108

115-
116-
### Version 0.5.2 ###
109+
## Version 0.5.2
117110

118111
- Added CHM documentation to wheel package
119112
- Fixed `QwtPlotRenderer.setDiscardFlag`/`setLayoutFlag` args
120113
- Fixed `QwtPlotItem.setItemInterest` args
121114
- Fixed `QwtPlot.setAxisAutoScale`/`setAutoReplot` args
122115

123-
124-
### Version 0.5.1 ###
116+
## Version 0.5.1
125117

126118
- Fixed Issue #22: fixed scale issues in [CurveDemo2.py](qwt/tests/CurveDemo2.py)
127119
and [ImagePlotDemo.py](qwt/tests/ImagePlotDemo.py)
@@ -133,47 +125,40 @@ and [ImagePlotDemo.py](qwt/tests/ImagePlotDemo.py)
133125
(see Issue #26)
134126
- Added Python2/Python3 scripts for running tests
135127

136-
137-
### Version 0.5.0 ###
128+
## Version 0.5.0
138129

139130
- Various optimizations
140131
- Major API simplification, taking into account the feature that won't be
141132
implemented (fitting, rounding, weeding out points, clipping, etc.)
142133
- Added `QwtScaleDraw.setLabelAutoSize`/`labelAutoSize` methods to set the new
143134
auto size option (see [documentation](http://pythonhosted.org/PythonQwt/))
144135

145-
146-
### Version 0.4.0 ###
136+
## Version 0.4.0
147137

148138
- Color bar: fixed axis ticks shaking when color bar is enabled
149139
- Fixed `QwtPainter.drawColorBar` for horizontal color bars (typo)
150140
- Restored compatibility with original Qwt signals (`QwtPlot`, ...)
151141

152-
153-
### Version 0.3.0 ###
142+
## Version 0.3.0
154143

155144
Renamed the project (python-qwt --> PythonQwt), for various reasons.
156145

157-
158-
### Version 0.2.1 ###
146+
## Version 0.2.1
159147

160148
Fixed Issue #23: "argument numPoints is not implemented" error was showing
161149
up when calling `QwtSymbol.drawSymbol(symbol, QPoint(x, y))`.
162150

163-
164-
### Version 0.2.0 ###
151+
## Version 0.2.0
165152

166153
Added docstrings in all Python modules and a complete documentation based on
167154
Sphinx. See the Overview section for API limitations when comparing to Qwt.
168155

169-
170-
### Version 0.1.1 ###
156+
## Version 0.1.1
171157

172158
Fixed Issue #21 (blocking issue *only* on non-Windows platforms when
173159
building the package): typo in "PythonQwt-tests" script name
174160
(in [setup script](setup.py))
175161

176-
177-
### Version 0.1.0 ###
162+
## Version 0.1.0
178163

179164
First alpha public release.

README.md

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@
77
[![download count](https://img.shields.io/conda/dn/conda-forge/PythonQwt.svg)](https://www.anaconda.com/download/)
88
[![Documentation Status](https://readthedocs.org/projects/pythonqwt/badge/?version=latest)](https://pythonqwt.readthedocs.io/en/latest/?badge=latest)
99

10-
<img src="https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/qwt/tests/data/testlauncher.png">
10+
![PythonQwt Test Launcher](qwt/tests/data/testlauncher.png)
1111

12-
The `PythonQwt` project was initiated to solve -at least temporarily- the
13-
obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is
14-
no longer maintained. The idea was to translate the original Qwt C++ code to
15-
Python and then to optimize some parts of the code by writing new modules
12+
The `PythonQwt` project was initiated to solve -at least temporarily- the
13+
obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is
14+
no longer maintained. The idea was to translate the original Qwt C++ code to
15+
Python and then to optimize some parts of the code by writing new modules
1616
based on NumPy and other libraries.
1717

18-
The `PythonQwt` package consists of a single Python package named `qwt` and
18+
The `PythonQwt` package consists of a single Python package named `qwt` and
1919
of a few other files (examples, doc, ...).
2020

21-
See documentation [online](https://pythonqwt.readthedocs.io/en/latest/) or [PDF](https://pythonqwt.readthedocs.io/_/downloads/en/latest/pdf/) for more details on
22-
the library and [changelog](CHANGELOG.md) for recent history of changes.
21+
See documentation [online](https://pythonqwt.readthedocs.io/en/latest/) or [PDF](https://pythonqwt.readthedocs.io/_/downloads/en/latest/pdf/) for more details on the library and [changelog](CHANGELOG.md) for recent history of changes.
2322

2423
## Sample
2524

@@ -45,7 +44,8 @@ plot.show()
4544
app.exec_()
4645
```
4746

48-
<img src="https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/doc/images/QwtPlot_example.png">
47+
![Simple plot example](doc/images/QwtPlot_example.png)
48+
4949
## Examples (tests)
5050

5151
The GUI-based test launcher may be executed from Python:
@@ -85,15 +85,16 @@ for more details on API limitations when comparing to Qwt.
8585

8686
## Dependencies
8787

88-
### Requirements ###
88+
### Requirements
89+
8990
- Python >=2.6 or Python >=3.2
9091
- PyQt4 >=4.4 or PyQt5 >= 5.5 (or PySide2, still experimental, see below)
9192
- QtPy >= 1.3
9293
- NumPy >= 1.5
9394

94-
### Why PySide2 support is still experimental ###
95+
### Why PySide2 support is still experimental
9596

96-
<img src="https://raw.githubusercontent.com/PierreRaybaut/PythonQwt/master/doc/images/pyqt5_vs_pyside2.png">
97+
![PyQt5 vs PySide2](doc/images/pyqt5_vs_pyside2.png)
9798

9899
Try running the `curvebenchmark1.py` test with PyQt5 and PySide: you will notice a
99100
huge performance issue with PySide2 (see screenshot above). This is due to the fact
@@ -113,9 +114,9 @@ def array2d_to_qpolygonf(xdata, ydata):
113114
Utility function to convert two 1D-NumPy arrays representing curve data
114115
(X-axis, Y-axis data) into a single polyline (QtGui.PolygonF object).
115116
This feature is compatible with PyQt4, PyQt5 and PySide2 (requires QtPy).
116-
117+
117118
License/copyright: MIT License © Pierre Raybaut 2020.
118-
119+
119120
:param numpy.ndarray xdata: 1D-NumPy array (numpy.float64)
120121
:param numpy.ndarray ydata: 1D-NumPy array (numpy.float64)
121122
:return: Polyline
@@ -151,18 +152,21 @@ python setup.py install
151152

152153
## Copyrights
153154

154-
#### Main code base
155+
### Main code base
156+
155157
- Copyright © 2002 Uwe Rathmann, for the original Qwt C++ code
156158
- Copyright © 2015 Pierre Raybaut, for the Qwt C++ to Python translation and
157159
optimization
158160
- Copyright © 2015 Pierre Raybaut, for the PythonQwt specific and exclusive
159161
Python material
160162

161-
#### PyQt, PySide and Python2/Python3 compatibility modules
163+
### PyQt, PySide and Python2/Python3 compatibility modules
164+
162165
- Copyright © 2009-2013 Pierre Raybaut
163166
- Copyright © 2013-2015 The Spyder Development Team
164167

165-
#### Some examples
168+
### Some examples
169+
166170
- Copyright © 2003-2009 Gerard Vermeulen, for the original PyQwt code
167171
- Copyright © 2015 Pierre Raybaut, for the PyQt5/PySide port and further
168172
developments (e.g. ported to PythonQwt API)

0 commit comments

Comments
 (0)