ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 12 May 2016 18:01:18 +0200How to change position of the axes values of a Sage plot.https://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 18:01:18 +0200https://ask.sagemath.org/question/33387/Tick labels in a matrix plothttps://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 11:37:55 +0100https://ask.sagemath.org/question/32182/