Try returning the plot at the last line, and run the procedure again
return complex_plot(…)
I think the problem is that your procedure swallows the result of the plot.
HTH
> On Nov 13, 2018, at 20:38 , Michael Beeson <[email protected]> wrote:
>
> def nov13():
> var('M,N,z')
> f = (M^2-3*N)*(-i *sqrt(3)-1) *z^3
> f = f + (M^2 *(-i *sqrt(3) +3) + 3*N*(-i *sqrt (3) - 1))*z^2
> f = f + (M^2 *(i *sqrt(3)+3) + 3*N* (i* sqrt(3)-1))*z + (M^2-3*N)* (i*
> sqrt(3)-1)
> g = f.substitute(M=6,N=11)
> complex_plot(g, (-3, 3), (-3, 3))
>
> if this code is put in a file and the file is "attached" I get no plot, but
> if
> I paste the function body in to a prompt then I do get a (very nice) plot.
> I expected it would run from an attached file, which is how I usually use
> SageMath.
> Can someone explain why I don't get a plot that way?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.
--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
-----------
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
- Casey Stengel
--
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.