A plot is just a python object. Try return list_plot(u). Or list_plot(u).show()
On Monday, November 3, 2014 6:29:44 PM UTC, Michael Beeson wrote: > > sage: def testPlot(): > > ....: u = [[1,2],[3,4],[5,7]] > > ....: list_plot(u) > > ....: > > sage: testPlot() > > sage: > > > doesn't produce any plot, but executing the body of the function directly > at the sage prompt does produce a plot. > What am I doing wrong? > > > > > -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.