X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Messaggi

#641 Pubblicato: 24/07/2025 08:18:27
Ed

Ed

2 apprezzamenti in 9 post.

Gruppo: User

Установил Development Tools. Но программа 'tst_xyplot_v2.sm' все равно не работает (но, наверное, этот плагин не для этого). В приложении - файл с моей системной информацией.

sys_info.txt (1,39 KiB) scaricato 1109 volta(e).
#642 Pubblicato: 24/07/2025 08:44:56
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

В папке плагина есть конфигурационный файл: %APPDATA%\SMath\extensions\plugins\c12231ec-4873-43c1-a7d0-a167ebd17066\0.3.9106.25707\XYPlotPlugin.config

Закройте SMath Studio и измените значение Debug в True:
<Debug>True</Debug>

После этого запустите SMath Studio. В этой же папке появится файл лога: XYPlotRegion.log

Приложите его сюда тоже. Там будет указано какая версия .Net используется плагином для работы.
Modificato 24/07/2025 08:45:42
Russia ☭ forever, Viacheslav N. Mezentsev
#643 Pubblicato: 24/07/2025 13:10:31
Ed

Ed

2 apprezzamenti in 9 post.

Gruppo: User

Sorry, switched to Russian. The file attached is the log-file after the prescribed 'magic' actions It is written in the file 'Net: 2.0...' I guess it is not what we need.

XYPlotRegion.log (574 B) scaricato 1170 volta(e).
Modificato 24/07/2025 13:11:27
#644 Pubblicato: 24/07/2025 14:51:12
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

It's strange that the old version of the framework is selected instead of the new one. In fact, this particular plugin is compatible with the old version, but I haven't tested it in such an environment for a long time.
Perhaps this is the reason.
For everyone else, including me, the new version of the framework is apparently selected.

You can try installing .Net Framework 4.8, for example. Maybe this will help.
Russia ☭ forever, Viacheslav N. Mezentsev
#645 Pubblicato: 24/07/2025 15:27:42
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

I was able to reproduce the problem. It is indeed a version issue.
You can also try another solution.

You can try changing the contents of the file: C:\Program Files (x86)\SMath Studio\Solver.exe.config
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
    <supportedRuntime version="v2.0.50727" />
  </startup>

You can try to remove the old version by deleting the line with it and adding the existing version. You can ask the deepseek to suggest a variant of writing these lines.

P.S. I fixed the error. The fix will be available in the next version of the plugin. The problem was in the plugin sources.
Modificato 24/07/2025 15:49:28
Russia ☭ forever, Viacheslav N. Mezentsev
#646 Pubblicato: 24/07/2025 15:57:27
Ed

Ed

2 apprezzamenti in 9 post.

Gruppo: User

It works finally. I can see now all plots in program 'tst_xyplot_v2.sm'. I could not download NET Framework 4.8 (some errors). But, as you suggested, I found a version of NET Framework installed on my computer (4.0.30319). I have changed "v2.0.50727" in the second line of 'supportedRuntime ...' to my number, and it works. Thank you for your help. I am really impressed by your dedication, supporting plugins and helping people for more than 15 years.
Modificato 24/07/2025 15:58:24
2 utenti hanno apprezzato questo post
Davide Carpi 24/07/2025 23:07:34, Вячеслав Мезенцев 24/07/2025 16:49:53
#647 Pubblicato: 24/07/2025 16:49:38
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

SMath Studio compatibility History page Changes

Plugin updated. Please try.

Changes:

- added support for high DPI when displaying fonts;
- fixed the CopyTo() method in HashSet.cs;
- supplemented the error message when trying to display complex numbers.

The last problem was related to an incorrect manual implementation of the CopyTo() method, which only now became apparent.
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
Davide Carpi 24/07/2025 23:07:30, sergio 25/07/2025 07:58:13
#648 Pubblicato: 25/07/2025 07:10:54
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Funny bug. When drawing shapes, the fill is also drawn, even if it is disabled in the curve properties. If you superimpose circles on top of each other, it creates the impression that the color depends on the radius.

image.png

XYPlot. Linear polar.sm (56,78 KiB) scaricato 2623 volta(e).
XYPlot. Linear polar.pdf (134,78 KiB) scaricato 1647 volta(e).
Modificato 25/07/2025 07:15:58
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
sergio 25/07/2025 08:03:42, Alvaro 25/07/2025 09:48:09
#649 Pubblicato: 25/07/2025 12:45:29
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

