Plot - Units, different axis names than x, y, ...

Plot - Units, different axis names than x, y, ... - I cannot make any sensible and useful engineering plot working. - Messages

#1 Posted: 3/16/2026 10:36:26 AM
Olda Dajbych

Olda Dajbych

0 likes in 2 posts.

Group: User

Hello,
I am a satisfied SMath user and have recommended it to my engineering students. We have immediately stumbled over a huge problem. We are unable to show any meaningful graphs of real problems. With units, correct names or descriptions on axes, etc. I have tried everything, but once I don't see any errors, the graph still shows nothing. Then, there is an error, something like "Result is over max. positive number." I am just trying to display a sine wave voltage. Please, can somebody help me? I was googling extensively, but when there is a promising answer, it is very vague, just showing that it is possible without any help.

This is just my trials, but I have not been able to get any curves in the several graphs.



Edit: The image does not show. You can find it here: http://public.uli.cz/smath-plot.png

Thanks a lot
Olda
Edited 3/16/2026 10:37:57 AM
#2 Posted: 3/16/2026 12:13:23 PM
overlord

overlord

587 likes in 1,361 posts.

Group: Moderator

If you are working with vectors, you need to use vectorize().
If you are trying to plot, only Y axis values not enough.
You have to tell what are X values also.

Regards

2026-03-16_15-11.png
#3 Posted: 3/16/2026 1:39:19 PM
overlord

overlord

587 likes in 1,361 posts.

Group: Moderator

You can animate it too.

sinewave.sm (6.69 KiB) downloaded 17 time(s).

sinewave.gif
Edited 3/16/2026 1:42:30 PM
#4 Posted: 3/17/2026 9:33:46 AM
Olda Dajbych

Olda Dajbych

0 likes in 2 posts.

Group: User

Thank you very much!

Now, is there a reasonably simple way to get t [s] and U [V] to the axes? Or at least some description. I really love SMath, and I didn't need the plots because I am mostly doing some mechanical engineering and machine design linear calculations. But as soon as I showed that software to my more electrical engineering-focused students, they came up with this question. I have been using Mathcad (v14 and 15) for a long time, and there is no problem doing this task very easily. I have been really surprised by how big a problem it is for SMath.

Thanks a lot again
Olda
#5 Posted: 3/17/2026 1:25:56 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,534 likes in 1,850 posts.

Group: Moderator

Historically, many components in a document have only one placeholder. This applies to plot components as well. Therefore, working with them is different. With only one placeholder, it's difficult to explain to the component what's expected of it.
This was originally done to simplify component creation. It was later retained for compatibility reasons.
Now, by default, the argument range is taken from the plot itself; it doesn't need to be specified explicitly.

image.png

In the plot above, we say to use the x-axis value with a specific unit as an argument so that the calculation inside the component does not return an error.

Using a vector (range variable) is a special case for X-Y Plot.

image.png
Edited 3/17/2026 1:34:59 PM
Russia ☭ forever, Viacheslav N. Mezentsev
#6 Posted: 3/17/2026 1:55:30 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1,534 likes in 1,850 posts.

Group: Moderator

Wrote

Now, is there a reasonably simple way to get t [s] and U [V] to the axes? Or at least some description.


Mathcad will never be able to do this. This is one of the options.

image.png
Russia ☭ forever, Viacheslav N. Mezentsev
#7 Posted: 3/18/2026 5:36:04 AM
overlord

overlord

587 likes in 1,361 posts.

Group: Moderator

Wrote

Now, is there a reasonably simple way to get t [s] and U [V] to the axes?

Actually there is a simple way.
But you have to know something beforehand.
Because you are so used to it, you think mathcad-way.
You need to start thinking smath-way.

Regards

2026-03-18_08-32.png
  • New Posts
  • No New Posts