First time here? Check out the FAQ!

Ask Your Question
1

No tick marks

asked 7 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 7 years ago

eric_g gravatar image

updated 7 years ago

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.

Preview: (hide)
link

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: 7 years ago

Seen: 1,983 times

Last updated: Dec 04 '17