TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Say I have the following function which I would like to plot.


While I could specify it in the \addplot command, I was just wondering whether there might be a more efficient method where I could label it in some sense (since it is already mentioned in the document) and call it by a macro.

In fact I would like to see how it changes by differing values of the parameters additionally.

share|improve this question

There is no way to plot a function which is prepared for math typesetting. You will need to replicate the function by means of something like

\pgfmathdeclarefunction{S}{1}{\valueP * (\alphaH + \valueZ * \alphaW) / (\valueP*(\alphaH + \valueZ * \alphaW) + \betaH + \valueZ * \betaW)}



you can also declare a function with more than one argument instead of defining constants.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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