5

Background:

We can represent a point with (*<value> {<algebraic expression in x>}) syntax where the ordinate y is obtained by evaluating <algebraic expression in x for the given abscissa x that is equal to value.

As there is no the complementary syntax ({<algebraic expression in y>} *<value>) where the abscissa is evaluated based on the given ordinate, I try to use swapaxes.

Unfortunately, \pnode does not accept this swapaxes option.

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}

\def\y{2*x}

\begin{document}
\begin{pspicture}[showgrid](-3,-3)(3,3)
    \psset{swapaxes}
    \qdisk(*1 {\y}){3pt}
    \pnode(*-1 {\y}){A}
    \qdisk(A){3pt}
\end{pspicture}
\end{document}

enter image description here

Question:

Is there an instant solution for this problem?

marked as duplicate by Joseph Wright Sep 6 '13 at 9:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

PSTricks version 2.44 (2013-06-24), see texdoc pst-news13, has the coordinate option ** which does this:

\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pst-node}

\begin{document}
\begin{pspicture}[showgrid](-3,-3)(0,0)
    \pnode(**{2*y} -1){A}
    \qdisk(A){3pt}
\end{pspicture}
\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.