Ask Your Question
0

plot the function and then the axes.

asked 2020-06-08 19:06:05 +0200

Cyrille gravatar image

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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-06-08 19:56:54 +0200

Juanjo gravatar image

You 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])
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-06-08 19:06:05 +0200

Seen: 162 times

Last updated: Jun 08 '20