PythonQwt 0.12.7__tar.gz → 0.14.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. {pythonqwt-0.12.7/PythonQwt.egg-info → pythonqwt-0.14.0}/PKG-INFO +837 -849
  2. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt-tests.desktop +10 -10
  3. {pythonqwt-0.12.7 → pythonqwt-0.14.0/PythonQwt.egg-info}/PKG-INFO +837 -849
  4. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt.egg-info/requires.txt +1 -1
  5. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/README.md +135 -147
  6. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/conf.py +204 -204
  7. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/bodedemo.rst +7 -7
  8. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/cartesian.rst +7 -7
  9. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/cpudemo.rst +7 -7
  10. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/curvebenchmark1.rst +7 -7
  11. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/curvebenchmark2.rst +7 -7
  12. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/curvedemo1.rst +7 -7
  13. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/curvedemo2.rst +7 -7
  14. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/data.rst +7 -7
  15. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/errorbar.rst +7 -7
  16. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/eventfilter.rst +7 -7
  17. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/image.rst +7 -7
  18. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/index.rst +49 -49
  19. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/logcurve.rst +7 -7
  20. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/mapdemo.rst +7 -7
  21. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/multidemo.rst +7 -7
  22. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/simple.rst +7 -7
  23. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/examples/vertical.rst +7 -7
  24. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/index.rst +17 -17
  25. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/installation.rst +29 -29
  26. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/overview.rst +81 -81
  27. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/plot_example.py +19 -19
  28. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/graphic.rst +1 -1
  29. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/index.rst +25 -25
  30. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/interval.rst +1 -1
  31. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/plot.rst +24 -24
  32. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/plot_directpainter.rst +1 -1
  33. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/plot_layout.rst +1 -1
  34. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/plot_series.rst +1 -1
  35. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/scale.rst +12 -12
  36. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/symbol.rst +1 -1
  37. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/text.rst +1 -1
  38. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/toqimage.rst +1 -1
  39. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/reference/transform.rst +1 -1
  40. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/requirements.txt +3 -3
  41. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/symbol_path_example.py +55 -55
  42. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/pyproject.toml +82 -82
  43. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/__init__.py +1 -1
  44. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/_math.py +75 -75
  45. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_series.py +384 -384
  46. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/qthelpers.py +52 -52
  47. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/scale_draw.py +1220 -1220
  48. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/symbol.py +1273 -1273
  49. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/__init__.py +46 -46
  50. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/comparative_benchmarks.py +62 -62
  51. pythonqwt-0.14.0/qwt/tests/conftest.py +49 -0
  52. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/PythonQwt.svg +484 -484
  53. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/symbol.svg +411 -411
  54. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_backingstore.py +23 -23
  55. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_bodedemo.py +305 -305
  56. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_cartesian.py +109 -109
  57. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_cpudemo.py +400 -400
  58. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_curvebenchmark1.py +190 -190
  59. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_curvebenchmark2.py +91 -91
  60. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_curvedemo1.py +128 -128
  61. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_curvedemo2.py +127 -127
  62. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_data.py +106 -106
  63. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_errorbar.py +327 -327
  64. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_eventfilter.py +479 -479
  65. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_highdpi.py +36 -36
  66. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_image.py +204 -204
  67. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_loadtest.py +58 -58
  68. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_logcurve.py +40 -40
  69. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_mapdemo.py +106 -106
  70. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_multidemo.py +79 -79
  71. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_simple.py +78 -78
  72. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_stylesheet.py +37 -37
  73. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_symbols.py +201 -201
  74. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/test_vertical.py +84 -84
  75. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/utils.py +320 -320
  76. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/setup.cfg +4 -4
  77. pythonqwt-0.12.7/qwt/tests/conftest.py +0 -24
  78. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/LICENSE +0 -0
  79. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/MANIFEST.in +0 -0
  80. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt.egg-info/SOURCES.txt +0 -0
  81. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt.egg-info/dependency_links.txt +0 -0
  82. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt.egg-info/entry_points.txt +0 -0
  83. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/PythonQwt.egg-info/top_level.txt +0 -0
  84. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/_static/PythonQwt_logo.png +0 -0
  85. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/_static/QwtPlot_example.png +0 -0
  86. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/_static/panorama.png +0 -0
  87. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/doc/_static/symbol_path_example.png +0 -0
  88. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/color_map.py +0 -0
  89. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/column_symbol.py +0 -0
  90. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/dyngrid_layout.py +0 -0
  91. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/graphic.py +0 -0
  92. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/interval.py +0 -0
  93. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/legend.py +0 -0
  94. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/null_paintdevice.py +0 -0
  95. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/painter.py +0 -0
  96. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/painter_command.py +0 -0
  97. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot.py +0 -0
  98. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_canvas.py +0 -0
  99. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_curve.py +0 -0
  100. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_directpainter.py +0 -0
  101. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_grid.py +0 -0
  102. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_layout.py +0 -0
  103. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_marker.py +0 -0
  104. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/plot_renderer.py +0 -0
  105. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/scale_div.py +0 -0
  106. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/scale_engine.py +0 -0
  107. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/scale_map.py +0 -0
  108. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/scale_widget.py +0 -0
  109. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/bodedemo.png +0 -0
  110. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/cartesian.png +0 -0
  111. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/cpudemo.png +0 -0
  112. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/curvebenchmark1.png +0 -0
  113. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/curvebenchmark2.png +0 -0
  114. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/curvedemo1.png +0 -0
  115. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/curvedemo2.png +0 -0
  116. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/data.png +0 -0
  117. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/errorbar.png +0 -0
  118. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/eventfilter.png +0 -0
  119. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/image.png +0 -0
  120. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/loadtest.png +0 -0
  121. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/logcurve.png +0 -0
  122. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/mapdemo.png +0 -0
  123. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/multidemo.png +0 -0
  124. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/simple.png +0 -0
  125. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/stylesheet.png +0 -0
  126. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/symbols.png +0 -0
  127. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/testlauncher.png +0 -0
  128. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/tests/data/vertical.png +0 -0
  129. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/text.py +0 -0
  130. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/toqimage.py +0 -0
  131. {pythonqwt-0.12.7 → pythonqwt-0.14.0}/qwt/transform.py +0 -0
