Skip to content

Commit 264d07d

Browse files
committed
adding modules
1 parent 23f14ae commit 264d07d

File tree

409 files changed

+553551
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+553551
-116
lines changed

ChangeLog-spell-corrected.diff

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
--- ChangeLog 2024-08-19 13:00:26.144430865 -0400
2-
+++ ChangeLog-spell-corrected 2024-08-19 12:59:33.866689400 -0400
3-
@@ -10,7 +10,7 @@
4-
2024-08-19 Juan Mauricio Matera <matera@fisica.unlp.edu.ar>
5-
6-
* pymathics/hello/__main__.py: adding blanklines between </dl> and
7-
- the examples in docstrings (#4) * addiing blanklines between </dl> and the examples in docstrings * Update __main__.py --------- Co-authored-by: R. Bernstein <rocky@users.noreply.github.com>
8-
+ the examples in docstrings (#4) * adding blanklines between </dl> and the examples in docstrings * Update __main__.py --------- Co-authored-by: R. Bernstein <rocky@users.noreply.github.com>
9-
10-
2024-08-19 rocky <rb@dustyfeet.com>
11-
12-
@@ -95,4 +95,3 @@
13-
2020-10-30 rocky <rocky@gnu.org>
14-
15-
* A simple PyMathics module A "Hello, World!" PyMathics Function and Symbol definition. Adapted from mmatera's PyMathics "testpymathicsmodule"
16-
-

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ clean-pyc:
4949

5050
#:
5151
doctest:
52-
MATHICS_CHARACTER_ENCODING="ASCII" $(PYTHON) -m mathics.docpipeline -l pymathics.hello -c 'Example Mathics3 Module' $o
52+
MATHICS_CHARACTER_ENCODING="ASCII" $(PYTHON) -m mathics.docpipeline -l pymathics.vectorizedplot -c 'Mathics3 vectorizedplot Module' $o
5353
#: Run py.test tests. Use environment variable "o" for pytest options
5454
pytest:
55-
py.test test $o
55+
MATHICS_CHARACTER_ENCODING="ASCII" py.test test $o
5656

5757

5858

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
1-
# -*- coding: utf-8 -*-
21
"""
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>
2823
"""
2924

30-
from pymathics.vectorizedplot.plot import SphericalPlot3D
25+
26+
from pymathics.vectorizedplot.plot_plot3d.py import SphericalPlot3D
3127
from pymathics.vectorizedplot.version import __version__
3228

33-
__all__ = ("__version__", "Hello", "pymathics_version_data")
29+
__all__ = ("__version__", "SphericalPlot3D", "pymathics_version_data")
3430

3531
# To be recognized as an external mathics module, the following variable
3632
# is required:
@@ -40,3 +36,8 @@
4036
"version": __version__,
4137
"requires": [],
4238
}
39+
40+
# This tells documentation how to sort this module
41+
sort_order = "mathics.builtin.plotting-graphing-and-drawing"
42+
43+

pymathics/vectorizedplot/__main__.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)