topic Re: Plotting raw data and function on same set of axes - Mathcad 15 in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17255#M6818
<HTML><HEAD></HEAD><BODY><P>If you use a new entry on the y-axis it needs a corresponding entry on the x-axis. If ther is none, the last one on the x-axis is used instead.</P><P></P><P>So from your description I guess you have a function lile f(x) and a vector od y-data values on your y axis. That way you would need an independent variable x (either use quickplot or define x as range) AND a vector of x data values on your x-axis.</P><P></P><P>An alternative, which was also shown above, is to use only the data value on the x axis, lets say its X, and use Y and f(X) (eventually you need to vectorize that call) on the y axis. You will lose the intermediate values of your function that way, though,as it sill aonly be evaluated at your data points.</P><P></P><P>BTW, it would have been a good idea if you had attached your worksheet so we would not have to guess what exactly you did wrong.</P></BODY></HTML>Sun, 28 Aug 2016 14:56:01 GMTWerner_E2016-08-28T14:56:01ZPlotting raw data and function on same set of axes - Mathcad 15
https://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17252#M6815
Hi guys,I need to plot some raw data (experimental) and a function representing a model on the same set of axes in order to compare accuracy of the model relative to the experimental data. I am able to plot each one on separate axes without any problem, however when I try to add theThu, 03 May 2018 14:16:34 GMThttps://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17252#M6815rkalebbo2018-05-03T14:16:34ZRe: Plotting raw data and function on same set of axes - Mathcad 15
https://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17253#M6816
<HTML><HEAD></HEAD><BODY><P>Without your worksheet it's hard to guess exactly what goes wrong.</P><P>You should either make sure to evaluate your function on each of the experimental (x-axis) points, or use a separate running variable for plotting the function:</P><P><IMG __jive_id="105728" alt="" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/105728_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /></P><P>Above is the separate running variable. Below uses the x-data points from the data table:</P><P><IMG __jive_id="105729" alt="" class="jive-image image-2" src="https://community.ptc.com/legacyfs/online/105729_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /></P><P>Success!<BR />Luc</P></BODY></HTML>Sun, 28 Aug 2016 14:26:37 GMThttps://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17253#M6816LucMeekes2016-08-28T14:26:37ZRe: Plotting raw data and function on same set of axes - Mathcad 15
https://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17254#M6817
<HTML><HEAD></HEAD><BODY><P style="font-size: 15px; font-family: ff-din-web, Arial, sans-serif; color: #3d3d3d;">Hi. Something like this?</P><P style="font-size: 15px; font-family: ff-din-web, Arial, sans-serif; color: #3d3d3d;">Best regards.</P><P style="font-size: 15px; font-family: ff-din-web, Arial, sans-serif; color: #3d3d3d;">Alvaro.</P><P style="font-size: 15px; font-family: ff-din-web, Arial, sans-serif; color: #3d3d3d;"></P><P style="font-size: 15px; font-family: ff-din-web, Arial, sans-serif; color: #3d3d3d;"><IMG alt="splines.gif" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/105732_splines.gif" style="height: auto;" /></P></BODY></HTML>Sun, 28 Aug 2016 14:34:53 GMThttps://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17254#M6817AlvaroDÃaz2016-08-28T14:34:53ZRe: Plotting raw data and function on same set of axes - Mathcad 15
https://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17255#M6818
<HTML><HEAD></HEAD><BODY><P>If you use a new entry on the y-axis it needs a corresponding entry on the x-axis. If ther is none, the last one on the x-axis is used instead.</P><P></P><P>So from your description I guess you have a function lile f(x) and a vector od y-data values on your y axis. That way you would need an independent variable x (either use quickplot or define x as range) AND a vector of x data values on your x-axis.</P><P></P><P>An alternative, which was also shown above, is to use only the data value on the x axis, lets say its X, and use Y and f(X) (eventually you need to vectorize that call) on the y axis. You will lose the intermediate values of your function that way, though,as it sill aonly be evaluated at your data points.</P><P></P><P>BTW, it would have been a good idea if you had attached your worksheet so we would not have to guess what exactly you did wrong.</P></BODY></HTML>Sun, 28 Aug 2016 14:56:01 GMThttps://community.ptc.com/t5/PTC-Mathcad/Plotting-raw-data-and-function-on-same-set-of-axes-Mathcad-15/m-p/17255#M6818Werner_E2016-08-28T14:56:01Z