Skip to main content
1-Visitor
April 20, 2011
Question

Dynamic Legend in Graph?

  • April 20, 2011
  • 4 replies
  • 3791 views

Is there a way to update a graph legend dynamically?

What I want to do is show the value of a variable in the legend. When the value of the variable changes, I want the legend to automatically update.

Using Mathcad 15.

4 replies

23-Emerald I
April 20, 2011

Andrew Kelly wrote:

Is there a way to update a graph legend dynamically?

What I want to do is show the value of a variable in the legend. When the value of the variable changes, I want the legend to automatically update.

Using Mathcad 15.

Not in version 15 (or any predicessor.)

The tags in Prime can be entered as variables and will show a numeric value (but not the variable name.) That's as close as you can come in Mathcad.

You could embed an EXCEL component and execute the graph in EXCEL. There are ways to dynamically vary the legend in EXCEL.

19-Tanzanite
April 20, 2011

Take a look at this worksheet. The graph title is a MS Forms 2.0 label component. You could do the same thing with a Mathsoft textbox. I used the MS Forms 2.0 label only because it has more properties I can set.

1-Visitor
April 21, 2011

Very nice Richard.

An embedded Excel component would work too. The graph could be produced in Mathcad and the title and legend displayed in Excel.

Mike

24-Ruby IV
April 21, 2011

May be the attach help you.