Ask Your Question
1

No tick marks

asked 2017-12-04 01:32:18 +0200

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
2

answered 2017-12-04 10:16:38 +0200

eric_g gravatar image

updated 2017-12-04 10:16:58 +0200

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

Stats

Asked: 2017-12-04 01:32:18 +0200

Seen: 1,716 times

Last updated: Dec 04 '17