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.Mon, 08 Jun 2020 19:56:54 +0200plot the function and then the axes.https://ask.sagemath.org/question/51837/plot-the-function-and-then-the-axes/ Is there a way to plot the function and then the axes. Normally this is not necessary, but when plotting a dense white noise one cannot read the ticks ?Mon, 08 Jun 2020 19:06:05 +0200https://ask.sagemath.org/question/51837/plot-the-function-and-then-the-axes/Answer by Juanjo for <p>Is there a way to plot the function and then the axes. Normally this is not necessary, but when plotting a dense white noise one cannot read the ticks ?</p>
https://ask.sagemath.org/question/51837/plot-the-function-and-then-the-axes/?answer=51838#post-id-51838You may use the options `zorder` and `alpha`. Graphic objects with high `zorder` are rendered on the top layers, so they are more visible. Likewise, objects with `alpha` near 0 are nearly transparent. Compare the three graphics yielded by the following code:
p1 = plot(sin(1/x), (x,-0.1,0.1), color="red")
p2 = plot(sin(1/x), (x,-0.1,0.1), color="red", zorder=0)
p3 = plot(sin(1/x), (x,-0.1,0.1), color="red", alpha=0.6)
graphics_array([p1,p2,p3])
Mon, 08 Jun 2020 19:56:54 +0200https://ask.sagemath.org/question/51837/plot-the-function-and-then-the-axes/?answer=51838#post-id-51838