-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path__init__.py
More file actions
46 lines (35 loc) · 1.04 KB
/
__init__.py
File metadata and controls
46 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
#
# Licensed under the terms of the BSD 3-Clause
# (see plotpy/LICENSE for details)
# pylint: disable=C0103
"""
Item builder
------------
The `builder` module provides a builder singleton class that can be
used to simplify the creation of plot items.
"""
from __future__ import annotations
from .annotation import AnnotationBuilder
from .curvemarker import CurveMarkerCursorBuilder
from .image import ImageBuilder
from .label import LabelBuilder
from .plot import WidgetBuilder
from .shape import ShapeBuilder
class PlotBuilder(
WidgetBuilder,
CurveMarkerCursorBuilder,
ImageBuilder,
LabelBuilder,
ShapeBuilder,
AnnotationBuilder,
):
"""Class regrouping a set of factory functions to simplify the creation
of plot widgets and plot items.
It is a singleton class, so you should not create instances of this class
but use the :py:data:`plotpy.builder.make` instance instead.
"""
def __init__(self):
super().__init__()
#: Instance of :py:class:`.PlotBuilder`
make = PlotBuilder()