Generating multiple plots using loop with series name (legend)

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

#1 Pubblicato: 15/12/2024 20:21:27
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: 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,47 KiB) scaricato 1747 volta(e).
#2 Pubblicato: 15/12/2024 23:26:07
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,46 KiB) scaricato 1809 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
usamakhan 16/12/2024 00:25:00
#3 Pubblicato: 15/12/2024 23:58:49
usamakhan

usamakhan

7 apprezzamenti in 97 post.

Gruppo: 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
  • Nuovi post
  • Nessun nuovo post