Changes
Page history
yfournier created page: home
authored
Feb 15, 2017
by
Yori Fournier
Show whitespace changes
Inline
Side-by-side
get-started.md
View page @
cde880b0
...
...
@@ -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
)
```