Ask Your Question

No tick marks

asked 2017-12-03 18:32:18 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I want to create a generic graph without tick marks on the y-axis.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-12-04 03:16:38 -0500

eric_g gravatar image

updated 2017-12-04 03:16:58 -0500

Like this:

sage: plot(sin(x), (x, 0, 10), ticks=[None, []])

Note that None as the first element of the ticks option means using the default tick marks on the x-axis, while [] as the second element means no tick marks along the y-axis. For more details about the ticks option, see the documentation.

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


Asked: 2017-12-03 18:32:18 -0500

Seen: 99 times

Last updated: Dec 04 '17