|
1 | | -# -*- coding: utf-8 -*- |
2 | 1 | """ |
3 | | -Example Mathics3 Module |
4 | | -
|
5 | | -This is an example of an external Mathics3 Module. |
6 | | -
|
7 | | -A Mathics3 Module is a Python module which can be loaded into Mathics using the |
8 | | -``LoadModule[]`` method. |
9 | | -
|
10 | | -In particular, to load this after installing this module as a Python module run inside |
11 | | -Mathics: |
12 | | -
|
13 | | - :: |
14 | | -
|
15 | | - In[1]:= LoadModule["pymathics.hello"] |
16 | | - Out[1]= pymathics.hello |
17 | | -
|
18 | | -If you don't get an error, you should then be able to run: |
19 | | -
|
20 | | - :: |
21 | | -
|
22 | | - In[2]:= Hello["World"] |
23 | | - Out[2]:= Hello, World! |
24 | | -
|
25 | | - In[3]:= PyMathics`$HelloUser |
26 | | - Out[3]:= $your-login-name$ |
27 | | -
|
| 2 | +Plotting, Graphing, and Drawing |
| 3 | +
|
| 4 | +Showing something visually can be done in a number of ways: |
| 5 | +
|
| 6 | +<ul> |
| 7 | + <li>Starting with complete images and modifying them using the 'Image' \ |
| 8 | + Built-in function. |
| 9 | + <li>Use pre-defined 2D or 3D objects like <url> |
| 10 | + :'Circle': |
| 11 | + /doc/reference-of-built-in-symbols/drawing-graphics/circle</url> and <url> |
| 12 | + :'Cuboid': |
| 13 | +/doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/three-dimensional-graphics/cuboid/</url> \ |
| 14 | + and place them in a coordinate space. |
| 15 | + <li>Compute the points of the space using a function. This is done using functions \ |
| 16 | + like <url> |
| 17 | + :'Plot': |
| 18 | + /doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/general-graphical-plots/plot</url> \ |
| 19 | + and <url> |
| 20 | + :'ListPlot': |
| 21 | + /doc/reference-of-built-in-symbols/plotting-graphing-and-drawing/list-plots/listplot</url>. |
| 22 | +</ul> |
28 | 23 | """ |
29 | 24 |
|
30 | | -from pymathics.vectorizedplot.plot import SphericalPlot3D |
| 25 | + |
| 26 | +from pymathics.vectorizedplot.plot_plot3d.py import SphericalPlot3D |
31 | 27 | from pymathics.vectorizedplot.version import __version__ |
32 | 28 |
|
33 | | -__all__ = ("__version__", "Hello", "pymathics_version_data") |
| 29 | +__all__ = ("__version__", "SphericalPlot3D", "pymathics_version_data") |
34 | 30 |
|
35 | 31 | # To be recognized as an external mathics module, the following variable |
36 | 32 | # is required: |
|
40 | 36 | "version": __version__, |
41 | 37 | "requires": [], |
42 | 38 | } |
| 39 | + |
| 40 | +# This tells documentation how to sort this module |
| 41 | +sort_order = "mathics.builtin.plotting-graphing-and-drawing" |
| 42 | + |
| 43 | + |
0 commit comments