Skip to main content
1-Visitor
Feb 13, 2026 6:49 AM UTC
Solved

Troubles with units in plots

Hi Everyone,

 

I have tried to implement a slider combined with markers to display values from my plot. However, by doing this I get an error for plotting my functions themselves, and I believe it might be because of the units.

I have attached a picture and the file itself below.

aahc_0-1770965245719.png

I am using mathcadprime 10.0.1. I hope you can help!

 

Best regards,

Adam

Werner_E
Werner_EAnswer
25-Diamond I
Feb 13, 2026 7:04 AM UTC

No, it's neither the slider nor the units - its much simpler 😉

Prime reads from top down and from left to right. 

The (unfortunately invisible) reference point of your plot region is a little bit higher than the definition of the range "t" at the right of your plot. That way the range "t" is not yet known by the plot region and that's exactly what the error message is telling you (but checking the labels does not help in this case);

Werner_E_1-1770966796973.png

 

So the simple solution is to move the definition of "t" upward until the plot works OK (moving the plot region further down would work OK, too, of course).

Of course you also will have to manually set the unit "day" for the x-axis:

Werner_E_0-1770966254478.png

I also changed colors and line width for better visability.

 

2 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Feb 13, 2026 7:04 AM UTC

No, it's neither the slider nor the units - its much simpler 😉

Prime reads from top down and from left to right. 

The (unfortunately invisible) reference point of your plot region is a little bit higher than the definition of the range "t" at the right of your plot. That way the range "t" is not yet known by the plot region and that's exactly what the error message is telling you (but checking the labels does not help in this case);

Werner_E_1-1770966796973.png

 

So the simple solution is to move the definition of "t" upward until the plot works OK (moving the plot region further down would work OK, too, of course).

Of course you also will have to manually set the unit "day" for the x-axis:

Werner_E_0-1770966254478.png

I also changed colors and line width for better visability.

 

Translate
aahc1-VisitorAuthor
1-Visitor
Feb 13, 2026 7:09 AM UTC

Hi Werner_E,

 

You are completely right, thank you so much for the help!

 

Best regards,

Adam

Translate