Graphics, Figures & Tables ⇒ How to add text near expression in tikzpicture
-
- Posts: 11
- Joined: Wed May 17, 2017 5:34 pm
How to add text near expression in tikzpicture
Is there option to add text near \addplot option. So I can write like y=x^2 + 2 or something like that? Can you help me liek this, or you need example of my code?
Last edited by Safari8331 on Sat May 27, 2017 2:12 pm, edited 2 times in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
How to add text near expression in tikzpicture
Yes, please post the code. You could post data as attachment here (perhaps with .txt file name extension), or dummy data, or empty plots. But code for the diagram with axes is needed, otherwise we don't know how it's made at all, such as by the TikZ data visualization or using pgfplots.
Stefan
Stefan
LaTeX.org admin
-
- Posts: 11
- Joined: Wed May 17, 2017 5:34 pm
How to add text near expression in tikzpicture
I cant post it, they are too big for upload. But I have x coordinate from 0-50, and y from 0 to -150. If is that what you are looking for?
Last edited by Safari8331 on Sat May 27, 2017 2:15 pm, edited 2 times in total.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
How to add text near expression in tikzpicture
Here's a way how you can print text in the picture based on the coordinates - put a node with
Stefan
axis cs
coordinates before \end{axis}
:Code: Select all
\node at (axis cs: 40,-120) {(S1-S15)};
LaTeX.org admin
-
- Posts: 11
- Joined: Wed May 17, 2017 5:34 pm
How to add text near expression in tikzpicture
Thanks a lot mate