On Wednesday, October 17, 2012 12:49:09 PM UTC-4, 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! :) > >
Oh, of course, the graphics_array does things to the last graphic, but then that must be cached somehow, so then doing all three gets it. That is a great workaround, please post it to the relevant ticket and/or post a patch ;-) I think there's an ask.sagemath.org question related too, you could get "karma"... - kcrisman > > -- 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.
