On 10/18/2012 12:48 AM, P Purkayastha wrote:
On 10/17/2012 11:52 PM, Dan Drake wrote:
Hello,
I did
sage: p = plot(arccosh(x/cos(x)), (x,5,6),
axes_labels=['x','y=arccosh(x/cos x)'])
sage: q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4),
axes_labels=['y','x=arcsin(-y/sinh y)'],color='red')
sage: graphics_array([p, q]).show()
and expected to see my axes labels on both plots -- but I only get the
label on the *second* plot. If you switch p and q, you still get the
label on the second plot. If I do [p, q, p], I only get the label on the
final plot.
This seems like a bug. Is there a workaround? (I have a talk this
afternoon and I'd like it to work!)
Try this:
p = plot(arccosh(x/cos(x)), (x,5,6), axes_labels=['x','y=arccosh(x/cos
x)'])
q = plot(arcsin(-y/sinh(y)) + 2*pi, (y, 2.5, 3.4),
axes_labels=['y','x=arcsin(-y/sinh y)'],color='red')
r = plot(x, axes_labels=['x','y = x'])
# We want the order p,q,r; so we start with cyclic shifts
graphics_array([q, r, p]) # cyclic permutation
graphics_array([r, p, q]) # cyclic permutation of above
graphics_array([p, q, r]) # another shift to get our order.
Works in sage-5.2 and sage-5.4rc1 at least. Don't ask me why! :)
Sorry, I was looking at it from the command line. If you do it on the
notebook then append .show() at the end of each of the three
graphics_array() calls, like this (otherwise the rendering is not
performed):
graphics_array([q, r, p]).show() # cyclic permutation
graphics_array([r, p, q]).show() # cyclic permutation of above
graphics_array([p, q, r]).show() # another shift to get our order.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.