Skip to content

Commit 93011a3

Browse files
authored
Update README.rst
1 parent eebe5db commit 93011a3

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

README.rst

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
1-
This is a Mathics3 Python Module showing the classic "Hello, World!"
2-
The purpose is to demonstrate how to write a Mathics3 Python Module which extends Mathics3 by adding a function, but written in Python.
1+
This is a Mathics3 Python Module that implements some of the Plot routines used in Mathics3 using the faster vectorized routines proposed by @bdlucas1.
32

4-
You can also use this as a template to clone if you want to create your own Mathics3 Module.
3+
By now, it is a proof of concept, which implements `ContourPlot3D`, `Spherical3D` and `ParametricPlot3D`.
54

6-
To install in development mode (run code from the source tree):
7-
8-
::
9-
10-
$ make develop
11-
12-
13-
After installing inside Mathics3, you can load this using the
14-
``LoadModule[]`` function.
15-
16-
Then the function ```Hello[]`` is available::
5+
To make these routines available:
176

187
$ mathicsscript
19-
In[1]:= LoadModule["pymathics.hello"]
20-
Out[1]= pymathics.hello
8+
In[1]:= LoadModule["pymathics.vectorizedplot"]
9+
Out[1]= pymathics.vectorizedplot
2110

22-
In[2]:= Hello["World"]
23-
Out[2]:= Hello, World!
11+
In[2]:= ContourPlot[x, {x, -2, 2}, {y, -1, 1}, Contours->{0, 0.5}, AspectRatio->Automatic]
12+
Out[2]:= ...
2413

2514
You can test with ``py.test``::
2615

0 commit comments

Comments
 (0)