@@ -1,849 +1,837 @@
1
- Metadata-Version: 2.1
2
- Name: PythonQwt
3
- Version: 0.12.7
4
- Summary: Qt plotting widgets for Python
5
- Author-email: Pierre Raybaut <pierre.raybaut@gmail.com>
6
- License: PythonQwt License Agreement
7
- ---------------------------
8
-
9
- [1] Software licensed under the terms of Qwt License
10
-
11
- The essential part of the code was translated to Python from Qwt C++ library
12
- and is thus licensed under the terms of the LGPL License from which the Qwt
13
- License 1.0 is derived from (see [***] for more details).
14
-
15
- [2] Software licensed under the terms of the MIT license
16
-
17
- Independent Python modules purely based on new code (no contamination from the
18
- LGPL license inherited from the Qwt Project) are distributed under the terms
19
- of the MIT License (see [*] and [**]).
20
-
21
- [3] Software licensed under the terms of PyQwt License
22
-
23
- Some files under the "tests" subfolder of the main Python package directory
24
- were derived from PyQwt PyQt4 examples and are thus distributed under the
25
- terms of the GPL License from which the PyQwt License 1.0 is derived from
26
- (see [****] for more details).
27
-
28
-
29
- [*] PythonQwt License Agreement for new and exclusive Python material (MIT)
30
-
31
- Copyright (c) 2015 Pierre Raybaut
32
-
33
- Permission is hereby granted, free of charge, to any person
34
- obtaining a copy of this software and associated documentation
35
- files (the "Software"), to deal in the Software without
36
- restriction, including without limitation the rights to use,
37
- copy, modify, merge, publish, distribute, sublicense, and/or sell
38
- copies of the Software, and to permit persons to whom the
39
- Software is furnished to do so, subject to the following
40
- conditions:
41
-
42
- The above copyright notice and this permission notice shall be
43
- included in all copies or substantial portions of the Software.
44
-
45
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
46
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
47
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
48
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
49
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
50
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
51
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
52
- OTHER DEALINGS IN THE SOFTWARE.
53
-
54
-
55
- [**] Spyder License Agreement
56
-
57
- Spyder License Agreement (MIT License)
58
- --------------------------------------
59
-
60
- Copyright (c) 2009-2013 Pierre Raybaut
61
- Copyright (c) 2013-2015 The Spyder Development Team
62
-
63
- Permission is hereby granted, free of charge, to any person
64
- obtaining a copy of this software and associated documentation
65
- files (the "Software"), to deal in the Software without
66
- restriction, including without limitation the rights to use,
67
- copy, modify, merge, publish, distribute, sublicense, and/or sell
68
- copies of the Software, and to permit persons to whom the
69
- Software is furnished to do so, subject to the following
70
- conditions:
71
-
72
- The above copyright notice and this permission notice shall be
73
- included in all copies or substantial portions of the Software.
74
-
75
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
76
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
77
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
78
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
79
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
80
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
81
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
82
- OTHER DEALINGS IN THE SOFTWARE.
83
-
84
-
85
- [***] PythonQwt License Agreement for code translated from C++ (Qwt License)
86
-
87
- Copyright (c) 2002 Uwe Rathmann, for the original C++ code
88
- Copyright (c) 2015 Pierre Raybaut, for the Python translation and optimization
89
-
90
-
91
- Qwt License
92
- Version 1.0, January 1, 2003
93
-
94
- The Qwt library and included programs are provided under the terms
95
- of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) with the following
96
- exceptions:
97
-
98
- 1. Widgets that are subclassed from Qwt widgets do not
99
- constitute a derivative work.
100
-
101
- 2. Static linking of applications and widgets to the
102
- Qwt library does not constitute a derivative work
103
- and does not require the author to provide source
104
- code for the application or widget, use the shared
105
- Qwt libraries, or link their applications or
106
- widgets against a user-supplied version of Qwt.
107
-
108
- If you link the application or widget to a modified
109
- version of Qwt, then the changes to Qwt must be
110
- provided under the terms of the LGPL in sections
111
- 1, 2, and 4.
112
-
113
- 3. You do not have to provide a copy of the Qwt license
114
- with programs that are linked to the Qwt library, nor
115
- do you have to identify the Qwt license in your
116
- program or documentation as required by section 6
117
- of the LGPL.
118
-
119
-
120
- However, programs must still identify their use of Qwt.
121
- The following example statement can be included in user
122
- documentation to satisfy this requirement:
123
-
124
- [program/widget] is based in part on the work of
125
- the Qwt project (http://qwt.sf.net).
126
-
127
- ----------------------------------------------------------------------
128
-
129
-
130
- GNU LESSER GENERAL PUBLIC LICENSE
131
- Version 2.1, February 1999
132
-
133
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
134
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
135
- Everyone is permitted to copy and distribute verbatim copies
136
- of this license document, but changing it is not allowed.
137
-
138
- [This is the first released version of the Lesser GPL. It also counts
139
- as the successor of the GNU Library Public License, version 2, hence
140
- the version number 2.1.]
141
-
142
- Preamble
143
-
144
- The licenses for most software are designed to take away your
145
- freedom to share and change it. By contrast, the GNU General Public
146
- Licenses are intended to guarantee your freedom to share and change
147
- free software--to make sure the software is free for all its users.
148
-
149
- This license, the Lesser General Public License, applies to some
150
- specially designated software packages--typically libraries--of the
151
- Free Software Foundation and other authors who decide to use it. You
152
- can use it too, but we suggest you first think carefully about whether
153
- this license or the ordinary General Public License is the better
154
- strategy to use in any particular case, based on the explanations below.
155
-
156
- When we speak of free software, we are referring to freedom of use,
157
- not price. Our General Public Licenses are designed to make sure that
158
- you have the freedom to distribute copies of free software (and charge
159
- for this service if you wish); that you receive source code or can get
160
- it if you want it; that you can change the software and use pieces of
161
- it in new free programs; and that you are informed that you can do
162
- these things.
163
-
164
- To protect your rights, we need to make restrictions that forbid
165
- distributors to deny you these rights or to ask you to surrender these
166
- rights. These restrictions translate to certain responsibilities for
167
- you if you distribute copies of the library or if you modify it.
168
-
169
- For example, if you distribute copies of the library, whether gratis
170
- or for a fee, you must give the recipients all the rights that we gave
171
- you. You must make sure that they, too, receive or can get the source
172
- code. If you link other code with the library, you must provide
173
- complete object files to the recipients, so that they can relink them
174
- with the library after making changes to the library and recompiling
175
- it. And you must show them these terms so they know their rights.
176
-
177
- We protect your rights with a two-step method: (1) we copyright the
178
- library, and (2) we offer you this license, which gives you legal
179
- permission to copy, distribute and/or modify the library.
180
-
181
- To protect each distributor, we want to make it very clear that
182
- there is no warranty for the free library. Also, if the library is
183
- modified by someone else and passed on, the recipients should know
184
- that what they have is not the original version, so that the original
185
- author's reputation will not be affected by problems that might be
186
- introduced by others.
187
-
188
- Finally, software patents pose a constant threat to the existence of
189
- any free program. We wish to make sure that a company cannot
190
- effectively restrict the users of a free program by obtaining a
191
- restrictive license from a patent holder. Therefore, we insist that
192
- any patent license obtained for a version of the library must be
193
- consistent with the full freedom of use specified in this license.
194
-
195
- Most GNU software, including some libraries, is covered by the
196
- ordinary GNU General Public License. This license, the GNU Lesser
197
- General Public License, applies to certain designated libraries, and
198
- is quite different from the ordinary General Public License. We use
199
- this license for certain libraries in order to permit linking those
200
- libraries into non-free programs.
201
-
202
- When a program is linked with a library, whether statically or using
203
- a shared library, the combination of the two is legally speaking a
204
- combined work, a derivative of the original library. The ordinary
205
- General Public License therefore permits such linking only if the
206
- entire combination fits its criteria of freedom. The Lesser General
207
- Public License permits more lax criteria for linking other code with
208
- the library.
209
-
210
- We call this license the "Lesser" General Public License because it
211
- does Less to protect the user's freedom than the ordinary General
212
- Public License. It also provides other free software developers Less
213
- of an advantage over competing non-free programs. These disadvantages
214
- are the reason we use the ordinary General Public License for many
215
- libraries. However, the Lesser license provides advantages in certain
216
- special circumstances.
217
-
218
- For example, on rare occasions, there may be a special need to
219
- encourage the widest possible use of a certain library, so that it becomes
220
- a de-facto standard. To achieve this, non-free programs must be
221
- allowed to use the library. A more frequent case is that a free
222
- library does the same job as widely used non-free libraries. In this
223
- case, there is little to gain by limiting the free library to free
224
- software only, so we use the Lesser General Public License.
225
-
226
- In other cases, permission to use a particular library in non-free
227
- programs enables a greater number of people to use a large body of
228
- free software. For example, permission to use the GNU C Library in
229
- non-free programs enables many more people to use the whole GNU
230
- operating system, as well as its variant, the GNU/Linux operating
231
- system.
232
-
233
- Although the Lesser General Public License is Less protective of the
234
- users' freedom, it does ensure that the user of a program that is
235
- linked with the Library has the freedom and the wherewithal to run
236
- that program using a modified version of the Library.
237
-
238
- The precise terms and conditions for copying, distribution and
239
- modification follow. Pay close attention to the difference between a
240
- "work based on the library" and a "work that uses the library". The
241
- former contains code derived from the library, whereas the latter must
242
- be combined with the library in order to run.
243
-
244
- GNU LESSER GENERAL PUBLIC LICENSE
245
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
246
-
247
- 0. This License Agreement applies to any software library or other
248
- program which contains a notice placed by the copyright holder or
249
- other authorized party saying it may be distributed under the terms of
250
- this Lesser General Public License (also called "this License").
251
- Each licensee is addressed as "you".
252
-
253
- A "library" means a collection of software functions and/or data
254
- prepared so as to be conveniently linked with application programs
255
- (which use some of those functions and data) to form executables.
256
-
257
- The "Library", below, refers to any such software library or work
258
- which has been distributed under these terms. A "work based on the
259
- Library" means either the Library or any derivative work under
260
- copyright law: that is to say, a work containing the Library or a
261
- portion of it, either verbatim or with modifications and/or translated
262
- straightforwardly into another language. (Hereinafter, translation is
263
- included without limitation in the term "modification".)
264
-
265
- "Source code" for a work means the preferred form of the work for
266
- making modifications to it. For a library, complete source code means
267
- all the source code for all modules it contains, plus any associated
268
- interface definition files, plus the scripts used to control compilation
269
- and installation of the library.
270
-
271
- Activities other than copying, distribution and modification are not
272
- covered by this License; they are outside its scope. The act of
273
- running a program using the Library is not restricted, and output from
274
- such a program is covered only if its contents constitute a work based
275
- on the Library (independent of the use of the Library in a tool for
276
- writing it). Whether that is true depends on what the Library does
277
- and what the program that uses the Library does.
278
-
279
- 1. You may copy and distribute verbatim copies of the Library's
280
- complete source code as you receive it, in any medium, provided that
281
- you conspicuously and appropriately publish on each copy an
282
- appropriate copyright notice and disclaimer of warranty; keep intact
283
- all the notices that refer to this License and to the absence of any
284
- warranty; and distribute a copy of this License along with the
285
- Library.
286
-
287
- You may charge a fee for the physical act of transferring a copy,
288
- and you may at your option offer warranty protection in exchange for a
289
- fee.
290
-
291
- 2. You may modify your copy or copies of the Library or any portion
292
- of it, thus forming a work based on the Library, and copy and
293
- distribute such modifications or work under the terms of Section 1
294
- above, provided that you also meet all of these conditions:
295
-
296
- a) The modified work must itself be a software library.
297
-
298
- b) You must cause the files modified to carry prominent notices
299
- stating that you changed the files and the date of any change.
300
-
301
- c) You must cause the whole of the work to be licensed at no
302
- charge to all third parties under the terms of this License.
303
-
304
- d) If a facility in the modified Library refers to a function or a
305
- table of data to be supplied by an application program that uses
306
- the facility, other than as an argument passed when the facility
307
- is invoked, then you must make a good faith effort to ensure that,
308
- in the event an application does not supply such function or
309
- table, the facility still operates, and performs whatever part of
310
- its purpose remains meaningful.
311
-
312
- (For example, a function in a library to compute square roots has
313
- a purpose that is entirely well-defined independent of the
314
- application. Therefore, Subsection 2d requires that any
315
- application-supplied function or table used by this function must
316
- be optional: if the application does not supply it, the square
317
- root function must still compute square roots.)
318
-
319
- These requirements apply to the modified work as a whole. If
320
- identifiable sections of that work are not derived from the Library,
321
- and can be reasonably considered independent and separate works in
322
- themselves, then this License, and its terms, do not apply to those
323
- sections when you distribute them as separate works. But when you
324
- distribute the same sections as part of a whole which is a work based
325
- on the Library, the distribution of the whole must be on the terms of
326
- this License, whose permissions for other licensees extend to the
327
- entire whole, and thus to each and every part regardless of who wrote
328
- it.
329
-
330
- Thus, it is not the intent of this section to claim rights or contest
331
- your rights to work written entirely by you; rather, the intent is to
332
- exercise the right to control the distribution of derivative or
333
- collective works based on the Library.
334
-
335
- In addition, mere aggregation of another work not based on the Library
336
- with the Library (or with a work based on the Library) on a volume of
337
- a storage or distribution medium does not bring the other work under
338
- the scope of this License.
339
-
340
- 3. You may opt to apply the terms of the ordinary GNU General Public
341
- License instead of this License to a given copy of the Library. To do
342
- this, you must alter all the notices that refer to this License, so
343
- that they refer to the ordinary GNU General Public License, version 2,
344
- instead of to this License. (If a newer version than version 2 of the
345
- ordinary GNU General Public License has appeared, then you can specify
346
- that version instead if you wish.) Do not make any other change in
347
- these notices.
348
-
349
- Once this change is made in a given copy, it is irreversible for
350
- that copy, so the ordinary GNU General Public License applies to all
351
- subsequent copies and derivative works made from that copy.
352
-
353
- This option is useful when you wish to copy part of the code of
354
- the Library into a program that is not a library.
355
-
356
- 4. You may copy and distribute the Library (or a portion or
357
- derivative of it, under Section 2) in object code or executable form
358
- under the terms of Sections 1 and 2 above provided that you accompany
359
- it with the complete corresponding machine-readable source code, which
360
- must be distributed under the terms of Sections 1 and 2 above on a
361
- medium customarily used for software interchange.
362
-
363
- If distribution of object code is made by offering access to copy
364
- from a designated place, then offering equivalent access to copy the
365
- source code from the same place satisfies the requirement to
366
- distribute the source code, even though third parties are not
367
- compelled to copy the source along with the object code.
368
-
369
- 5. A program that contains no derivative of any portion of the
370
- Library, but is designed to work with the Library by being compiled or
371
- linked with it, is called a "work that uses the Library". Such a
372
- work, in isolation, is not a derivative work of the Library, and
373
- therefore falls outside the scope of this License.
374
-
375
- However, linking a "work that uses the Library" with the Library
376
- creates an executable that is a derivative of the Library (because it
377
- contains portions of the Library), rather than a "work that uses the
378
- library". The executable is therefore covered by this License.
379
- Section 6 states terms for distribution of such executables.
380
-
381
- When a "work that uses the Library" uses material from a header file
382
- that is part of the Library, the object code for the work may be a
383
- derivative work of the Library even though the source code is not.
384
- Whether this is true is especially significant if the work can be
385
- linked without the Library, or if the work is itself a library. The
386
- threshold for this to be true is not precisely defined by law.
387
-
388
- If such an object file uses only numerical parameters, data
389
- structure layouts and accessors, and small macros and small inline
390
- functions (ten lines or less in length), then the use of the object
391
- file is unrestricted, regardless of whether it is legally a derivative
392
- work. (Executables containing this object code plus portions of the
393
- Library will still fall under Section 6.)
394
-
395
- Otherwise, if the work is a derivative of the Library, you may
396
- distribute the object code for the work under the terms of Section 6.
397
- Any executables containing that work also fall under Section 6,
398
- whether or not they are linked directly with the Library itself.
399
-
400
- 6. As an exception to the Sections above, you may also combine or
401
- link a "work that uses the Library" with the Library to produce a
402
- work containing portions of the Library, and distribute that work
403
- under terms of your choice, provided that the terms permit
404
- modification of the work for the customer's own use and reverse
405
- engineering for debugging such modifications.
406
-
407
- You must give prominent notice with each copy of the work that the
408
- Library is used in it and that the Library and its use are covered by
409
- this License. You must supply a copy of this License. If the work
410
- during execution displays copyright notices, you must include the
411
- copyright notice for the Library among them, as well as a reference
412
- directing the user to the copy of this License. Also, you must do one
413
- of these things:
414
-
415
- a) Accompany the work with the complete corresponding
416
- machine-readable source code for the Library including whatever
417
- changes were used in the work (which must be distributed under
418
- Sections 1 and 2 above); and, if the work is an executable linked
419
- with the Library, with the complete machine-readable "work that
420
- uses the Library", as object code and/or source code, so that the
421
- user can modify the Library and then relink to produce a modified
422
- executable containing the modified Library. (It is understood
423
- that the user who changes the contents of definitions files in the
424
- Library will not necessarily be able to recompile the application
425
- to use the modified definitions.)
426
-
427
- b) Use a suitable shared library mechanism for linking with the
428
- Library. A suitable mechanism is one that (1) uses at run time a
429
- copy of the library already present on the user's computer system,
430
- rather than copying library functions into the executable, and (2)
431
- will operate properly with a modified version of the library, if
432
- the user installs one, as long as the modified version is
433
- interface-compatible with the version that the work was made with.
434
-
435
- c) Accompany the work with a written offer, valid for at
436
- least three years, to give the same user the materials
437
- specified in Subsection 6a, above, for a charge no more
438
- than the cost of performing this distribution.
439
-
440
- d) If distribution of the work is made by offering access to copy
441
- from a designated place, offer equivalent access to copy the above
442
- specified materials from the same place.
443
-
444
- e) Verify that the user has already received a copy of these
445
- materials or that you have already sent this user a copy.
446
-
447
- For an executable, the required form of the "work that uses the
448
- Library" must include any data and utility programs needed for
449
- reproducing the executable from it. However, as a special exception,
450
- the materials to be distributed need not include anything that is
451
- normally distributed (in either source or binary form) with the major
452
- components (compiler, kernel, and so on) of the operating system on
453
- which the executable runs, unless that component itself accompanies
454
- the executable.
455
-
456
- It may happen that this requirement contradicts the license
457
- restrictions of other proprietary libraries that do not normally
458
- accompany the operating system. Such a contradiction means you cannot
459
- use both them and the Library together in an executable that you
460
- distribute.
461
-
462
- 7. You may place library facilities that are a work based on the
463
- Library side-by-side in a single library together with other library
464
- facilities not covered by this License, and distribute such a combined
465
- library, provided that the separate distribution of the work based on
466
- the Library and of the other library facilities is otherwise
467
- permitted, and provided that you do these two things:
468
-
469
- a) Accompany the combined library with a copy of the same work
470
- based on the Library, uncombined with any other library
471
- facilities. This must be distributed under the terms of the
472
- Sections above.
473
-
474
- b) Give prominent notice with the combined library of the fact
475
- that part of it is a work based on the Library, and explaining
476
- where to find the accompanying uncombined form of the same work.
477
-
478
- 8. You may not copy, modify, sublicense, link with, or distribute
479
- the Library except as expressly provided under this License. Any
480
- attempt otherwise to copy, modify, sublicense, link with, or
481
- distribute the Library is void, and will automatically terminate your
482
- rights under this License. However, parties who have received copies,
483
- or rights, from you under this License will not have their licenses
484
- terminated so long as such parties remain in full compliance.
485
-
486
- 9. You are not required to accept this License, since you have not
487
- signed it. However, nothing else grants you permission to modify or
488
- distribute the Library or its derivative works. These actions are
489
- prohibited by law if you do not accept this License. Therefore, by
490
- modifying or distributing the Library (or any work based on the
491
- Library), you indicate your acceptance of this License to do so, and
492
- all its terms and conditions for copying, distributing or modifying
493
- the Library or works based on it.
494
-
495
- 10. Each time you redistribute the Library (or any work based on the
496
- Library), the recipient automatically receives a license from the
497
- original licensor to copy, distribute, link with or modify the Library
498
- subject to these terms and conditions. You may not impose any further
499
- restrictions on the recipients' exercise of the rights granted herein.
500
- You are not responsible for enforcing compliance by third parties with
501
- this License.
502
-
503
- 11. If, as a consequence of a court judgment or allegation of patent
504
- infringement or for any other reason (not limited to patent issues),
505
- conditions are imposed on you (whether by court order, agreement or
506
- otherwise) that contradict the conditions of this License, they do not
507
- excuse you from the conditions of this License. If you cannot
508
- distribute so as to satisfy simultaneously your obligations under this
509
- License and any other pertinent obligations, then as a consequence you
510
- may not distribute the Library at all. For example, if a patent
511
- license would not permit royalty-free redistribution of the Library by
512
- all those who receive copies directly or indirectly through you, then
513
- the only way you could satisfy both it and this License would be to
514
- refrain entirely from distribution of the Library.
515
-
516
- If any portion of this section is held invalid or unenforceable under any
517
- particular circumstance, the balance of the section is intended to apply,
518
- and the section as a whole is intended to apply in other circumstances.
519
-
520
- It is not the purpose of this section to induce you to infringe any
521
- patents or other property right claims or to contest validity of any
522
- such claims; this section has the sole purpose of protecting the
523
- integrity of the free software distribution system which is
524
- implemented by public license practices. Many people have made
525
- generous contributions to the wide range of software distributed
526
- through that system in reliance on consistent application of that
527
- system; it is up to the author/donor to decide if he or she is willing
528
- to distribute software through any other system and a licensee cannot
529
- impose that choice.
530
-
531
- This section is intended to make thoroughly clear what is believed to
532
- be a consequence of the rest of this License.
533
-
534
- 12. If the distribution and/or use of the Library is restricted in
535
- certain countries either by patents or by copyrighted interfaces, the
536
- original copyright holder who places the Library under this License may add
537
- an explicit geographical distribution limitation excluding those countries,
538
- so that distribution is permitted only in or among countries not thus
539
- excluded. In such case, this License incorporates the limitation as if
540
- written in the body of this License.
541
-
542
- 13. The Free Software Foundation may publish revised and/or new
543
- versions of the Lesser General Public License from time to time.
544
- Such new versions will be similar in spirit to the present version,
545
- but may differ in detail to address new problems or concerns.
546
-
547
- Each version is given a distinguishing version number. If the Library
548
- specifies a version number of this License which applies to it and
549
- "any later version", you have the option of following the terms and
550
- conditions either of that version or of any later version published by
551
- the Free Software Foundation. If the Library does not specify a
552
- license version number, you may choose any version ever published by
553
- the Free Software Foundation.
554
-
555
- 14. If you wish to incorporate parts of the Library into other free
556
- programs whose distribution conditions are incompatible with these,
557
- write to the author to ask for permission. For software which is
558
- copyrighted by the Free Software Foundation, write to the Free
559
- Software Foundation; we sometimes make exceptions for this. Our
560
- decision will be guided by the two goals of preserving the free status
561
- of all derivatives of our free software and of promoting the sharing
562
- and reuse of software generally.
563
-
564
- NO WARRANTY
565
-
566
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
567
- WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
568
- EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
569
- OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
570
- KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
571
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
572
- PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
573
- LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
574
- THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
575
-
576
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
577
- WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
578
- AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
579
- FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
580
- CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
581
- LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
582
- RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
583
- FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
584
- SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
585
- DAMAGES.
586
-
587
- END OF TERMS AND CONDITIONS
588
-
589
- How to Apply These Terms to Your New Libraries
590
-
591
- If you develop a new library, and you want it to be of the greatest
592
- possible use to the public, we recommend making it free software that
593
- everyone can redistribute and change. You can do so by permitting
594
- redistribution under these terms (or, alternatively, under the terms of the
595
- ordinary General Public License).
596
-
597
- To apply these terms, attach the following notices to the library. It is
598
- safest to attach them to the start of each source file to most effectively
599
- convey the exclusion of warranty; and each file should have at least the
600
- "copyright" line and a pointer to where the full notice is found.
601
-
602
- <one line to give the library's name and a brief idea of what it does.>
603
- Copyright (C) <year> <name of author>
604
-
605
- This library is free software; you can redistribute it and/or
606
- modify it under the terms of the GNU Lesser General Public
607
- License as published by the Free Software Foundation; either
608
- version 2.1 of the License, or (at your option) any later version.
609
-
610
- This library is distributed in the hope that it will be useful,
611
- but WITHOUT ANY WARRANTY; without even the implied warranty of
612
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
613
- Lesser General Public License for more details.
614
-
615
- You should have received a copy of the GNU Lesser General Public
616
- License along with this library; if not, write to the Free Software
617
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
618
-
619
- Also add information on how to contact you by electronic and paper mail.
620
-
621
- You should also get your employer (if you work as a programmer) or your
622
- school, if any, to sign a "copyright disclaimer" for the library, if
623
- necessary. Here is a sample; alter the names:
624
-
625
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
626
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
627
-
628
- <signature of Ty Coon>, 1 April 1990
629
- Ty Coon, President of Vice
630
-
631
- That's all there is to it!
632
-
633
-
634
- [****] PyQwt License
635
-
636
- Copyright (C) 2003-2009 Gerard Vermeulen, for the original PyQwt code
637
- Copyright (c) 2015 Pierre Raybaut, for the PyQt5/PySide port and further
638
- developments (e.g. ported to PythonQwt API)
639
-
640
- PyQwt LICENSE
641
- Version 3, March 2006
642
-
643
- PyQwt is free software; you can redistribute it and/or modify
644
- it under the terms of the GNU General Public License as published by
645
- the Free Software Foundation; either version 2 of the License, or
646
- (at your option) any later version.
647
-
648
- PyQwt is distributed in the hope that it will be useful,
649
- but WITHOUT ANY WARRANTY; without even the implied warranty of
650
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
651
- GNU General Public License for more details.
652
-
653
- You should have received a copy of the GNU General Public License along
654
- with PyQwt; if not, write to the Free Software Foundation, Inc.,
655
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
656
-
657
- In addition, as a special exception, Gerard Vermeulen gives permission
658
- to link PyQwt dynamically with non-free versions of Qt and PyQt,
659
- and to distribute PyQwt in this form, provided that equally powerful
660
- versions of Qt and PyQt have been released under the terms of the GNU
661
- General Public License.
662
-
663
- If PyQwt is dynamically linked with non-free versions of Qt and PyQt,
664
- PyQwt becomes a free plug-in for a non-free program.
665
-
666
- Project-URL: Homepage, https://github.com/PlotPyStack/PythonQwt/
667
- Project-URL: Documentation, https://PythonQwt.readthedocs.io/en/latest/
668
- Classifier: Topic :: Scientific/Engineering
669
- Classifier: Topic :: Scientific/Engineering :: Visualization
670
- Classifier: Topic :: Software Development :: Widget Sets
671
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
672
- Classifier: Topic :: Utilities
673
- Classifier: Topic :: Scientific/Engineering
674
- Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
675
- Classifier: Topic :: Software Development :: User Interfaces
676
- Classifier: Operating System :: MacOS
677
- Classifier: Operating System :: Microsoft :: Windows
678
- Classifier: Operating System :: OS Independent
679
- Classifier: Operating System :: POSIX
680
- Classifier: Operating System :: Unix
681
- Classifier: Programming Language :: Python :: 3.8
682
- Classifier: Programming Language :: Python :: 3.9
683
- Classifier: Programming Language :: Python :: 3.10
684
- Classifier: Programming Language :: Python :: 3.11
685
- Classifier: Programming Language :: Python :: 3.12
686
- Requires-Python: <4,>=3.8
687
- Description-Content-Type: text/markdown
688
- License-File: LICENSE
689
- Requires-Dist: NumPy>=1.21
690
- Requires-Dist: QtPy>=1.9
691
- Provides-Extra: dev
692
- Requires-Dist: ruff; extra == "dev"
693
- Requires-Dist: pylint; extra == "dev"
694
- Requires-Dist: Coverage; extra == "dev"
695
- Provides-Extra: doc
696
- Requires-Dist: PyQt5; extra == "doc"
697
- Requires-Dist: sphinx>6; extra == "doc"
698
- Requires-Dist: python-docs-theme; extra == "doc"
699
- Provides-Extra: test
700
- Requires-Dist: pytest; extra == "test"
701
- Requires-Dist: pytest-xvfb; extra == "test"
702
-
703
- # PythonQwt: Qt plotting widgets for Python
704
-
705
- [![license](https://img.shields.io/pypi/l/PythonQwt.svg)](./LICENSE)
706
- [![pypi version](https://img.shields.io/pypi/v/PythonQwt.svg)](https://pypi.org/project/PythonQwt/)
707
- [![PyPI status](https://img.shields.io/pypi/status/PythonQwt.svg)](https://github.com/PlotPyStack/PythonQwt)
708
- [![PyPI pyversions](https://img.shields.io/pypi/pyversions/PythonQwt.svg)](https://pypi.python.org/pypi/PythonQwt/)
709
- [![download count](https://img.shields.io/conda/dn/conda-forge/PythonQwt.svg)](https://www.anaconda.com/download/)
710
- [![Documentation Status](https://readthedocs.org/projects/pythonqwt/badge/?version=latest)](https://pythonqwt.readthedocs.io/en/latest/?badge=latest)
711
-
712
- ℹ️ Created in 2014 by Pierre Raybaut and maintained by the [PlotPyStack](https://github.com/PlotPyStack) organization.
713
-
714
- ![PythonQwt Test Launcher](https://raw.githubusercontent.com/PlotPyStack/PythonQwt/master/qwt/tests/data/testlauncher.png)
715
-
716
- The `PythonQwt` project was initiated to solve -at least temporarily- the
717
- obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is
718
- no longer maintained. The idea was to translate the original Qwt C++ code to
719
- Python and then to optimize some parts of the code by writing new modules
720
- based on NumPy and other libraries.
721
-
722
- The `PythonQwt` package consists of a single Python package named `qwt` and
723
- of a few other files (examples, doc, ...).
724
-
725
- 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.
726
-
727
- ## Sample
728
-
729
- ```python
730
- import qwt
731
- import numpy as np
732
-
733
- app = qwt.qt.QtGui.QApplication([])
734
-
735
- # Create plot widget
736
- plot = qwt.QwtPlot("Trigonometric functions")
737
- plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
738
-
739
- # Create two curves and attach them to plot
740
- x = np.linspace(-10, 10, 500)
741
- qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
742
- qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
743
-
744
- # Resize and show plot
745
- plot.resize(600, 300)
746
- plot.show()
747
-
748
- app.exec_()
749
- ```
750
-
751
- ![Simple plot example](doc/_static/QwtPlot_example.png)
752
-
753
- ## Examples (tests)
754
-
755
- The GUI-based test launcher may be executed from Python:
756
-
757
- ```python
758
- from qwt import tests
759
- tests.run()
760
- ```
761
-
762
- or from the command line:
763
-
764
- ```bash
765
- PythonQwt
766
- ```
767
-
768
- Tests may also be executed in unattended mode:
769
-
770
- ```bash
771
- PythonQwt-tests --mode unattended
772
- ```
773
-
774
- ## Overview
775
-
776
- The `qwt` package is a pure Python implementation of `Qwt` C++ library with
777
- the following limitations.
778
-
779
- The following `Qwt` classes won't be reimplemented in `qwt` because more
780
- powerful features already exist in `guiqwt`: `QwtPlotZoomer`,
781
- `QwtCounter`, `QwtEventPattern`, `QwtPicker`, `QwtPlotPicker`.
782
-
783
- Only the following plot items are currently implemented in `qwt` (the only
784
- plot items needed by `guiqwt`): `QwtPlotItem` (base class), `QwtPlotItem`,
785
- `QwtPlotMarker`, `QwtPlotSeriesItem` and `QwtPlotCurve`.
786
-
787
- See "Overview" section in [documentation](https://pythonqwt.readthedocs.io/en/latest/)
788
- for more details on API limitations when comparing to Qwt.
789
-
790
- ## Roadmap
791
-
792
- The `qwt` package short-term roadmap is the following:
793
-
794
- - [X] Drop support for PyQt4 and PySide2
795
- - [X] Drop support for Python < 3.8
796
- - [X] Replace `setup.py` by `pyproject.toml`, using `setuptools` (e.g. see `guidata`)
797
- - [ ] Add more unit tests: the ultimate goal is to reach 90% code coverage
798
-
799
- ## Dependencies
800
-
801
- ### Requirements
802
-
803
- - Python >=3.8
804
- - PyQt5, PyQt6 or PySide6
805
- - QtPy >= 1.3
806
- - NumPy >= 1.5
807
-
808
- ### Optional dependencies
809
-
810
- - coverage, pytest (for unit tests)
811
- - sphinx (for documentation generation)
812
-
813
- ## Installation
814
-
815
- From the source package:
816
-
817
- ```bash
818
- python -m build
819
- ```
820
-
821
- ## Copyrights
822
-
823
- ### Main code base
824
-
825
- - Copyright © 2002 Uwe Rathmann, for the original Qwt C++ code
826
- - Copyright © 2015 Pierre Raybaut, for the Qwt C++ to Python translation and
827
- optimization
828
- - Copyright © 2015 Pierre Raybaut, for the PythonQwt specific and exclusive
829
- Python material
830
-
831
- ### PyQt, PySide and Python2/Python3 compatibility modules
832
-
833
- - Copyright © 2009-2013 Pierre Raybaut
834
- - Copyright © 2013-2015 The Spyder Development Team
835
-
836
- ### Some examples
837
-
838
- - Copyright © 2003-2009 Gerard Vermeulen, for the original PyQwt code
839
- - Copyright © 2015 Pierre Raybaut, for the PyQt5/PySide port and further
840
- developments (e.g. ported to PythonQwt API)
841
-
842
- ## License
843
-
844
- The `qwt` Python package was partly (>95%) translated from Qwt C++ library:
845
- the associated code is distributed under the terms of the LGPL license. The
846
- rest of the code was either wrote from scratch or strongly inspired from MIT
847
- licensed third-party software.
848
-
849
- See included [LICENSE](LICENSE) file for more details about licensing terms.
1
+ Metadata-Version: 2.1
2
+ Name: PythonQwt
3
+ Version: 0.14.0
4
+ Summary: Qt plotting widgets for Python
5
+ Author-email: Pierre Raybaut <pierre.raybaut@gmail.com>
6
+ License: PythonQwt License Agreement
7
+ ---------------------------
8
+
9
+ [1] Software licensed under the terms of Qwt License
10
+
11
+ The essential part of the code was translated to Python from Qwt C++ library
12
+ and is thus licensed under the terms of the LGPL License from which the Qwt
13
+ License 1.0 is derived from (see [***] for more details).
14
+
15
+ [2] Software licensed under the terms of the MIT license
16
+
17
+ Independent Python modules purely based on new code (no contamination from the
18
+ LGPL license inherited from the Qwt Project) are distributed under the terms
19
+ of the MIT License (see [*] and [**]).
20
+
21
+ [3] Software licensed under the terms of PyQwt License
22
+
23
+ Some files under the "tests" subfolder of the main Python package directory
24
+ were derived from PyQwt PyQt4 examples and are thus distributed under the
25
+ terms of the GPL License from which the PyQwt License 1.0 is derived from
26
+ (see [****] for more details).
27
+
28
+
29
+ [*] PythonQwt License Agreement for new and exclusive Python material (MIT)
30
+
31
+ Copyright (c) 2015 Pierre Raybaut
32
+
33
+ Permission is hereby granted, free of charge, to any person
34
+ obtaining a copy of this software and associated documentation
35
+ files (the "Software"), to deal in the Software without
36
+ restriction, including without limitation the rights to use,
37
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ copies of the Software, and to permit persons to whom the
39
+ Software is furnished to do so, subject to the following
40
+ conditions:
41
+
42
+ The above copyright notice and this permission notice shall be
43
+ included in all copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
46
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
47
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
48
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
49
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
50
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
51
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
52
+ OTHER DEALINGS IN THE SOFTWARE.
53
+
54
+
55
+ [**] Spyder License Agreement
56
+
57
+ Spyder License Agreement (MIT License)
58
+ --------------------------------------
59
+
60
+ Copyright (c) 2009-2013 Pierre Raybaut
61
+ Copyright (c) 2013-2015 The Spyder Development Team
62
+
63
+ Permission is hereby granted, free of charge, to any person
64
+ obtaining a copy of this software and associated documentation
65
+ files (the "Software"), to deal in the Software without
66
+ restriction, including without limitation the rights to use,
67
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
68
+ copies of the Software, and to permit persons to whom the
69
+ Software is furnished to do so, subject to the following
70
+ conditions:
71
+
72
+ The above copyright notice and this permission notice shall be
73
+ included in all copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
76
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
77
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
78
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
79
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
80
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
81
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
82
+ OTHER DEALINGS IN THE SOFTWARE.
83
+
84
+
85
+ [***] PythonQwt License Agreement for code translated from C++ (Qwt License)
86
+
87
+ Copyright (c) 2002 Uwe Rathmann, for the original C++ code
88
+ Copyright (c) 2015 Pierre Raybaut, for the Python translation and optimization
89
+
90
+
91
+ Qwt License
92
+ Version 1.0, January 1, 2003
93
+
94
+ The Qwt library and included programs are provided under the terms
95
+ of the GNU LESSER GENERAL PUBLIC LICENSE (LGPL) with the following
96
+ exceptions:
97
+
98
+ 1. Widgets that are subclassed from Qwt widgets do not
99
+ constitute a derivative work.
100
+
101
+ 2. Static linking of applications and widgets to the
102
+ Qwt library does not constitute a derivative work
103
+ and does not require the author to provide source
104
+ code for the application or widget, use the shared
105
+ Qwt libraries, or link their applications or
106
+ widgets against a user-supplied version of Qwt.
107
+
108
+ If you link the application or widget to a modified
109
+ version of Qwt, then the changes to Qwt must be
110
+ provided under the terms of the LGPL in sections
111
+ 1, 2, and 4.
112
+
113
+ 3. You do not have to provide a copy of the Qwt license
114
+ with programs that are linked to the Qwt library, nor
115
+ do you have to identify the Qwt license in your
116
+ program or documentation as required by section 6
117
+ of the LGPL.
118
+
119
+
120
+ However, programs must still identify their use of Qwt.
121
+ The following example statement can be included in user
122
+ documentation to satisfy this requirement:
123
+
124
+ [program/widget] is based in part on the work of
125
+ the Qwt project (http://qwt.sf.net).
126
+
127
+ ----------------------------------------------------------------------
128
+
129
+
130
+ GNU LESSER GENERAL PUBLIC LICENSE
131
+ Version 2.1, February 1999
132
+
133
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
134
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
135
+ Everyone is permitted to copy and distribute verbatim copies
136
+ of this license document, but changing it is not allowed.
137
+
138
+ [This is the first released version of the Lesser GPL. It also counts
139
+ as the successor of the GNU Library Public License, version 2, hence
140
+ the version number 2.1.]
141
+
142
+ Preamble
143
+
144
+ The licenses for most software are designed to take away your
145
+ freedom to share and change it. By contrast, the GNU General Public
146
+ Licenses are intended to guarantee your freedom to share and change
147
+ free software--to make sure the software is free for all its users.
148
+
149
+ This license, the Lesser General Public License, applies to some
150
+ specially designated software packages--typically libraries--of the
151
+ Free Software Foundation and other authors who decide to use it. You
152
+ can use it too, but we suggest you first think carefully about whether
153
+ this license or the ordinary General Public License is the better
154
+ strategy to use in any particular case, based on the explanations below.
155
+
156
+ When we speak of free software, we are referring to freedom of use,
157
+ not price. Our General Public Licenses are designed to make sure that
158
+ you have the freedom to distribute copies of free software (and charge
159
+ for this service if you wish); that you receive source code or can get
160
+ it if you want it; that you can change the software and use pieces of
161
+ it in new free programs; and that you are informed that you can do
162
+ these things.
163
+
164
+ To protect your rights, we need to make restrictions that forbid
165
+ distributors to deny you these rights or to ask you to surrender these
166
+ rights. These restrictions translate to certain responsibilities for
167
+ you if you distribute copies of the library or if you modify it.
168
+
169
+ For example, if you distribute copies of the library, whether gratis
170
+ or for a fee, you must give the recipients all the rights that we gave
171
+ you. You must make sure that they, too, receive or can get the source
172
+ code. If you link other code with the library, you must provide
173
+ complete object files to the recipients, so that they can relink them
174
+ with the library after making changes to the library and recompiling
175
+ it. And you must show them these terms so they know their rights.
176
+
177
+ We protect your rights with a two-step method: (1) we copyright the
178
+ library, and (2) we offer you this license, which gives you legal
179
+ permission to copy, distribute and/or modify the library.
180
+
181
+ To protect each distributor, we want to make it very clear that
182
+ there is no warranty for the free library. Also, if the library is
183
+ modified by someone else and passed on, the recipients should know
184
+ that what they have is not the original version, so that the original
185
+ author's reputation will not be affected by problems that might be
186
+ introduced by others.
187
+
188
+ Finally, software patents pose a constant threat to the existence of
189
+ any free program. We wish to make sure that a company cannot
190
+ effectively restrict the users of a free program by obtaining a
191
+ restrictive license from a patent holder. Therefore, we insist that
192
+ any patent license obtained for a version of the library must be
193
+ consistent with the full freedom of use specified in this license.
194
+
195
+ Most GNU software, including some libraries, is covered by the
196
+ ordinary GNU General Public License. This license, the GNU Lesser
197
+ General Public License, applies to certain designated libraries, and
198
+ is quite different from the ordinary General Public License. We use
199
+ this license for certain libraries in order to permit linking those
200
+ libraries into non-free programs.
201
+
202
+ When a program is linked with a library, whether statically or using
203
+ a shared library, the combination of the two is legally speaking a
204
+ combined work, a derivative of the original library. The ordinary
205
+ General Public License therefore permits such linking only if the
206
+ entire combination fits its criteria of freedom. The Lesser General
207
+ Public License permits more lax criteria for linking other code with
208
+ the library.
209
+
210
+ We call this license the "Lesser" General Public License because it
211
+ does Less to protect the user's freedom than the ordinary General
212
+ Public License. It also provides other free software developers Less
213
+ of an advantage over competing non-free programs. These disadvantages
214
+ are the reason we use the ordinary General Public License for many
215
+ libraries. However, the Lesser license provides advantages in certain
216
+ special circumstances.
217
+
218
+ For example, on rare occasions, there may be a special need to
219
+ encourage the widest possible use of a certain library, so that it becomes
220
+ a de-facto standard. To achieve this, non-free programs must be
221
+ allowed to use the library. A more frequent case is that a free
222
+ library does the same job as widely used non-free libraries. In this
223
+ case, there is little to gain by limiting the free library to free
224
+ software only, so we use the Lesser General Public License.
225
+
226
+ In other cases, permission to use a particular library in non-free
227
+ programs enables a greater number of people to use a large body of
228
+ free software. For example, permission to use the GNU C Library in
229
+ non-free programs enables many more people to use the whole GNU
230
+ operating system, as well as its variant, the GNU/Linux operating
231
+ system.
232
+
233
+ Although the Lesser General Public License is Less protective of the
234
+ users' freedom, it does ensure that the user of a program that is
235
+ linked with the Library has the freedom and the wherewithal to run
236
+ that program using a modified version of the Library.
237
+
238
+ The precise terms and conditions for copying, distribution and
239
+ modification follow. Pay close attention to the difference between a
240
+ "work based on the library" and a "work that uses the library". The
241
+ former contains code derived from the library, whereas the latter must
242
+ be combined with the library in order to run.
243
+
244
+ GNU LESSER GENERAL PUBLIC LICENSE
245
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
246
+
247
+ 0. This License Agreement applies to any software library or other
248
+ program which contains a notice placed by the copyright holder or
249
+ other authorized party saying it may be distributed under the terms of
250
+ this Lesser General Public License (also called "this License").
251
+ Each licensee is addressed as "you".
252
+
253
+ A "library" means a collection of software functions and/or data
254
+ prepared so as to be conveniently linked with application programs
255
+ (which use some of those functions and data) to form executables.
256
+
257
+ The "Library", below, refers to any such software library or work
258
+ which has been distributed under these terms. A "work based on the
259
+ Library" means either the Library or any derivative work under
260
+ copyright law: that is to say, a work containing the Library or a
261
+ portion of it, either verbatim or with modifications and/or translated
262
+ straightforwardly into another language. (Hereinafter, translation is
263
+ included without limitation in the term "modification".)
264
+
265
+ "Source code" for a work means the preferred form of the work for
266
+ making modifications to it. For a library, complete source code means
267
+ all the source code for all modules it contains, plus any associated
268
+ interface definition files, plus the scripts used to control compilation
269
+ and installation of the library.
270
+
271
+ Activities other than copying, distribution and modification are not
272
+ covered by this License; they are outside its scope. The act of
273
+ running a program using the Library is not restricted, and output from
274
+ such a program is covered only if its contents constitute a work based
275
+ on the Library (independent of the use of the Library in a tool for
276
+ writing it). Whether that is true depends on what the Library does
277
+ and what the program that uses the Library does.
278
+
279
+ 1. You may copy and distribute verbatim copies of the Library's
280
+ complete source code as you receive it, in any medium, provided that
281
+ you conspicuously and appropriately publish on each copy an
282
+ appropriate copyright notice and disclaimer of warranty; keep intact
283
+ all the notices that refer to this License and to the absence of any
284
+ warranty; and distribute a copy of this License along with the
285
+ Library.
286
+
287
+ You may charge a fee for the physical act of transferring a copy,
288
+ and you may at your option offer warranty protection in exchange for a
289
+ fee.
290
+
291
+ 2. You may modify your copy or copies of the Library or any portion
292
+ of it, thus forming a work based on the Library, and copy and
293
+ distribute such modifications or work under the terms of Section 1
294
+ above, provided that you also meet all of these conditions:
295
+
296
+ a) The modified work must itself be a software library.
297
+
298
+ b) You must cause the files modified to carry prominent notices
299
+ stating that you changed the files and the date of any change.
300
+
301
+ c) You must cause the whole of the work to be licensed at no
302
+ charge to all third parties under the terms of this License.
303
+
304
+ d) If a facility in the modified Library refers to a function or a
305
+ table of data to be supplied by an application program that uses
306
+ the facility, other than as an argument passed when the facility
307
+ is invoked, then you must make a good faith effort to ensure that,
308
+ in the event an application does not supply such function or
309
+ table, the facility still operates, and performs whatever part of
310
+ its purpose remains meaningful.
311
+
312
+ (For example, a function in a library to compute square roots has
313
+ a purpose that is entirely well-defined independent of the
314
+ application. Therefore, Subsection 2d requires that any
315
+ application-supplied function or table used by this function must
316
+ be optional: if the application does not supply it, the square
317
+ root function must still compute square roots.)
318
+
319
+ These requirements apply to the modified work as a whole. If
320
+ identifiable sections of that work are not derived from the Library,
321
+ and can be reasonably considered independent and separate works in
322
+ themselves, then this License, and its terms, do not apply to those
323
+ sections when you distribute them as separate works. But when you
324
+ distribute the same sections as part of a whole which is a work based
325
+ on the Library, the distribution of the whole must be on the terms of
326
+ this License, whose permissions for other licensees extend to the
327
+ entire whole, and thus to each and every part regardless of who wrote
328
+ it.
329
+
330
+ Thus, it is not the intent of this section to claim rights or contest
331
+ your rights to work written entirely by you; rather, the intent is to
332
+ exercise the right to control the distribution of derivative or
333
+ collective works based on the Library.
334
+
335
+ In addition, mere aggregation of another work not based on the Library
336
+ with the Library (or with a work based on the Library) on a volume of
337
+ a storage or distribution medium does not bring the other work under
338
+ the scope of this License.
339
+
340
+ 3. You may opt to apply the terms of the ordinary GNU General Public
341
+ License instead of this License to a given copy of the Library. To do
342
+ this, you must alter all the notices that refer to this License, so
343
+ that they refer to the ordinary GNU General Public License, version 2,
344
+ instead of to this License. (If a newer version than version 2 of the
345
+ ordinary GNU General Public License has appeared, then you can specify
346
+ that version instead if you wish.) Do not make any other change in
347
+ these notices.
348
+
349
+ Once this change is made in a given copy, it is irreversible for
350
+ that copy, so the ordinary GNU General Public License applies to all
351
+ subsequent copies and derivative works made from that copy.
352
+
353
+ This option is useful when you wish to copy part of the code of
354
+ the Library into a program that is not a library.
355
+
356
+ 4. You may copy and distribute the Library (or a portion or
357
+ derivative of it, under Section 2) in object code or executable form
358
+ under the terms of Sections 1 and 2 above provided that you accompany
359
+ it with the complete corresponding machine-readable source code, which
360
+ must be distributed under the terms of Sections 1 and 2 above on a
361
+ medium customarily used for software interchange.
362
+
363
+ If distribution of object code is made by offering access to copy
364
+ from a designated place, then offering equivalent access to copy the
365
+ source code from the same place satisfies the requirement to
366
+ distribute the source code, even though third parties are not
367
+ compelled to copy the source along with the object code.
368
+
369
+ 5. A program that contains no derivative of any portion of the
370
+ Library, but is designed to work with the Library by being compiled or
371
+ linked with it, is called a "work that uses the Library". Such a
372
+ work, in isolation, is not a derivative work of the Library, and
373
+ therefore falls outside the scope of this License.
374
+
375
+ However, linking a "work that uses the Library" with the Library
376
+ creates an executable that is a derivative of the Library (because it
377
+ contains portions of the Library), rather than a "work that uses the
378
+ library". The executable is therefore covered by this License.
379
+ Section 6 states terms for distribution of such executables.
380
+
381
+ When a "work that uses the Library" uses material from a header file
382
+ that is part of the Library, the object code for the work may be a
383
+ derivative work of the Library even though the source code is not.
384
+ Whether this is true is especially significant if the work can be
385
+ linked without the Library, or if the work is itself a library. The
386
+ threshold for this to be true is not precisely defined by law.
387
+
388
+ If such an object file uses only numerical parameters, data
389
+ structure layouts and accessors, and small macros and small inline
390
+ functions (ten lines or less in length), then the use of the object
391
+ file is unrestricted, regardless of whether it is legally a derivative
392
+ work. (Executables containing this object code plus portions of the
393
+ Library will still fall under Section 6.)
394
+
395
+ Otherwise, if the work is a derivative of the Library, you may
396
+ distribute the object code for the work under the terms of Section 6.
397
+ Any executables containing that work also fall under Section 6,
398
+ whether or not they are linked directly with the Library itself.
399
+
400
+ 6. As an exception to the Sections above, you may also combine or
401
+ link a "work that uses the Library" with the Library to produce a
402
+ work containing portions of the Library, and distribute that work
403
+ under terms of your choice, provided that the terms permit
404
+ modification of the work for the customer's own use and reverse
405
+ engineering for debugging such modifications.
406
+
407
+ You must give prominent notice with each copy of the work that the
408
+ Library is used in it and that the Library and its use are covered by
409
+ this License. You must supply a copy of this License. If the work
410
+ during execution displays copyright notices, you must include the
411
+ copyright notice for the Library among them, as well as a reference
412
+ directing the user to the copy of this License. Also, you must do one
413
+ of these things:
414
+
415
+ a) Accompany the work with the complete corresponding
416
+ machine-readable source code for the Library including whatever
417
+ changes were used in the work (which must be distributed under
418
+ Sections 1 and 2 above); and, if the work is an executable linked
419
+ with the Library, with the complete machine-readable "work that
420
+ uses the Library", as object code and/or source code, so that the
421
+ user can modify the Library and then relink to produce a modified
422
+ executable containing the modified Library. (It is understood
423
+ that the user who changes the contents of definitions files in the
424
+ Library will not necessarily be able to recompile the application
425
+ to use the modified definitions.)
426
+
427
+ b) Use a suitable shared library mechanism for linking with the
428
+ Library. A suitable mechanism is one that (1) uses at run time a
429
+ copy of the library already present on the user's computer system,
430
+ rather than copying library functions into the executable, and (2)
431
+ will operate properly with a modified version of the library, if
432
+ the user installs one, as long as the modified version is
433
+ interface-compatible with the version that the work was made with.
434
+
435
+ c) Accompany the work with a written offer, valid for at
436
+ least three years, to give the same user the materials
437
+ specified in Subsection 6a, above, for a charge no more
438
+ than the cost of performing this distribution.
439
+
440
+ d) If distribution of the work is made by offering access to copy
441
+ from a designated place, offer equivalent access to copy the above
442
+ specified materials from the same place.
443
+
444
+ e) Verify that the user has already received a copy of these
445
+ materials or that you have already sent this user a copy.
446
+
447
+ For an executable, the required form of the "work that uses the
448
+ Library" must include any data and utility programs needed for
449
+ reproducing the executable from it. However, as a special exception,
450
+ the materials to be distributed need not include anything that is
451
+ normally distributed (in either source or binary form) with the major
452
+ components (compiler, kernel, and so on) of the operating system on
453
+ which the executable runs, unless that component itself accompanies
454
+ the executable.
455
+
456
+ It may happen that this requirement contradicts the license
457
+ restrictions of other proprietary libraries that do not normally
458
+ accompany the operating system. Such a contradiction means you cannot
459
+ use both them and the Library together in an executable that you
460
+ distribute.
461
+
462
+ 7. You may place library facilities that are a work based on the
463
+ Library side-by-side in a single library together with other library
464
+ facilities not covered by this License, and distribute such a combined
465
+ library, provided that the separate distribution of the work based on
466
+ the Library and of the other library facilities is otherwise
467
+ permitted, and provided that you do these two things:
468
+
469
+ a) Accompany the combined library with a copy of the same work
470
+ based on the Library, uncombined with any other library
471
+ facilities. This must be distributed under the terms of the
472
+ Sections above.
473
+
474
+ b) Give prominent notice with the combined library of the fact
475
+ that part of it is a work based on the Library, and explaining
476
+ where to find the accompanying uncombined form of the same work.
477
+
478
+ 8. You may not copy, modify, sublicense, link with, or distribute
479
+ the Library except as expressly provided under this License. Any
480
+ attempt otherwise to copy, modify, sublicense, link with, or
481
+ distribute the Library is void, and will automatically terminate your
482
+ rights under this License. However, parties who have received copies,
483
+ or rights, from you under this License will not have their licenses
484
+ terminated so long as such parties remain in full compliance.
485
+
486
+ 9. You are not required to accept this License, since you have not
487
+ signed it. However, nothing else grants you permission to modify or
488
+ distribute the Library or its derivative works. These actions are
489
+ prohibited by law if you do not accept this License. Therefore, by
490
+ modifying or distributing the Library (or any work based on the
491
+ Library), you indicate your acceptance of this License to do so, and
492
+ all its terms and conditions for copying, distributing or modifying
493
+ the Library or works based on it.
494
+
495
+ 10. Each time you redistribute the Library (or any work based on the
496
+ Library), the recipient automatically receives a license from the
497
+ original licensor to copy, distribute, link with or modify the Library
498
+ subject to these terms and conditions. You may not impose any further
499
+ restrictions on the recipients' exercise of the rights granted herein.
500
+ You are not responsible for enforcing compliance by third parties with
501
+ this License.
502
+
503
+ 11. If, as a consequence of a court judgment or allegation of patent
504
+ infringement or for any other reason (not limited to patent issues),
505
+ conditions are imposed on you (whether by court order, agreement or
506
+ otherwise) that contradict the conditions of this License, they do not
507
+ excuse you from the conditions of this License. If you cannot
508
+ distribute so as to satisfy simultaneously your obligations under this
509
+ License and any other pertinent obligations, then as a consequence you
510
+ may not distribute the Library at all. For example, if a patent
511
+ license would not permit royalty-free redistribution of the Library by
512
+ all those who receive copies directly or indirectly through you, then
513
+ the only way you could satisfy both it and this License would be to
514
+ refrain entirely from distribution of the Library.
515
+
516
+ If any portion of this section is held invalid or unenforceable under any
517
+ particular circumstance, the balance of the section is intended to apply,
518
+ and the section as a whole is intended to apply in other circumstances.
519
+
520
+ It is not the purpose of this section to induce you to infringe any
521
+ patents or other property right claims or to contest validity of any
522
+ such claims; this section has the sole purpose of protecting the
523
+ integrity of the free software distribution system which is
524
+ implemented by public license practices. Many people have made
525
+ generous contributions to the wide range of software distributed
526
+ through that system in reliance on consistent application of that
527
+ system; it is up to the author/donor to decide if he or she is willing
528
+ to distribute software through any other system and a licensee cannot
529
+ impose that choice.
530
+
531
+ This section is intended to make thoroughly clear what is believed to
532
+ be a consequence of the rest of this License.
533
+
534
+ 12. If the distribution and/or use of the Library is restricted in
535
+ certain countries either by patents or by copyrighted interfaces, the
536
+ original copyright holder who places the Library under this License may add
537
+ an explicit geographical distribution limitation excluding those countries,
538
+ so that distribution is permitted only in or among countries not thus
539
+ excluded. In such case, this License incorporates the limitation as if
540
+ written in the body of this License.
541
+
542
+ 13. The Free Software Foundation may publish revised and/or new
543
+ versions of the Lesser General Public License from time to time.
544
+ Such new versions will be similar in spirit to the present version,
545
+ but may differ in detail to address new problems or concerns.
546
+
547
+ Each version is given a distinguishing version number. If the Library
548
+ specifies a version number of this License which applies to it and
549
+ "any later version", you have the option of following the terms and
550
+ conditions either of that version or of any later version published by
551
+ the Free Software Foundation. If the Library does not specify a
552
+ license version number, you may choose any version ever published by
553
+ the Free Software Foundation.
554
+
555
+ 14. If you wish to incorporate parts of the Library into other free
556
+ programs whose distribution conditions are incompatible with these,
557
+ write to the author to ask for permission. For software which is
558
+ copyrighted by the Free Software Foundation, write to the Free
559
+ Software Foundation; we sometimes make exceptions for this. Our
560
+ decision will be guided by the two goals of preserving the free status
561
+ of all derivatives of our free software and of promoting the sharing
562
+ and reuse of software generally.
563
+
564
+ NO WARRANTY
565
+
566
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
567
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
568
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
569
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
570
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
571
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
572
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
573
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
574
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
575
+
576
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
577
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
578
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
579
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
580
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
581
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
582
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
583
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
584
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
585
+ DAMAGES.
586
+
587
+ END OF TERMS AND CONDITIONS
588
+
589
+ How to Apply These Terms to Your New Libraries
590
+
591
+ If you develop a new library, and you want it to be of the greatest
592
+ possible use to the public, we recommend making it free software that
593
+ everyone can redistribute and change. You can do so by permitting
594
+ redistribution under these terms (or, alternatively, under the terms of the
595
+ ordinary General Public License).
596
+
597
+ To apply these terms, attach the following notices to the library. It is
598
+ safest to attach them to the start of each source file to most effectively
599
+ convey the exclusion of warranty; and each file should have at least the
600
+ "copyright" line and a pointer to where the full notice is found.
601
+
602
+ <one line to give the library's name and a brief idea of what it does.>
603
+ Copyright (C) <year> <name of author>
604
+
605
+ This library is free software; you can redistribute it and/or
606
+ modify it under the terms of the GNU Lesser General Public
607
+ License as published by the Free Software Foundation; either
608
+ version 2.1 of the License, or (at your option) any later version.
609
+
610
+ This library is distributed in the hope that it will be useful,
611
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
612
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
613
+ Lesser General Public License for more details.
614
+
615
+ You should have received a copy of the GNU Lesser General Public
616
+ License along with this library; if not, write to the Free Software
617
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
618
+
619
+ Also add information on how to contact you by electronic and paper mail.
620
+
621
+ You should also get your employer (if you work as a programmer) or your
622
+ school, if any, to sign a "copyright disclaimer" for the library, if
623
+ necessary. Here is a sample; alter the names:
624
+
625
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
626
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
627
+
628
+ <signature of Ty Coon>, 1 April 1990
629
+ Ty Coon, President of Vice
630
+
631
+ That's all there is to it!
632
+
633
+
634
+ [****] PyQwt License
635
+
636
+ Copyright (C) 2003-2009 Gerard Vermeulen, for the original PyQwt code
637
+ Copyright (c) 2015 Pierre Raybaut, for the PyQt5/PySide port and further
638
+ developments (e.g. ported to PythonQwt API)
639
+
640
+ PyQwt LICENSE
641
+ Version 3, March 2006
642
+
643
+ PyQwt is free software; you can redistribute it and/or modify
644
+ it under the terms of the GNU General Public License as published by
645
+ the Free Software Foundation; either version 2 of the License, or
646
+ (at your option) any later version.
647
+
648
+ PyQwt is distributed in the hope that it will be useful,
649
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
650
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
651
+ GNU General Public License for more details.
652
+
653
+ You should have received a copy of the GNU General Public License along
654
+ with PyQwt; if not, write to the Free Software Foundation, Inc.,
655
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
656
+
657
+ In addition, as a special exception, Gerard Vermeulen gives permission
658
+ to link PyQwt dynamically with non-free versions of Qt and PyQt,
659
+ and to distribute PyQwt in this form, provided that equally powerful
660
+ versions of Qt and PyQt have been released under the terms of the GNU
661
+ General Public License.
662
+
663
+ If PyQwt is dynamically linked with non-free versions of Qt and PyQt,
664
+ PyQwt becomes a free plug-in for a non-free program.
665
+
666
+ Project-URL: Homepage, https://github.com/PlotPyStack/PythonQwt/
667
+ Project-URL: Documentation, https://PythonQwt.readthedocs.io/en/latest/
668
+ Classifier: Topic :: Scientific/Engineering
669
+ Classifier: Topic :: Scientific/Engineering :: Visualization
670
+ Classifier: Topic :: Software Development :: Widget Sets
671
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
672
+ Classifier: Topic :: Utilities
673
+ Classifier: Topic :: Scientific/Engineering
674
+ Classifier: Topic :: Scientific/Engineering :: Human Machine Interfaces
675
+ Classifier: Topic :: Software Development :: User Interfaces
676
+ Classifier: Operating System :: MacOS
677
+ Classifier: Operating System :: Microsoft :: Windows
678
+ Classifier: Operating System :: OS Independent
679
+ Classifier: Operating System :: POSIX
680
+ Classifier: Operating System :: Unix
681
+ Classifier: Programming Language :: Python :: 3.9
682
+ Classifier: Programming Language :: Python :: 3.10
683
+ Classifier: Programming Language :: Python :: 3.11
684
+ Classifier: Programming Language :: Python :: 3.12
685
+ Classifier: Programming Language :: Python :: 3.13
686
+ Requires-Python: <4,>=3.9
687
+ Description-Content-Type: text/markdown
688
+ License-File: LICENSE
689
+ Requires-Dist: NumPy>=1.19
690
+ Requires-Dist: QtPy>=1.9
691
+ Provides-Extra: dev
692
+ Requires-Dist: ruff; extra == "dev"
693
+ Requires-Dist: pylint; extra == "dev"
694
+ Requires-Dist: Coverage; extra == "dev"
695
+ Provides-Extra: doc
696
+ Requires-Dist: PyQt5; extra == "doc"
697
+ Requires-Dist: sphinx>6; extra == "doc"
698
+ Requires-Dist: python-docs-theme; extra == "doc"
699
+ Provides-Extra: test
700
+ Requires-Dist: pytest; extra == "test"
701
+ Requires-Dist: pytest-xvfb; extra == "test"
702
+
703
+ # PythonQwt: Qt plotting widgets for Python
704
+
705
+ [![license](https://img.shields.io/pypi/l/PythonQwt.svg)](./LICENSE)
706
+ [![pypi version](https://img.shields.io/pypi/v/PythonQwt.svg)](https://pypi.org/project/PythonQwt/)
707
+ [![PyPI status](https://img.shields.io/pypi/status/PythonQwt.svg)](https://github.com/PlotPyStack/PythonQwt)
708
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/PythonQwt.svg)](https://pypi.python.org/pypi/PythonQwt/)
709
+ [![download count](https://img.shields.io/conda/dn/conda-forge/PythonQwt.svg)](https://www.anaconda.com/download/)
710
+ [![Documentation Status](https://readthedocs.org/projects/pythonqwt/badge/?version=latest)](https://pythonqwt.readthedocs.io/en/latest/?badge=latest)
711
+
712
+ ℹ️ Created in 2014 by Pierre Raybaut and maintained by the [PlotPyStack](https://github.com/PlotPyStack) organization.
713
+
714
+ ![PythonQwt Test Launcher](https://raw.githubusercontent.com/PlotPyStack/PythonQwt/master/qwt/tests/data/testlauncher.png)
715
+
716
+ The `PythonQwt` project was initiated to solve -at least temporarily- the obsolescence issue of `PyQwt` (the Python-Qwt C++ bindings library) which is no longer maintained. The idea was to translate the original Qwt C++ code to Python and then to optimize some parts of the code by writing new modules based on NumPy and other libraries.
717
+
718
+ The `PythonQwt` package consists of a single Python package named `qwt` and of a few other files (examples, doc, ...).
719
+
720
+ 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.
721
+
722
+ ## Sample
723
+
724
+ ```python
725
+ import qwt
726
+ import numpy as np
727
+
728
+ app = qwt.qt.QtGui.QApplication([])
729
+
730
+ # Create plot widget
731
+ plot = qwt.QwtPlot("Trigonometric functions")
732
+ plot.insertLegend(qwt.QwtLegend(), qwt.QwtPlot.BottomLegend)
733
+
734
+ # Create two curves and attach them to plot
735
+ x = np.linspace(-10, 10, 500)
736
+ qwt.QwtPlotCurve.make(x, np.cos(x), "Cosinus", plot, linecolor="red", antialiased=True)
737
+ qwt.QwtPlotCurve.make(x, np.sin(x), "Sinus", plot, linecolor="blue", antialiased=True)
738
+
739
+ # Resize and show plot
740
+ plot.resize(600, 300)
741
+ plot.show()
742
+
743
+ app.exec_()
744
+ ```
745
+
746
+ ![Simple plot example](doc/_static/QwtPlot_example.png)
747
+
748
+ ## Examples (tests)
749
+
750
+ The GUI-based test launcher may be executed from Python:
751
+
752
+ ```python
753
+ from qwt import tests
754
+ tests.run()
755
+ ```
756
+
757
+ or from the command line:
758
+
759
+ ```bash
760
+ PythonQwt
761
+ ```
762
+
763
+ Tests may also be executed in unattended mode:
764
+
765
+ ```bash
766
+ PythonQwt-tests --mode unattended
767
+ ```
768
+
769
+ ## Overview
770
+
771
+ The `qwt` package is a pure Python implementation of `Qwt` C++ library with the following limitations.
772
+
773
+ The following `Qwt` classes won't be reimplemented in `qwt` because more powerful features already exist in `guiqwt`: `QwtPlotZoomer`, `QwtCounter`, `QwtEventPattern`, `QwtPicker`, `QwtPlotPicker`.
774
+
775
+ Only the following plot items are currently implemented in `qwt` (the only plot items needed by `guiqwt`): `QwtPlotItem` (base class), `QwtPlotItem`, `QwtPlotMarker`, `QwtPlotSeriesItem` and `QwtPlotCurve`.
776
+
777
+ See "Overview" section in [documentation](https://pythonqwt.readthedocs.io/en/latest/) for more details on API limitations when comparing to Qwt.
778
+
779
+ ## Roadmap
780
+
781
+ The `qwt` package short-term roadmap is the following:
782
+
783
+ - [X] Drop support for PyQt4 and PySide2
784
+ - [X] Drop support for Python <= 3.8
785
+ - [X] Replace `setup.py` by `pyproject.toml`, using `setuptools` (e.g. see `guidata`)
786
+ - [ ] Add more unit tests: the ultimate goal is to reach 90% code coverage
787
+
788
+ ## Dependencies and installation
789
+
790
+ ### Supported Qt versions and bindings
791
+
792
+ The whole PlotPyStack set of libraries relies on the [Qt](https://doc.qt.io/) GUI toolkit, thanks to [QtPy](https://pypi.org/project/QtPy/), an abstraction layer which allows to use the same API to interact with different Python-to-Qt bindings (PyQt5, PyQt6, PySide2, PySide6).
793
+
794
+ Compatibility table:
795
+
796
+ | PythonQwt version | PyQt5 | PyQt6 | PySide2 | PySide6 |
797
+ |-------------------|-------|-------|---------|---------|
798
+ | 0.16 and earlier | ✅ | ⚠️ | ❌ | ⚠️ |
799
+ | Latest | ✅ | ✅ | ❌ | ✅ |
800
+
801
+ ### Requirements
802
+
803
+ - Python >=3.9
804
+ - QtPy >= 1.3 (and a Python-to-Qt binding library, see above)
805
+ - NumPy >= 1.5
806
+
807
+ ### Optional dependencies
808
+
809
+ - coverage, pytest (for unit tests)
810
+ - sphinx (for documentation generation)
811
+
812
+ ### Installation
813
+
814
+ From the source package:
815
+
816
+ ```bash
817
+ python -m build
818
+ ```
819
+
820
+ ## Copyrights
821
+
822
+ ### Main code base
823
+
824
+ - Copyright © 2002 Uwe Rathmann, for the original Qwt C++ code
825
+ - Copyright © 2015 Pierre Raybaut, for the Qwt C++ to Python translation and optimization
826
+ - Copyright © 2015 Pierre Raybaut, for the PythonQwt specific and exclusive Python material
827
+
828
+ ### Some examples
829
+
830
+ - Copyright © 2003-2009 Gerard Vermeulen, for the original PyQwt code
831
+ - Copyright © 2015 Pierre Raybaut, for the PyQt5/PySide port and further developments (e.g. ported to PythonQwt API)
832
+
833
+ ## License
834
+
835
+ The `qwt` Python package was partly (>95%) translated from Qwt C++ library: the associated code is distributed under the terms of the LGPL license. The rest of the code was either wrote from scratch or strongly inspired from MIT licensed third-party software.
836
+
837
+ See included [LICENSE](LICENSE) file for more details about licensing terms.