Assume you have a trigonometric function, say for simplicity sin(x). When plotting the function, how can one place the x-axis markers on 0, pi/2, pi, 3pi/2, 2pi, instead of the default numeric values that pgfplots uses?
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
|
|||||
|
|
Use
If you don't want a label a particular tick mark, just leave that one blank. For example, if you did not want the label at pi you would replace the line with |
|||||||||||
|
|
You can specify the position of the ticks using the
Taken from page 183 of the manual. |
|||
|
|
|
Using
Which is maybe simpler. Maybe not... I'm using explicit representation of the axis' labels.
|
||||
|
|

