Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Technically, in matplotlib the ticks are an attribute of the shown object, not the object itself. There is something called an Axes object to which ticks belong. That said, you can pass the ticks this way:

u = var('u') array = [vector([u, cos(iu)]) for i in range(0, 3)] P = [parametric_plot(array[i], (u, 0, 2pi),ticks=[[0,i],[0,i]]) for i in range(len(array))] g = graphics_array(P) g

but you will see this doesn't give what you want either; only the last one has the custom ticks. The problem is that we haven't found a good way to resolve https://trac.sagemath.org/ticket/10466 or https://trac.sagemath.org/ticket/10657

Technically, in matplotlib the ticks are an attribute of the shown object, not the object itself. There is something called an Axes object to which ticks belong. That said, you can pass the ticks this way:

u = var('u')
array = [vector([u, cos(iu)]) cos(i*u)]) for i in range(0, 3)]
P = [parametric_plot(array[i], (u, 0, 2pi),ticks=[[0,i],[0,i]]) 2*pi),ticks=[[0,i],[0,i]]) for i in range(len(array))]
g = graphics_array(P)
g

g

but you will see this doesn't give what you want either; only the last one has the custom ticks. The problem is that we haven't found a good way to resolve https://trac.sagemath.org/ticket/10466 or https://trac.sagemath.org/ticket/10657