Generating multiple plots using loop with series name (legend)

Generating multiple plots using loop with series name (legend) - Messages

#1 Posted: 12/15/2024 8:21:27 PM
usamakhan

usamakhan

3 likes in 75 posts.

Group: User

I am using XY plot to generate multiple graphs, however I am doing it manually. How can I
1] Script a loop to dynamically generate multiple plots
2] Dynamically generate series name (which will be used for plot legend)

NaOH_Demiwater_VECTOR.sm (23 KiB) downloaded 24 time(s).
#2 Posted: 12/15/2024 11:26:07 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

If Maxima is an option for you, then you can entirely automate the production of plots.

For an overview on available plot objects and options see SMath with Maxima.

In X-Y Plot, you can use geometric objects to create the lines and perhaps also a legend.

BTW, there is no point of naming the variable Load.kAmp, because the value is converted to A anyways directly upon storage, unless you just store a number, bypassing the SMath unit system. When you retrieve numerical values, you decide what units to use, independently of what was originally used to specify the value.

2024-12-15 17_20_47-SMath Solver - [NaOH_Demiwater_VECTOR_Kr.sm].png
NaOH_Demiwater_VECTOR_Kr.sm (208 KiB) downloaded 23 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
usamakhan 12/16/2024 12:25:00 AM
#3 Posted: 12/15/2024 11:58:49 PM
usamakhan

usamakhan

3 likes in 75 posts.

Group: User

Unfortunately Maxima is not supported under Linux ..I am using MONO version

Also Image Region plugin is bugged under Linux

Extremely thanks for help anyway

Screenshot from 2024-12-15 20-03-28.png
  • New Posts New Posts
  • No New Posts No New Posts