Skip to main content
23-Emerald V
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

Hi Werner,

 

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

 

Luc

47 replies

24-Ruby IV

Thanks!

Translate
23-Emerald V

Very neat, Luc.  Concise, too.

 

Stuart

Translate
15-Moonstone

Thank you
Can I plot in 3D?  

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V

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

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

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

 

Success!

Luc

Translate
15-Moonstone

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

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

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

Translate
LucMeekes23-Emerald VAuthor
23-Emerald V

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