Commit 0f65970e authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

README.md works and got more examples

parent fc5058c5
......@@ -206,3 +206,47 @@ fig = FigOneAxes3D((run1,), AxResults)
# Create a window where the figure is shown
win = MyWin(fig)
```
## Switch dataset
```python
# Import the module
from mymodule import *
# Read some data
run1 = readRun('./mymodule/data/serie1/run1.txt')
run2 = readRun('./mymodule/data/serie1/run2.txt')
# Create a figure
fig = FigOneAxes3D((run1,), AxResults)
# Create a window where the figure is shown
win = MyWin(fig)
# Switch from run1 to run2
fig.update(rawdata=(run2,))
# Actualize the window
win.refresh()
```
## Plot AxMaxResults et AxParameterSpace with data serie1
```python
# Import the module
from mymodule import *
# Read some data
serie1 = readRun('./mymodule/data/serie1/serie1.txt')
# Create a figure figmax
figmax = FigOneAxes2D((serie1,), AxMaxResults)
# Create a window winmax
winmax = MyWin(figmax, fignum=0)
# Create a figure
figps = FigOneAxes2D((serie1,), AxParameterSpace)
# Create a window winps
winps = MyWin(figps, fignum=1)
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment