William said:
> Actually, the behavior of Sage for show(v), where v is a list of graphics
> objects, is pretty stupid.  This is pretty dumb:
>
> sage: show([plot(sin,(0,1)), circle((0,0),1)])
> <html><div class="math">\begin{array}{l}[\text{Graphics object
> consisting of 1 graphics primitive},\\
> \text{Graphics object consisting of 1 graphics primitive}],\\
> \end{array}</div></html>
>
> It would be better to observe that each element of this list is a
> graphics object
> and in that case make a graphics arrow (or something!) out of it.
> I would support adding that feature if you think it would be useful.
>

Robert said:
I don't want you to be sorry, and I don't find any of this irksome, I
really meant the question constructively. I didn't realize it, but
the
show() function is actually one of Sage's (sage/misc/functional.py),
so the code that currently goes into graphs_list.show_graphs(list)
could be incorporated into that. Coming soon, show(list(graphs(n))).
See
http://trac.sagemath.org/sage_trac/ticket/1869
I'd really like to hear any other specific suggestions to improve
useability.


Wow, these are both really good ideas, though I think that at this
point I would have to do some in-class testing to see what is best,
and that won't be for a few weeks yet.

The best possible world might be something like
show(graphs(n,size==3)), so that even the "list" middleman was excised
and we removed the (wonderful to programmers but scary to the rest of
us) "functional" parentheses ().  Similarly with William's example, so
one could compare graphics next to each other via

show([circle((0,0),1),circle((0,0),2)])

or compare them at once with something like

show(circle((0,0),1)+circle((0,0),2))

or whatever the proper syntax is.  In different contexts you might
want either one.

> By the way,
>
>   sage: implicit_multiplication(True)
>   sage: 2x + 3cos(x)
>   3*cos(x) + 2*x
>
> now works in sage-2.10.  You might be interested, since you were one of the
> people to request it.
>

Oh, great!  Thank you - I am upgrading as I type.
This has been very productive - here's hoping for some budding graph
theorists to come out of the class experience.

Best,
kcrisman
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to