I think I can adapt this syntax to customize the properties of a set of curves.
.Traces##. - for all curves
.Traces#i#j. - for curves from i to j
.Traces##j. - for curves from 1 to j
.Traces#i#. - for curves from i to end

image.png
Modificato 25/07/2025 12:46:02
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Rafael H Padilla Velázquez 25/07/2025 15:39:21
#650 Pubblicato: 25/07/2025 17:44:21
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

Funny bug. ...


Hi Viacheslav. A workaround for the bug, and a simplified way to those plots.

image.png

XYPolar.sm (42,8 KiB) scaricato 1397 volta(e).

Best regards
Alvaro.

Modificato 25/07/2025 17:52:20
1 utenti hanno apprezzato questo post
#651 Pubblicato: 25/07/2025 20:42:20
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

SMath Studio compatibility History page Changes

Plugin updated. Please try.

Changes:

- fixed the problem with background filling when drawing shapes.
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
Alvaro 26/07/2025 06:05:37, sergio 26/07/2025 10:38:11
#652 Pubblicato: 26/07/2025 06:07:13
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

... Plugin updated. Please try.


It works fine.

Best regards.
Alvaro.
#653 Pubblicato: 26/07/2025 06:15:08
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

Wrote

I think I can adapt this syntax to customize the properties of a set of curves....


What about this notation?. And with the option for assigning a vector, like a colormap.
.Traces(,) - for all curves
.Traces(i,j) - for curves from i to j
.Traces(,j) - for curves from 0 to j
.Traces(i,) - for curves from i to end

Best regards.
Alvaro.
Modificato 26/07/2025 06:16:40
#654 Pubblicato: 26/07/2025 08:24:46
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

There will be vector support, but I don't use brackets, because it should work in different cases.

image.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Alvaro 27/07/2025 06:51:34
#655 Pubblicato: 26/07/2025 11:52:03
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

It's nice to combine and layer colors.

Click to enlarge
Modificato 26/07/2025 19:49:35
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
Andrey Ivashov 26/07/2025 11:54:07, Alvaro 27/07/2025 06:51:46
#656 Pubblicato: 26/07/2025 12:11:07
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

I have a bug when printing. This is a result of adjusting for high DPI.

Click to enlarge
Modificato 26/07/2025 19:48:48
Russia ☭ forever, Viacheslav N. Mezentsev
#657 Pubblicato: 26/07/2025 19:47:47
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

SMath Studio compatibility History page Changes

Plugin updated. Please try.

Changes:

- fixed printing issue in GetDpiScaledFont().

Implementing the scaling function is not easy, I will spend a couple more days testing and fixing bugs.
Modificato 26/07/2025 19:54:14
Russia ☭ forever, Viacheslav N. Mezentsev
#658 Pubblicato: 26/07/2025 20:24:12
Вячеслав Мезенцев

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

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

SMath Studio compatibility History page Changes

Plugin updated. Please try.

Changes:

- fixed issue with scaling grid label values.

I hope scaling will work properly for a while now.

Documents that were previously created at high resolution require adjustment of font size.
Modificato 26/07/2025 20:39:47
Russia ☭ forever, Viacheslav N. Mezentsev
#659 Pubblicato: 28/07/2025 11:03:23
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

A kind of Spider Web or Radar plot.

image.png

XYRadar.sm (21,83 KiB) scaricato 1341 volta(e).

Best regards.
Alvaro.
3 utenti hanno apprezzato questo post
Вячеслав Мезенцев 28/07/2025 11:21:35, francesco rapuano 28/07/2025 13:20:25, sergio 28/07/2025 19:43:31
#660 Pubblicato: 03/08/2025 20:38:44
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

I seem to have problems with the font size in the plugin. The font sizes in the plot region and on the canvas are inconsistent.

The canvas font is set to 10. While the label font is also set to 10 in the region, the labels appear much smaller.

Edit: Meanwhile I found out the reason for the problem. If I change the hardware setup while SMath is running (e.g. switching from docking station with external monitor to just the notebook with built-in monitor) I get the problem as indicated in the screenshot. Yet, if I restart SMath, the problem is fixed.

I don't know if the plot region is supposed to handle the situation without problems but at least I have a workaround.

problem nearly fixed (now the labels are slightly too big.)

image.png

original problem

image.png

System information:

Mostra spoiler



Modificato 03/08/2025 21:30:48
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Nuovi post
  • Nessun nuovo post