-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
81 lines (71 loc) · 2.16 KB
/
__init__.py
File metadata and controls
81 lines (71 loc) · 2.16 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
"""
Plotting, Graphing, and Drawing
Showing something visually can be done in a number of ways:
<ul>
<li>Starting with complete images and modifying them using the 'Image' \
Built-in function.
<li>Use pre-defined 2D or 3D objects like <url>
:'Circle':
/doc/reference-of-built-in-symbols/drawing-graphics/circle</url> and <url>
:'Cuboid':
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/three-dimensional-graphics/cuboid/</url> \
and place them in a coordinate space.
<li>Compute the points of the space using a function. This is done using functions \
like <url>
:'Plot':
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot</url> \
and <url>
:'ListPlot':
/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/list-plots/listplot</url>.
</ul>
"""
from pymathics.vectorizedplot.version import __version__
# The try block is needed because at installation time, dependencies are not
# available. After the installation is successfull, we want to make this availabe.
try:
from pymathics.vectorizedplot.plot_plot import (
LogPlot,
ParametricPlot,
Plot,
PolarPlot,
)
from pymathics.vectorizedplot.plot_plot3d import (
ComplexPlot,
ComplexPlot3D,
ContourPlot,
ContourPlot3D,
DensityPlot,
ParametricPlot3D,
Plot3D,
SphericalPlot3D,
)
_BUILTINS_ = (
"ComplexPlot",
"ComplexPlot3D",
"ContourPlot",
"ContourPlot3D",
"DensityPlot",
"LogPlot",
"ParametricPlot",
"PolarPlot",
"Plot",
"Plot3D",
"ParametricPlot3D",
"SphericalPlot3D",
)
except ModuleNotFoundError:
_BUILTINS_ = tuple()
# To be recognized as an external mathics module, the following variable
# is required:
#
pymathics_version_data = {
"author": "The Mathics3 Team",
"version": __version__,
"requires": ["scikit-image"],
}
# This tells documentation how to sort this module
sort_order = "mathics.builtin.plotting-graphing-and-drawing"
__all__ = tuple(_BUILTINS_) + (
"__version__",
"pymathics_version_data",
)