Ask Your Question
0

axis labels / title on graphs in graphics_array

asked 2014-10-23 14:38:52 +0100

calc314 gravatar image

I'm putting four graphs together in a graphics_array. I'm finding that only the axis labels and title on the last graph in the graphics_array command appear. I would like to have them appear on all 4 graphs. Here is a simplified example:

p1=plot(x^2,(x,-2,2),axes_labels=['x1','y1'])
p2=plot(x^2-1,(x,-2,2),axes_labels=['x2','y2'])
p3=plot(x^2+1,(x,-2,2),axes_labels=['x3','y3'])
p4=plot(x^3,(x,-2,2),axes_labels=['x4','y4'])
g=graphics_array([[p1,p2],[p3,p4]])
show(g)

image description

edit retag flag offensive close merge delete

Comments

This is known. See http://trac.sagemath.org/ticket/10657 and friends.

kcrisman gravatar imagekcrisman ( 2014-10-23 21:43:01 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-23 15:42:21 +0100

ndomes gravatar image

It is rather funny, after having created and displayed an animation the graphics_array shows up as expected with all axis labels.

But when commenting out A.show() the labels appear only in the last graphic.

p1=plot(x^2,(x,-2,2),axes_labels=['x1','y1'])
p2=plot(x^2-1,(x,-2,2),axes_labels=['x2','y2'])
p3=plot(x^2+1,(x,-2,2),axes_labels=['x3','y3'])
p4=plot(x^3,(x,-2,2),axes_labels=['x4','y4'])
A = animate([p1,p2,p3,p4],figsize=6)
A.show()
g = A.graphics_array(ncols=2)
g.show()
edit flag offensive delete link more

Comments

I also get the correct labels (but not titles) on the displayed plot if I save a plot somewhere in the code.

calc314 gravatar imagecalc314 ( 2014-10-23 23:28:26 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-23 14:38:52 +0100

Seen: 1,583 times

Last updated: Oct 23 '14