Skip to main content
23-Emerald IV
December 25, 2021
Solved

Toolbox: Text plotting

  • December 25, 2021
  • 5 replies
  • 14271 views

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

Best answer by LucMeekes

Hi Werner,

 

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

 

Luc

5 replies

24-Ruby III
December 26, 2021

Thanks!

23-Emerald V
December 27, 2021

Very neat, Luc.  Concise, too.

 

Stuart

15-Moonstone
December 30, 2021

Thank you
Can I plot in 3D?  

LucMeekes23-Emerald IVAuthor
23-Emerald IV
December 30, 2021

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.

 

15-Moonstone
January 2, 2022

@ttokoro  I try to change ORIGIN=1 in program but error

LucMeekes23-Emerald IVAuthor
23-Emerald IV
January 7, 2022

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

 

Success!

Luc

15-Moonstone
January 7, 2022

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

 

LucMeekes23-Emerald IVAuthor
23-Emerald IV
January 7, 2022

Use the num2str() function:

LucMeekes_0-1641553163171.png

LucMeekes_1-1641553174204.png

LucMeekes_2-1641553221097.png

LucMeekes_3-1641553271689.png

 

Success!
Luc

 

1-Visitor
January 8, 2025

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

LucMeekes23-Emerald IVAuthor
23-Emerald IV
January 8, 2025

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