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 1 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,360 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,360 posts.

Group: Moderator

You can animate it too.

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

sinewave.gif
Edited 3/16/2026 1:42:30 PM
  • New Posts
  • No New Posts