Skip to content

Commit 364ccfb

Browse files
committed
Added missing doc (rotatecrop, ...)
1 parent f2e2f83 commit 364ccfb

File tree

12 files changed

+86
-56
lines changed

12 files changed

+86
-56
lines changed

doc/features/fliprotate.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodule:: plotpy.widgets.fliprotate

doc/features/imagefile.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodule:: plotpy.widgets.imagefile

doc/features/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Plot widgets with integrated plot manager:
4949
panels/index
5050
fit
5151
pyplot
52+
resizedialog
53+
rotatecrop
54+
fliprotate
5255
selectdialog
56+
imagefile
5357
io
5458
signals
5559
mathutils/index

doc/features/items/reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ Grid
7878
Shapes
7979
^^^^^^
8080

81+
.. autoclass:: plotpy.items.AbstractShape
82+
:members:
8183
.. autoclass:: plotpy.items.PolygonShape
8284
:members:
8385
.. autoclass:: plotpy.items.RectangleShape

doc/features/resizedialog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodule:: plotpy.widgets.resizedialog

doc/features/rotatecrop.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. automodule:: plotpy.widgets.rotatecrop

doc/features/tools/overview.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ The `tools` module provides the following tools:
3737
* :py:class:`.tools.MultiLineTool`
3838
* :py:class:`.tools.FreeFormTool`
3939
* :py:class:`.tools.LabelTool`
40+
* :py:class:`.tools.RectangularShapeTool`
4041
* :py:class:`.tools.RectangleTool`
4142
* :py:class:`.tools.PointTool`
4243
* :py:class:`.tools.SegmentTool`

doc/features/tools/reference.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Reference
2323
:members:
2424
.. autoclass:: plotpy.tools.LabelTool
2525
:members:
26+
.. autoclass:: plotpy.tools.RectangularShapeTool
27+
:members:
2628
.. autoclass:: plotpy.tools.RectangleTool
2729
:members:
2830
.. autoclass:: plotpy.tools.PointTool

doc/requirements.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The :mod:`plotpy` package requires the following Python modules:
99
- Summary
1010
* - Python
1111
- >=3.8, <4
12-
-
12+
-
1313
* - guidata
1414
- >=3.1
1515
- Automatic GUI generation for easy dataset editing and display
@@ -23,10 +23,10 @@ The :mod:`plotpy` package requires the following Python modules:
2323
- >=1.3
2424
- Fundamental algorithms for scientific computing in Python
2525
* - Pillow
26-
-
26+
-
2727
- Python Imaging Library (Fork)
2828
* - tifffile
29-
-
29+
-
3030
- Read and write TIFF files
3131
* - PyQt5
3232
- >=5.11
@@ -42,19 +42,19 @@ Optional modules for development:
4242
- Version
4343
- Summary
4444
* - black
45-
-
45+
-
4646
- The uncompromising code formatter.
4747
* - isort
48-
-
48+
-
4949
- A Python utility / library to sort Python imports.
5050
* - pylint
51-
-
51+
-
5252
- python code static checker
5353
* - Coverage
54-
-
54+
-
5555
- Code coverage measurement for Python
5656
* - Cython
57-
-
57+
-
5858
- The Cython compiler for writing C extensions in the Python language.
5959

6060
Optional modules for building the documentation:
@@ -67,19 +67,19 @@ Optional modules for building the documentation:
6767
- Version
6868
- Summary
6969
* - PyQt5
70-
-
70+
-
7171
- Python bindings for the Qt cross platform application toolkit
7272
* - sphinx
73-
-
73+
-
7474
- Python documentation generator
7575
* - sphinx-copybutton
76-
-
76+
-
7777
- Add a copy button to each of your code cells.
7878
* - sphinx_qt_documentation
79-
-
79+
-
8080
- Plugin for proper resolve intersphinx references for Qt elements
8181
* - python-docs-theme
82-
-
82+
-
8383
- The Sphinx theme for the CPython docs and related projects
8484

8585
Optional modules for running test suite:
@@ -92,14 +92,14 @@ Optional modules for running test suite:
9292
- Version
9393
- Summary
9494
* - pytest
95-
-
95+
-
9696
- pytest: simple powerful testing with Python
9797
* - pytest-cov
98-
-
98+
-
9999
- Pytest plugin for measuring coverage.
100100
* - pytest-qt
101-
-
101+
-
102102
- pytest support for PyQt and PySide applications
103103
* - pytest-xvfb
104-
-
104+
-
105105
- A pytest plugin to run Xvfb (or Xephyr/Xvnc) for tests.

plotpy/items/shapes/base.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
if TYPE_CHECKING: # pragma: no cover
1717
from qtpy import QtCore as QC
18+
from qtpy.QtCore import QPointF # helping out python_qt_documentation
1819

1920
from plotpy.interfaces import IItemType
2021
from plotpy.styles.base import ItemParameters
@@ -163,7 +164,7 @@ def unselect(self) -> None:
163164
self.selected = False
164165
self.invalidate_plot()
165166

166-
def hit_test(self, pos: QC.QPointF) -> tuple[float, float, bool, None]:
167+
def hit_test(self, pos: QPointF) -> tuple[float, float, bool, None]:
167168
"""Return a tuple (distance, attach point, inside, other_object)
168169
169170
Args:
@@ -208,7 +209,7 @@ def set_item_parameters(self, itemparams):
208209
pass
209210

210211
def move_local_point_to(
211-
self, handle: int, pos: QC.QPointF, ctrl: bool = False
212+
self, handle: int, pos: QPointF, ctrl: bool = False
212213
) -> None:
213214
"""Move a handle as returned by hit_test to the new position
214215
@@ -224,7 +225,7 @@ def move_local_point_to(
224225
if self.plot():
225226
self.plot().SIG_ITEM_HANDLE_MOVED.emit(self)
226227

227-
def move_local_shape(self, old_pos: QC.QPointF, new_pos: QC.QPointF) -> None:
228+
def move_local_shape(self, old_pos: QPointF, new_pos: QPointF) -> None:
228229
"""Translate the shape such that old_pos becomes new_pos in canvas coordinates
229230
230231
Args:
@@ -259,7 +260,7 @@ def move_point_to(
259260
"""
260261
pass
261262

262-
def move_shape(self, old_pos: QC.QPointF, new_pos: QC.QPointF) -> None:
263+
def move_shape(self, old_pos: QPointF, new_pos: QPointF) -> None:
263264
"""Translate the shape such that old_pos becomes new_pos in axis coordinates
264265
265266
Args:

0 commit comments

Comments
 (0)