Hi Krishnan
Krishnan Chittur wrote:
>
> Hi John ...
>
> I have been playing with the differential equation
> solver some ...
>
> In pygtk, when I set obs_id to 1, the dependent
> variable is the second column and the plot is fine.
>
> How do I (in pygtk) plot the first column (independent variable)
> with say the THIRD column? (obs_id := 2) ? Is that possible
> within pygtk?
This is still not fully implemented in the PyGTK, although there is a
way. You need to have ipython installed first.
Now, after completing the integration, click 'Console' then type the
following (note that you can use tab completion for variable names):
o = browser.observers[0]
o.plot(2)
This would plot the 2+1 = third column with the 0+1 = first column. You
can also use for example
o.plot(3,2)
which would plot the fourth column (as y) versus the third column (as x).
The following syntax is also allowed, if prefer:
o.plot(x=2, y=3)
You can also plot with two 'y' axes:
o.plot(x=2, y=3, y2=4)
To modify the plot, you use the usual pylab (matplotlib) syntax:
import pylab
xlabel("this is my x axis")
ylabel("this is my y axis")
title("this is my title")
and the plot will update itself.
>
> (I have a sandbox with some examples - )
>
> I will place them on the ascendwiki when I complete these)
Please do!
>
> (look at the
> Solving the Set of Ordinary Differential Equations
> under Enzyme Kinetic mechanisms)
>
Cheers
JP
--
Dr John Pye
Dept of Engineering
Australian National University
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Ascend-sim-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ascend-sim-users