Questions of graph of a function

Questions of graph of a function - Messaggi

#1 Pubblicato: 31/07/2024 00:55:33
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Hello! Please tell me for 2 questions:

1) How to build a graphs of function if the document has units of measurement? If I do "Ignore inits", then everything works. But I would like to with units of measurements
111.sm (33,1 KiB) scaricato 1717 volta(e).

2) Using plugin ComboBox I want to build graphs of 4 functions

222.PNG

Graphs of functions σ.x(x), σ.t(x), Mx(x) are built.

File non trovato. File non trovato. File non trovato.

Graph of functions σ.ekv(x) is not build. Why?

555.PNG
#2 Pubblicato: 31/07/2024 01:26:33
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Don't "Ignore units", eliminate them.
Easiest way is to divide.

Regards

2024-07-30_21-26.png
#3 Pubblicato: 01/08/2024 00:23:24
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Wrote

Don't "Ignore units", eliminate them.
Easiest way is to divide.

Regards

2024-07-30_21-26.png



In my example it doesn't work like that.
#4 Pubblicato: 01/08/2024 01:37:29
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Очень странное поведение, возьму на заметку. Компоненту не нравится выражение под знаком корня.
Russia ☭ forever, Viacheslav N. Mezentsev
#5 Pubblicato: 01/08/2024 02:55:39
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

The success of plotting seems to depend on how the expression is accessed. Possibly it is a Combobox issue.

BTW, in Maxima, the intermediate definition of P is not required. This is a necessary step for X-Y Plot only.

2024-07-31 21_53_39-SMath Solver - [111_Kr.sm_].png
111_Kr.sm (60,2 KiB) scaricato 1664 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 Pubblicato: 01/08/2024 09:27:50
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Wrote

Очень странное поведение, возьму на заметку. Компоненту не нравится выражение под знаком корня.



Если строить график отдельно, то он строится, проблем нет. Именно при Combobox'е не хочет

2222.PNG
#7 Pubblicato: 03/08/2024 01:58:09
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Wrote

The success of plotting seems to depend on how the expression is accessed. Possibly it is a Combobox issue.

BTW, in Maxima, the intermediate definition of P is not required. This is a necessary step for X-Y Plot only.

2024-07-31 21_53_39-SMath Solver - [111_Kr.sm_].png
111_Kr.sm (60,2 KiB) scaricato 1664 volta(e).



Thanks for the answer!

How can I replace it?

Snimok.PNG

on this

Snimok1.PNG
#8 Pubblicato: 03/08/2024 03:49:27
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

In my example it doesn't work like that.


I only meant to say don't ignore units unless it is utmost necessary.
Here is your file totally working with units and plotted.

111_examination.sm (38,72 KiB) scaricato 1735 volta(e).

When I talk about your problem, I guess it is a parse bug of combobox.
Because it can plot normally when function called directly.
And radiobutton and combobox list is not affected if you use like this.

File non trovato. File non trovato.

This combobox issue is not limited to XYPlot, 2DPlot is affected too.
When combobox result is directly your symbolic function, it doesn't work.
However, when your function is simplified someway, it can be plotted.

2024-08-02_23-48.png

This bug should be examined by author of combobox plugin.

Regards
#9 Pubblicato: 03/08/2024 05:39:17
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote



Thanks for the answer!

How can I replace it?

on this



I guess you want to set the limits depending on the selected function.

Let the combobox return the index of the selection and then use it to pick the appropriate values from lists.
In Maxima, you also can set the axes labels and the trace legend text using SMath expressions.



Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#10 Pubblicato: 03/08/2024 18:45:06
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Most of time, eval() or line() is your friend.
This change made your function available to plot.

Regards

2024-08-03_14-43.png

2024-08-03_14-43_1.png
1 utenti hanno apprezzato questo post
#11 Pubblicato: 04/08/2024 01:21:28
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Thanks everyone for your answers!
#12 Pubblicato: 04/08/2024 01:36:26
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Wrote

Wrote



Thanks for the answer!

How can I replace it?

on this




Let the combobox return the index of the selection and then use it to pick the appropriate values from lists.
In Maxima, you also can set the axes labels and the trace legend text using SMath expressions.





Can you tell us more?
If possible with an example.

Yes, I would like to substitute values ​​from the results for set the limits

Snimok.PNG
#13 Pubblicato: 05/08/2024 03:51:31
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

111_Kr2.sm (60,85 KiB) scaricato 1693 volta(e).
2024-08-04 22_47_06-SMath Solver - [111_Kr.sm_].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#14 Pubblicato: 05/08/2024 04:32:19
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Wrote

111_Kr2.sm (60,85 KiB) scaricato 1693 volta(e).
Click to expand


I like the way limits determined by YLimMin, XLimMax, etc.
However, if you rename XYPlot to XYPlots or Plot1 or whatever, this method doesn't work particular plot.
Actually, all XYPlot are affected by XYPlot.option disregarding name of plot.
Is this a bug or a feature?

Regards
1 utenti hanno apprezzato questo post
sergio 05/08/2024 15:36:00
#15 Pubblicato: 05/08/2024 04:45:30
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

As far as I understand, you can control multiple plots individually by providing vector values to the XYPlot-variables. In the settings you select select SourceType->PropertyGrid and provide the index to use for accessing the values.

You find an example in the interactive handbook (Plugins->X-Y Plot Region).

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 utenti hanno apprezzato questo post
sergio 05/08/2024 15:36:00
#16 Pubblicato: 08/08/2024 23:42:02
Prmtv

Prmtv

0 apprezzamenti in 49 post.

Gruppo: User

Wrote

111_Kr2.sm (60,85 KiB) scaricato 1693 volta(e).
2024-08-04 22_47_06-SMath Solver - [111_Kr.sm_].png



Thank you very much! That's what I needed.

The only question is: does SMath have auto-scaling of axes as it was in Mathcad? this would greatly simplify the process)
#17 Pubblicato: 09/08/2024 01:43:28
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Использование Properties source - это исторически первый способ управления компонентом из документа, он был оставлен для совместимости со старыми документами.
Автомасштабирование в компоненте XY Plot не реализовано из-за того, что я не нашел удобного алгоритма поведения для комбинации явных и неявных графиков. Для отображения неявного графика область должна быть задана конкретно, а для автомасштабирования наоборот не задана.
Russia ☭ forever, Viacheslav N. Mezentsev
#18 Pubblicato: 09/08/2024 15:04:34
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

Wrote

111_Kr2.sm (60,85 KiB) scaricato 1693 volta(e).
Click to expand


I like the way limits determined by YLimMin, XLimMax, etc.
However, if you rename XYPlot to XYPlots or Plot1 or whatever, this method doesn't work particular plot.
Actually, all XYPlot are affected by XYPlot.option disregarding name of plot.
Is this a bug or a feature?

Regards



I can add this option to customize the properties

xyplot set properties from sheet.png
Russia ☭ forever, Viacheslav N. Mezentsev
#19 Pubblicato: 12/11/2024 07:02:29
Mo

Mo

0 apprezzamenti in 34 post.

Gruppo: User

hi, For some reason the "Property source" is not shown now. I am using version 1.2 build 9018 dated 09-sep-2024.
how to assign/control plot properties now?
smath.jpg
#20 Pubblicato: 12/11/2024 08:08:01
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Wrote

how to assign/control plot properties now?



The answer can be found here.


Russia ☭ forever, Viacheslav N. Mezentsev
  • Nuovi post
  • Nessun nuovo post