Skip to main content
23-Emerald V
Dec 25, 2021 10:24 PM UTC
Solved

Toolbox: Text plotting

Attached is a Prime 4 file that allows you to plot text in a graph, like:

LucMeekes_0-1640470911541.png

Of course it runs in Prime Express...

 

Enjoy!

Luc

LucMeekesAnswer
23-Emerald V
Nov 6, 2024 11:00 PM UTC

Hi Werner,

 

Thanks for pointing that out. I think it's corrected now.

 

Luc

47 replies

24-Ruby IV
Dec 26, 2021 12:43 PM UTC

Thanks!

Translate
23-Emerald V
Dec 27, 2021 9:56 PM UTC

Very neat, Luc.  Concise, too.

 

Stuart

Translate
15-Moonstone
Dec 30, 2021 10:20 AM UTC

Thank you
Can I plot in 3D?  

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V
Dec 30, 2021 11:08 AM UTC

I don't know. Prerequisite is that you have access to the full functionality of Prime. I'm limited to Express...

The text plotting functions create matrices of many rows and two columns. I think that for 3D plotting you'd need 3 columns. Now it's easy to augment the matrix with another row. Suppose T is the output of a text plotting function then you could add the third column with:

     T:= augment(T,update1(0,last(T),0)+z)

to position your text on the x-y plane at elevation z.

The other thing is that the T will contain NaN values. I don't know if the 3D plots will accept them.

 

Success!

Luc

 

P.S. The better way to create the z-coordinates may be:

LucMeekes_0-1640867392955.png

Which will preserve the NaN values.

 

Translate
Werner_E
25-Diamond I
Dec 31, 2021 3:36 AM UTC

The other thing is that the T will contain NaN values. I don't know if the 3D plots will accept them.

While the 3D plot in Prime in no way can live up to that in real Mathcad, it has at least the advantage of accepting NaN's like the 2D plot in Mathcad does.

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V
Jan 7, 2022 10:19 AM UTC

Corrected errors that prevented it from working with ORIGIN values other than 0.

 

Success!

Luc

Translate
15-Moonstone
Jan 7, 2022 10:50 AM UTC

Great @LucMeekes  both 2D &3D.big thank
maybe this last question hahaha. how to convert from Number to Text in Prime for Plot Number?
Best regards SPRSTRUCTURE

SPRstructur_0-1641552516537.png

 

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V
Jan 7, 2022 11:01 AM UTC

Use the num2str() function:

LucMeekes_0-1641553163171.png

LucMeekes_1-1641553174204.png

LucMeekes_2-1641553221097.png

LucMeekes_3-1641553271689.png

 

Success!
Luc

 

Translate
1-Visitor
Jan 8, 2025 1:12 PM UTC

Hi, do you know if it's possible to plot text like this in Mathcad 15?

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V
Jan 8, 2025 5:38 PM UTC

Yes, I do know.

And.

Yes, it's possible.

But I haven't created a Mathcad sheet yet with a copy of what's in the Prime sheet.

If you are in a hurry, have a look at the E-book "Creating amazing images" by Byrge Birkeland.

 

Success!
Luc

Translate