Closed pgf-tikz-bot closed 4 years ago
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/63/#c056 Author: nobody Timestamp: 2013-03-24 10:54:07
Thanks for the report! You are right, this is misleading...
What the paragraph should have expressed was: use "rawy" inside of math expressions and "\pgfmathrawy" in a context where programmatic access to that value is requested.
Consequently, the use-case to filter log axes could be addressed by means of the following minimal example:
\documentclass[a4paper]{article} \usepackage{german} \usepackage[utf8]{inputenc}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture} \begin{semilogyaxis} \addplot+[ restrict expr to domain={rawy}{1e0:1.5e1}, ]{exp(x)}; \end{semilogyaxis} \end{tikzpicture}
\end{document}
I inserted that example into the manual and rephrased the paragraph. It does not mention the \pgfmathrawy stuff anymore; I suppose it is misleading for almost everyone - except for those who already know how to address math parser functions programmatically (and they do not need it).
Concerning grep: there is a statement \pgfplotsmathdeclarepseudoconstant{rawx}{\let\pgfmathresult=\pgfplots@current@point@x@unfiltered}% somewhere, and that does the job.
I close this ticket as I suppose that my example does the job. Please complain if I missed some point.
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/63/#5265 Author: cfeuersaenger Timestamp: 2013-03-24 10:54:40
Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/63/ Author: *anonymous Timestamp: 2013-02-15 15:00:42
In the chapter 4.21 Skipping Or Changing Coordinates - Filters, the pgfplots manual says:
"This unprocessed data is available in the three math parser constants rawx, rawy and rawz (use \pgfmathrawx, \pgfmathrawy and \pgfmathrawz as a way to assign the value of interest to \pgfmathresult). All these values are ready for use in filters (and some other methods in influence plots as well)."
and recommends their use restricting the ranges of logarithmic axes:
"For logarithmic axes, min and max are logs of the respective values. A variant which uses the nonlogarithmic number might be to use 'restrict expr to domain={\pgfmathrawx}{min}{max}'."
This doesn't work for me, so I tried to find information on the command, which failed. Even grepping the source did not reveal any information on \pgfmathrawx (and -y and -z), apart from the quoted lines from the manual.