Hello everyone.
I'm just wondering if there's a way of showing a SAGE plot in a window
when running a code on the script (i.e., a python script ran with the
sage environment from the command line). To make it more clear, I have
the code bellow...
#!/usr/bin/env sage
import sys
from sage.all import *
g = 2
t = .4
var('n m')
d2u = diff(1/(1 + (n * exp(-m/t))), m, 2)
solns = solve([d2u == 0, m == g], m, n, solution_dict=True)
ns = [[soln[n].n()] for soln in solns]
n = ns.pop().pop()
u = 1/(1 + (n * exp(-m/t)))
p = plot([u], (-10, 10))
...and I want to display the plot "p" in a window/frame when i run my
script from the command line (i.e., ./myScript.py). Any way to do
that?
Thanks in advance.
Cheers
----
Emerson
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---