How to plot a value of a curve of a certain point

Sotiris
New Altair Community Member
Hello,
Do you know if it is possible to plot a value of y for a given input value x? To make it little bit more clear… in order to plot the p1w1c1.x,y maximum / minimum value you call max(p1w1c1.y) or min(p1w1c1.y) but if you want to calculate-plot an y value for a given x value? Is it possible?
Thank you in advance
Tagged:
0
Answers
-
A bit late to the show, but you could use following statements:
getvalue will loook for first instance of the given value (here: 40) in X and returns Y of same index.
To interpolate if value is not exactly found in X, use linear interpolation with lininterp.{getval2(p1w1c1.x, p1w1c1.y, 40)}
{lininterp(p1w1c1.x, p1w1c1.y, 40)}
<?xml version="1.0" encoding="UTF-8"?>
0