GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — plotpy.interfaces: moved imports at root level · PlotPyStack/PlotPy@33c29c4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/features/items
    • reference.rst
  • plotpy
    • interfaces
      • __init__.py
      • items.py
      • panel.py
      • plotmanager.py
    • items
      • annotations.py
      • curve
        • base.py
      • grid.py
      • histogram.py
      • image
        • base.py
        • filter.py
        • image_items.py
        • masked.py
        • misc.py
        • transform.py
      • label.py
      • polygon.py
      • shapes
        • base.py
        • marker.py
        • polygon.py
    • panels
      • contrastadjustment.py
      • csection
        • csitem.py
        • csplot.py
        • cswidget.py
      • itemlist.py
    • plot
      • base.py
    • styles
      • base.py
    • tests/gui
      • test_dotarraydemo.py
    • tools
      • __init__.py
      • cross_section.py
      • curve.py
      • image.py
      • item.py
      • misc.py
      • plot.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/features/items/reference.rst‎

Copy file name to clipboardExpand all lines: doc/features/items/reference.rst
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Reference
44
Base classes
55
^^^^^^^^^^^^
66

7-
.. autoclass:: plotpy.interfaces.common.IItemType
8-
.. autoclass:: plotpy.interfaces.common.IBasePlotItem
9-
.. autoclass:: plotpy.interfaces.common.IColormapImageItemType
7+
.. autoclass:: plotpy.interfaces.IItemType
8+
.. autoclass:: plotpy.interfaces.IBasePlotItem
9+
.. autoclass:: plotpy.interfaces.IColormapImageItemType
1010

1111
Curves
1212
^^^^^^
Collapse file

‎plotpy/interfaces/__init__.py‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
3+
# pylint: disable=unused-import
4+
from .items import (
5+
IBaseImageItem,
6+
IBasePlotItem,
7+
IColormapImageItemType,
8+
ICSImageItemType,
9+
ICurveItemType,
10+
IDecoratorItemType,
11+
IExportROIImageItemType,
12+
IHistDataSource,
13+
IImageItemType,
14+
IItemType,
15+
ISerializableType,
16+
IShapeItemType,
17+
IStatsImageItemType,
18+
ITrackableItemType,
19+
IVoiImageItemType,
20+
)
21+
from .panel import IPanel
22+
from .plotmanager import IPlotManager
Collapse file

‎plotpy/interfaces/common.py‎ ‎plotpy/interfaces/items.py‎plotpy/interfaces/common.py renamed to plotpy/interfaces/items.py

Copy file name to clipboard
File renamed without changes.
Collapse file

‎plotpy/interfaces/panel.py‎

Copy file name to clipboardExpand all lines: plotpy/interfaces/panel.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
from plotpy.panels import PanelWidget
2-
3-
41
class IPanel:
52
"""Interface for panels controlled by PlotManager"""
63

74
@staticmethod
85
def __inherits__():
6+
# Avoid circular import
7+
# pylint: disable=import-outside-toplevel
8+
from plotpy.panels import PanelWidget
9+
910
return PanelWidget
1011

1112
def register_panel(self, manager):
Collapse file

‎plotpy/interfaces/plotmanager.py‎

Copy file name to clipboardExpand all lines: plotpy/interfaces/plotmanager.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from plotpy.plot.base import BasePlot
2-
3-
41
class IPlotManager:
52
"""A 'controller' that organizes relations between
63
plots (BasePlot), panels, tools (GuiTool) and toolbar
@@ -12,6 +9,10 @@ def add_plot(self, plot, plot_id="default"):
129
:param plot:
1310
:param plot_id:
1411
"""
12+
# Avoid circular import
13+
# pylint: disable=import-outside-toplevel
14+
from plotpy.plot.base import BasePlot
15+
1516
assert id not in self.plots # pylint: disable=no-member
1617
assert isinstance(plot, BasePlot)
1718

Collapse file

‎plotpy/items/annotations.py‎

Copy file name to clipboardExpand all lines: plotpy/items/annotations.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from plotpy.config import CONF, _
2525
from plotpy.coords import canvas_to_axes
26-
from plotpy.interfaces.common import IBasePlotItem, ISerializableType, IShapeItemType
26+
from plotpy.interfaces import IBasePlotItem, ISerializableType, IShapeItemType
2727
from plotpy.items.label import DataInfoLabel
2828
from plotpy.items.shapes.base import AbstractShape
2929
from plotpy.items.shapes.ellipse import EllipseShape
@@ -45,7 +45,7 @@
4545
from qtpy.QtCore import QPointF, QRectF
4646
from qtpy.QtGui import QPainter
4747

48-
from plotpy.interfaces.common import IItemType
48+
from plotpy.interfaces import IItemType
4949
from plotpy.styles.base import ItemParameters
5050

5151

Collapse file

‎plotpy/items/curve/base.py‎

Copy file name to clipboardExpand all lines: plotpy/items/curve/base.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from plotpy.config import CONF, _
1616
from plotpy.coords import canvas_to_axes
17-
from plotpy.interfaces.common import (
17+
from plotpy.interfaces import (
1818
IBasePlotItem,
1919
ICurveItemType,
2020
ISerializableType,
@@ -27,7 +27,7 @@
2727
import guidata.dataset.io
2828
from qtpy import QtCore as QC
2929

30-
from plotpy.interfaces.common import IItemType
30+
from plotpy.interfaces import IItemType
3131
from plotpy.styles.base import ItemParameters
3232

3333

Collapse file

‎plotpy/items/grid.py‎

Copy file name to clipboardExpand all lines: plotpy/items/grid.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
from qwt import QwtPlot, QwtPlotGrid
1616

1717
from plotpy.config import _
18-
from plotpy.interfaces.common import IBasePlotItem, IDecoratorItemType
18+
from plotpy.interfaces import IBasePlotItem, IDecoratorItemType
1919
from plotpy.styles.base import GridParam
2020

2121
if TYPE_CHECKING: # pragma: no cover
2222
from qtpy.QtCore import QPointF
2323

24-
from plotpy.interfaces.common import IItemType
24+
from plotpy.interfaces import IItemType
2525
from plotpy.styles.base import ItemParameters
2626

2727

Collapse file

‎plotpy/items/histogram.py‎

Copy file name to clipboardExpand all lines: plotpy/items/histogram.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from qwt import QwtPlotCurve
1919

2020
from plotpy.config import _
21-
from plotpy.interfaces.common import IBasePlotItem, IHistDataSource
21+
from plotpy.interfaces import IBasePlotItem, IHistDataSource
2222
from plotpy.items.curve.base import CurveItem
2323
from plotpy.styles.curve import CurveParam
2424
from plotpy.styles.histogram import HistogramParam
Collapse file

‎plotpy/items/image/base.py‎

Copy file name to clipboardExpand all lines: plotpy/items/image/base.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
_scale_rect,
2727
)
2828
from plotpy.config import _
29-
from plotpy.interfaces.common import (
29+
from plotpy.interfaces import (
3030
IBaseImageItem,
3131
IBasePlotItem,
3232
IColormapImageItemType,
@@ -51,7 +51,7 @@
5151
from qtpy.QtCore import QPointF, QRectF
5252
from qtpy.QtGui import QColor, QPainter
5353

54-
from plotpy.interfaces.common import IItemType
54+
from plotpy.interfaces import IItemType
5555
from plotpy.items import RectangleShape
5656
from plotpy.styles.base import ItemParameters
5757

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.