pyqttoolkit 0.7.32__tar.gz → 0.7.33__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.
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/PKG-INFO +1 -1
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/_version.py +3 -3
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/span.py +36 -31
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/matplotlib/base.py +29 -7
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit.egg-info/PKG-INFO +1 -1
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/MANIFEST.in +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/README.md +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/application/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/application/application.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/application/garbage_collector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/colors/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/base.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/composite.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/default.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/environment.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/multi_json_file.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/with_signal.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/config/with_value_changed.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/data/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/data/bits.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/data/cache.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/data/interval.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/data/names.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/datetime/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/datetime/datetime.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/datetime/qdatetime.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/dependencies/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/errors/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/filesystem/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/logs/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/dataframe_metadata_manager.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/dict_metadata_manager.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/id_generator.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/metadata_manager_base.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/code_text.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/dataframetable.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/dictpropertytree.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/dicttable.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/json_text.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/list_model.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/module.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/roles.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/series_data.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/models/validation.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/events/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/events/add_signal.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/events/module_opening.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/events/rejectable.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/launcher_config.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/modules/module.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/properties/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/properties/auto.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/properties/throttled.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/scripting/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/scripting/script_context.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/scripting/script_runner.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/scripting/script_template.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/autosave.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/email.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/event_registry.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/file_dialog.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/hotkey_manager.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/link_manager.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/message_board.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/module_service.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/object_converter.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/project_updater.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/task_runner.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/theme_manager.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/services/tool_window_service.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/viewmanagers/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/viewmanagers/tool.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/bulk_value_selector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/check_box.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/code/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/code/code_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/code/python_syntax.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/combo_box.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/count_selector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/datetime.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/datetime_range_selector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/default_text_line_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/delegates.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/dtype_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/editable_combo_box.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/file_selector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/icon.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/icon_button.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/json_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/labelled.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/collabsible.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/group_box.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/group_panel.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/lines.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/layout/link.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/line_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/linkable.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/list_view.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/main_window.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/metadata_selector.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/modulewindow.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/legend_control.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/matplotlib/__init__.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/matplotlib/colorbar.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/matplotlib/colormap.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/matplotlib/font.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/plot_options.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/plot_toolbar_options.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/size.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/tool_type.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/plot/toolbar.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/popout.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/popup.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/property_tree.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/shrunk_push_button.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/steppable_combo_box.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/styleable.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/table.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/text_edit.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/views/tool_window.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit.egg-info/SOURCES.txt +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit.egg-info/dependency_links.txt +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit.egg-info/requires.txt +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit.egg-info/top_level.txt +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/setup.cfg +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/setup.py +0 -0
- {pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/versioneer.py +0 -0
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2024-
|
|
11
|
+
"date": "2024-09-19T13:50:57+0100",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "0.7.
|
|
14
|
+
"full-revisionid": "2d7b0cb04ba79e391600d50e7a3992a22cb4db0b",
|
|
15
|
+
"version": "0.7.33"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
# pyqttoolkit
|
|
2
|
-
# Copyright (C) 2018-2019, Simmovation Ltd.
|
|
3
|
-
#
|
|
4
|
-
# This program is free software; you can redistribute it and/or modify
|
|
5
|
-
# it under the terms of the GNU General Public License as published by
|
|
6
|
-
# the Free Software Foundation; either version 3 of the License, or
|
|
7
|
-
# (at your option) any later version.
|
|
8
|
-
#
|
|
9
|
-
# This program is distributed in the hope that it will be useful,
|
|
10
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
# GNU General Public License for more details.
|
|
13
|
-
#
|
|
14
|
-
# You should have received a copy of the GNU General Public License
|
|
15
|
-
# along with this program; if not, write to the Free Software Foundation,
|
|
16
|
-
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
-
from PyQt5.QtCore import QObject
|
|
18
|
-
|
|
19
|
-
class SpanModel(QObject):
|
|
20
|
-
def __init__(self, parent, left, right):
|
|
21
|
-
QObject.__init__(self, parent)
|
|
22
|
-
self._left = left
|
|
23
|
-
self._right = right
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
# pyqttoolkit
|
|
2
|
+
# Copyright (C) 2018-2019, Simmovation Ltd.
|
|
3
|
+
#
|
|
4
|
+
# This program is free software; you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation; either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program; if not, write to the Free Software Foundation,
|
|
16
|
+
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
17
|
+
from PyQt5.QtCore import QObject
|
|
18
|
+
|
|
19
|
+
class SpanModel(QObject):
|
|
20
|
+
def __init__(self, parent, left, right, radians=False):
|
|
21
|
+
QObject.__init__(self, parent)
|
|
22
|
+
self._left = left
|
|
23
|
+
self._right = right
|
|
24
|
+
self._radians = radians
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def left(self):
|
|
28
|
+
return self._left
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def right(self):
|
|
32
|
+
return self._right
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def radians(self):
|
|
36
|
+
return self._radians
|
|
@@ -29,6 +29,7 @@ from matplotlib.figure import Figure
|
|
|
29
29
|
from matplotlib.widgets import RectangleSelector, SpanSelector
|
|
30
30
|
from mpl_toolkits.axes_grid1 import Size, Divider
|
|
31
31
|
from mpl_toolkits.axes_grid1.mpl_axes import Axes
|
|
32
|
+
from matplotlib.projections.polar import PolarAxes
|
|
32
33
|
|
|
33
34
|
import pandas as pd
|
|
34
35
|
|
|
@@ -53,9 +54,25 @@ def _safe_limits(lower, upper):
|
|
|
53
54
|
upper = _to_finite(upper)
|
|
54
55
|
return min(lower, upper), max(lower, upper)
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
def _cartesian_polar_selector(base_class):
|
|
58
|
+
class _CartesianPolarSelector(base_class):
|
|
59
|
+
def __init__(self, *args, **kwargs):
|
|
60
|
+
super().__init__(*args, **kwargs)
|
|
61
|
+
self._polar_projection = isinstance(self.ax, PolarAxes)
|
|
62
|
+
|
|
63
|
+
def _get_data(self, event):
|
|
64
|
+
if self._polar_projection:
|
|
65
|
+
xdata = event.xdata + 2 * np.pi if event.xdata < 0 else event.xdata
|
|
66
|
+
ydata = np.clip(event.ydata, *self.ax.get_ybound())
|
|
67
|
+
return xdata, ydata
|
|
68
|
+
else:
|
|
69
|
+
return super()._get_data(event)
|
|
70
|
+
|
|
71
|
+
return _CartesianPolarSelector
|
|
72
|
+
|
|
73
|
+
class _SpanSelector(_cartesian_polar_selector(SpanSelector)):
|
|
57
74
|
def __init__(self, *args, **kwargs):
|
|
58
|
-
|
|
75
|
+
super().__init__(*args, **kwargs)
|
|
59
76
|
self._select_none_handler = None
|
|
60
77
|
self._min_span = 1.0
|
|
61
78
|
|
|
@@ -80,7 +97,7 @@ class _SpanSelector(SpanSelector):
|
|
|
80
97
|
def set_min_span(self, min_span):
|
|
81
98
|
self._min_span = min_span
|
|
82
99
|
|
|
83
|
-
class _RectangleSelector(RectangleSelector):
|
|
100
|
+
class _RectangleSelector(_cartesian_polar_selector(RectangleSelector)):
|
|
84
101
|
def __init__(self, *args, **kwargs):
|
|
85
102
|
super().__init__(*args, **kwargs)
|
|
86
103
|
|
|
@@ -670,11 +687,16 @@ class MatPlotLibBase(QWidget):
|
|
|
670
687
|
self._span.active = True
|
|
671
688
|
self._span_center_mouse_event = self._span_left_mouse_event = self._span_right_mouse_event = None
|
|
672
689
|
|
|
673
|
-
def
|
|
674
|
-
|
|
690
|
+
def _do_update_span_rect(self, span_tool, x_min, x_max):
|
|
691
|
+
if span_tool is None:
|
|
692
|
+
return
|
|
693
|
+
span_tool.rect.set_x(x_min)
|
|
675
694
|
if x_max:
|
|
676
|
-
|
|
677
|
-
|
|
695
|
+
span_tool.rect.set_width(x_max - x_min)
|
|
696
|
+
span_tool.handles.set_data(span_tool.extents)
|
|
697
|
+
|
|
698
|
+
def _update_span_rect(self, x_min, x_max=None):
|
|
699
|
+
self._do_update_span_rect(self._span, x_min, x_max)
|
|
678
700
|
|
|
679
701
|
def _round_to_bin_width(self, x_min, x_max):
|
|
680
702
|
return x_min, x_max
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqttoolkit-0.7.32 → pyqttoolkit-0.7.33}/pyqttoolkit/metadata/dataframe_metadata_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|