Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

are pi tick marks not supported in sagetex

as opposed to having integer tick marks on x-axis for plotting... the sagedocs show the following for a pi-axis

sage: g1 = plot(sin(x), 0, 2*pi)
sage: g2 = plot(cos(x), 0, 2*pi, linestyle="--")
sage: (g1+g2).show(ticks=pi/6, tick_formatter=pi)

but when i tried to impliment this with sagetex,as follows, it is auto converted to integer tick marks

\begin{sagesilent}

g1 = plot(sin(x), 0, 2*pi)
g2 = plot(cos(x), 0, 2*pi, linestyle="--")
(g1+g2).show(ticks=pi/6, tick_formatter=pi)

\end{sagesilent}

\sageplot[width = 1. \textwidth]{g1+g2}