ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 04 Jun 2017 18:59:26 -0500are pi tick marks not supported in sagetexhttp://ask.sagemath.org/question/37794/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}alienfetuseaterSun, 04 Jun 2017 18:59:26 -0500http://ask.sagemath.org/question/37794/How to change position of the axes values of a Sage plot.http://ask.sagemath.org/question/33387/how-to-change-position-of-the-axes-values-of-a-sage-plot/ I am plotting 2D functions on Sage, and I would like to move the values displayed along the $y$ axis (the ticks) from the left of the axis to the rigth, because they bother me there. I had a look and I think this can be done in Python with matplotlib (using `set_tick_params()` or `set_ticks_position()`) which is included in Sage, but I am not sure of how to combine a `region_plot()` from Sage with this axis modification.
¿Anyway to do what I am saying? I can't include an example of what I am saying because I don't have enough Karma to add a figure or link...iiprThu, 12 May 2016 11:01:18 -0500http://ask.sagemath.org/question/33387/Tick labels in a matrix plothttp://ask.sagemath.org/question/32182/tick-labels-in-a-matrix-plot/I want to plot the following matrix `m` with k and l in {-2, ..., 2}:
m = [[k+l for k in range(-2,3)] for l in range(-2,3)]
with `matrix_plot`:
m_plot = matrix_plot(m, origin='lower')
The ticks on both axes are automatically set to {0 , ... , 5}, but I want the ticks to be {-2, -1, 0, 1, 2} on both axes.
I could not figure out how to do this.Philosophiæ NaturalisWed, 13 Jan 2016 04:37:55 -0600http://ask.sagemath.org/question/32182/Latex formatting for exponential numbershttp://ask.sagemath.org/question/9333/latex-formatting-for-exponential-numbers/I noticed that tick_formatter = 'latex' fails for very small/large numbers. Does anyone know a solution to this?
Thanks in advance,
TJTumericTJThu, 20 Sep 2012 16:18:07 -0500http://ask.sagemath.org/question/9333/