I want to know the x
value and the y
value on a pgfplot area to draw a line. How to find it?
For an example, I need to draw a line from the X label to the Y label; to do so I need to get the x
value and the y
value of the labels to fill the \pslineoptions
thing.
I am using Texmaker + Miktex.
screenshot of the texmaker window
MWE
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{pgfplots}\pgfplotsset{compat=1.18}
\author{Some dude's name}
\begin{document}
\begin{tikzpicture}
\begin{axis}
[
xlabel={x},
ylabel={y},
grid,
ticks=none
]
\addplot3[blue, no marks, surf, domain=0:1, samples=50] {25-5*x*x -y*y};
\end{axis}
\end{tikzpicture}
\end{document}
x value and y value
x value
andy value
? In wich coordinate system? If you need a line, why don't you draw it directly in the graph ? (\draw
and all TikZ commands work inpgfplots
)