Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show value on 'marker' in an X-Y Plot not the variable name

Status
Not open for further replies.

Lukaz

Mechanical
Feb 26, 2005
8
Hello,

is it possible to show the value of a variable on the markers of an X-Y plot?
For example if a(x)=2x, I insert a(x) on the marker indicator and I would like it top show a value of, for example 10 in case of x=5, instead of a(x).

Thanks in advance,

L van Rijsewijk
Netherlands
 
Replies continue below

Recommended for you

You could turn on the trace function

TTFN

FAQ731-376
 
I'm familiar with the trace option, but I would like to show the coordinate(s) value(s) of a point in the graph.

Do you have any other suggestion?


Regards,

L van Rijsewijk
Netherlands
 
????

That's exactly what Trace does?????

TTFN

FAQ731-376
 
Trace must be used manually. I would like something automated.
My (simplified) case:

I have plotted a function f(x,a,b,c,d). By each change of a,b,c,d I do not want to find the max value in a range by myself using trace. I want the value of the coordinate which, for example, defines the max value to be plotted in the graph. This is something that can be done with with the "show markers" feature, atleast that's what I would expect, otherwise the feature is pretty redundant.But instead of showing the actual value of this coordinate it shows the function which defines this coordiante.
 
Make an array of the points plotted and use the max function to find the largest value in the array.
 
Then you assign indices to your specific inputs and find the maxima for each index.

There is no need to use the plot to do that at all. Your OP leads one to think that your problem is something else. If you have an example file, you should post it.

TTFN

FAQ731-376
 
My question is not about finding the max value or the way to compute anything for that matter, I solely used the "max value" as an example. I'll try again...

I would like to view an x and y coordinate in a graph, thus for example: [2.33,6.91]. This coordinate is defined by a function, for example [x,f(x,a,b,c,d)]. Is it possible to show the actual values of this coordinate in a plot?

Now, if I use the "show marker" option in a plot it draws a horizontal line at "f(x,a,b,c,d)" and a vertical line at "x". But instead of showing the actual values it shows the function name (in this case f(x,a,b,c,d) & x).

So my question is; can this be done with Mathcad?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor