cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Variables in Plot Titles

JGannon-disable
1-Newbie

Variables in Plot Titles

I often write applications which are used more than once. If I have many plots I would like to change the title each time I run:
10 REPLIES 10

I did something wrong and my post ended.

Anyway so the first time I might want the title
to "machine one" the next time "machine two"
Is there anyway to put a variable in the title?

Regards,
jtg

You can't do that, but there are workarounds. See this thread, and the threads/files referenced in it:

http://collab.mathsoft.com/read?56943,12e#56943

Richard

I have the same question too. And after two or three times trying to reach the old thread always ending in failure (error, page unreachable, timeout), I would like to ask RichardJ if you could put some hint what could the workaround(s) be?

Thanks a lot in advance

Regards

Claudio

Until Richard gets back or someone reposts where the old files went:

 

The work-around almost certainly involves scripting.

 

Scripting implies Mathcad 15 or earlier, no version of Prime supports scripting (yet.)

 

So if you're using Prime you're SOL!  Sorry.

Hi Fred,

no I'm old enough 🙂 to still use MathCAD 15.  I just forgot to write that. 

Regards

Claudio

One work-around would be to omit the plot title, and instead display a string variable above the plot.

Obvioulsy this is not ideal since it would display somthing like PlotTitle="Machine One".


@ClaudioPedrazzi wrote:

I have the same question too. And after two or three times trying to reach the old thread always ending in failure (error, page unreachable, timeout), I would like to ask RichardJ if you could put some hint what could the workaround(s) be?

Thanks a lot in advance

Regards

Claudio


Yes, the transition from the old collab to the "new" forum was done so poorly by PTC like they are "developing" Prime. The the old links were not adjusted and in the majority of older post the attachments are missing now.

 

You would have to state, if you are using Prime or MC15.

I guess its MC, as Prime does not offer plot tiles altogether (that means: problem solved by PTC).

If its MC15, there may be different solutions depending whether you are talking about a 2D or  a 3D plot.

 

I have no idea where Richard pointed 11 years ago, but here is a solution which uses a scripted text box

WE171108_VariablePlotTitle.png

Thanks a lot Werner,

that's elegant!

I am not so familiar with scripting, so I always try something else.  I was just writing using a variable near the plot, like shown here:

Unbenannt.JPG

Thanks for sharing the solution.

Regards

Claudio

RichardJ
19-Tanzanite
(To:Werner_E)

I can't be sure what I pointed to either Smiley LOL

 

It was probably an earlier version of the attached file. It use MS Forms 2.0 labels rather than text boxes (more formatting options), but other than that it's the same idea.  Interestingly, the MS Forms 2.0 controls are no longer available, but the ones that are embedded in a Mathcad worksheet still work, and can be copied from one sheet to another.

Thanks a lot Richard for coming back to this old thread. 

Best regards

Claudio

Announcements