X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Сообщения

#601 Опубликовано: 06.12.2024 18:22:37
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

SMath Studio compatibility History page Changes

Plugin updated. This string representation is standard for c# Font type.

Changes:

- added font setting for text labels.

xyplot-text-lablels-font-example.sm (6 КиБ) скачан 43 раз(а).

xyplot-text-lablels-font-example.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
5 пользователям понравился этот пост
ioan92 06.12.2024 23:13:00, sergio 06.12.2024 23:38:00, churichuro 07.12.2024 01:06:00, Oscar Campo 06.12.2024 19:38:00, francesco rapuano 06.12.2024 21:19:00
#602 Опубликовано: 06.12.2024 23:21:43
ioan92

ioan92

171 сообщений из 102 понравились пользователям.

Группа: User

Thanks Viacheslav for this excellent work
Would it be possible to add the font color ?
Do to others as you would like them to do to you! Knowledge is of no value unless you put it into practice - Chekhov
#603 Опубликовано: 06.12.2024 23:40:53
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

The color can be set in the same way as before.

xyplot-text-labels-font-example.png
Russia ☭ forever, Viacheslav N. Mezentsev
4 пользователям понравился этот пост
sergio 07.12.2024 01:47:00, ioan92 06.12.2024 23:52:00, Oscar Campo 07.12.2024 00:02:00, francesco rapuano 07.12.2024 00:22:00
#604 Опубликовано: 07.12.2024 18:19:53
francesco rapuano

francesco rapuano

12 сообщений из 38 понравились пользователям.

Группа: User

Now Uni there is a last effort ro address the issue of the font zooming , I imagine that it would be possible to trap the mouse weel event and scale the fonts used in the text in the XY Plot Plugin accordingly.
My best wishes to succeed , best regards

Franco
#605 Опубликовано: 15.12.2024 10:54:36
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Scalable monospaced bitmapped fonts in XYPlot.

txt.png

XYPlot - Scalable monospaced bitmapped fonts.pdf (419 КиБ) скачан 22 раз(а).

XYPlot - Scalable monospaced bitmapped fonts.sm (3 МиБ) скачан 37 раз(а).

Best regards.
Alvaro.
3 пользователям понравился этот пост
ioan92 15.12.2024 15:00:00, francesco rapuano 15.12.2024 23:18:00, Oscar Campo 16.12.2024 09:28:00
#606 Опубликовано: 16.12.2024 00:27:20
usamakhan

usamakhan

3 сообщений из 75 понравились пользователям.

Группа: User

In this post @mkraska referred:

Цитата

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



What does he mean?
#607 Опубликовано: 18.12.2024 03:35:18
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote

What does he mean?


Something like that I suppose.

xyplot-copy-properties-legend.jpg

Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Martin Kraska 18.12.2024 06:10:00
#608 Опубликовано: 18.12.2024 07:16:42
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Wrote

What does he mean?


Something like that I suppose.

xyplot-copy-properties-legend.jpg



Somehow I don't manage to produce the traces settings in a loop.

2024-12-18 01_11_12-SMath Solver - [NaOH_Demiwater_VECTOR_Kr.sm_].png
NaOH_Demiwater_VECTOR_Kr.sm (197 КиБ) скачан 29 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
Oscar Campo 18.12.2024 08:15:00, francesco rapuano 18.12.2024 17:07:00, Alvaro Diaz Falconi 18.12.2024 08:43:00
#609 Опубликовано: 18.12.2024 08:44:45
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Hi. How to fill a half plane and a half wave?

filling.png

filling question.sm (5 КиБ) скачан 29 раз(а).

Best regards.
Alvaro.
#610 Опубликовано: 18.12.2024 09:33:37
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: Moderator

Some manipulations...

[albumimg]1729[/albumimg]

filling approach.sm (13 КиБ) скачан 32 раз(а).

Best,
Oscar
3 пользователям понравился этот пост
Вячеслав Мезенцев 18.12.2024 17:11:00, Alvaro Diaz Falconi 18.12.2024 09:42:00, francesco rapuano 18.12.2024 17:08:00
#611 Опубликовано: 18.12.2024 09:41:37
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

Some manipulations...



Gracias Oscar! Very clever solutions, especially the half plane one.

Best regards.
Alvaro.
2 пользователям понравился этот пост
francesco rapuano 18.12.2024 17:08:00, Oscar Campo 18.12.2024 11:12:00
#612 Опубликовано: 18.12.2024 15:09:49
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote

Somehow I don't manage to produce the traces settings in a loop.


This needs to be done differently. Alvaro showed a working version somewhere here. You need to include the assignment sign in the string and then transform the text expression in a cycle. The thing is that substitution in curly brackets is not a native operation, but a feature of the component. Therefore, the substitution will not occur this way; you need to form the full expression in the text representation.

spherical aberration.sm (26 КиБ) скачан 32 раз(а).

lens.png
Russia ☭ forever, Viacheslav N. Mezentsev
#613 Опубликовано: 18.12.2024 18:16:41
Oscar Campo

Oscar Campo

124 сообщений из 298 понравились пользователям.

Группа: Moderator

Wrote

Somehow I don't manage to produce the traces settings in a loop.



An example...

[albumimg]1731[/albumimg]

Assign Properties by Loop.sm (19 КиБ) скачан 26 раз(а).

Best,
Oscar
#614 Опубликовано: 18.12.2024 19:23:56
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Wrote

Hi. How to fill a half plane and a half wave?


I might try adding behavior for endpoints when filling paths. Right now the default behavior is to just close the endpoints, but that behavior could be changed. For that, I'd need to iterate over all possible use cases.
Russia ☭ forever, Viacheslav N. Mezentsev
#615 Опубликовано: 18.12.2024 20:21:39
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote

Wrote

Hi. How to fill a half plane and a half wave?


I might try adding behavior for endpoints when filling paths. Right now the default behavior is to just close the endpoints, but that behavior could be changed. For that, I'd need to iterate over all possible use cases.



In Maxima draw, there is an option filled_function, which allows to specify a second function which defines the other side of the fill. Simply saying 0 fills to the axis, some big value fills to the boundary (top or bottom). This is much like in the hatch snippet, where 2 functions are specified.

In X-Y plot you could take a second function of the same variable in a row or in a list (just like with parametric functions, just with undefined dummy variable or you could say "to next", referring to the next trace, other options could be "to x", "to y", "to top" "close along border" etc.


Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
Alvaro Diaz Falconi 19.12.2024 05:18:00, Вячеслав Мезенцев 18.12.2024 21:02:00
#616 Опубликовано: 18.12.2024 20:32:24
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

So I understand if I don't use {} in a loop then I am safe. Of course, I could use p while building the string in the loop.

2024-12-18 14_28_13-SMath Solver - [NaOH_Demiwater_VECTOR_Kr.sm].png
NaOH_Demiwater_VECTOR_Kr.sm (197 КиБ) скачан 33 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#617 Опубликовано: 19.12.2024 05:24:50
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

... In Maxima draw, there is an option filled_function, which allows to specify a second function which defines the other side of the fill. Simply saying 0 fills to the axis, some big value fills to the boundary (top or bottom). This is much like in the hatch snippet, where 2 functions are specified.



Thanks Martin! It works fine.

[albumimg]1732[/albumimg]

draw2d-filled.sm (29 КиБ) скачан 27 раз(а).

Wrote

... In X-Y plot you could take a second function of the same variable in a row or in a list (just like with parametric functions, just with undefined dummy variable or you could say "to next", referring to the next trace, other options could be "to x", "to y", "to top" "close along border" etc.



I don't know how to do that.

Best regards.
Alvaro.
1 пользователям понравился этот пост
Oscar Campo 19.12.2024 08:15:00
#618 Опубликовано: 19.12.2024 06:48:52
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Wrote



Wrote

... In X-Y plot you could take a second function of the same variable in a row or in a list (just like with parametric functions, just with undefined dummy variable or you could say "to next", referring to the next trace, other options could be "to x", "to y", "to top" "close along border" etc.



I don't know how to do that.

Best regards.
Alvaro.



That was just a proposal as to what control options I'd find useful.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Alvaro Diaz Falconi 19.12.2024 11:32:00
#619 Опубликовано: 19.12.2024 11:33:23
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

Wrote

... That was just a proposal as to what control options I'd find useful.


Thanks Martin. I found it very useful too, and I thought it was already a reality. Although I think my reading comprehension was not at its best level.
Best regards.
Alvaro.
#620 Опубликовано: 20.12.2024 07:55:32
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1674 понравились пользователям.

Группа: User

A way for filling the region between curves, combining Oscar's box and Martin's fill_func.

[albumimg]1734[/albumimg]

XYFilling.sm (24 КиБ) скачан 38 раз(а).

Best regards.
Alvaro.

5 пользователям понравился этот пост
Oscar Campo 20.12.2024 09:28:00, ioan92 20.12.2024 15:03:00, Вячеслав Мезенцев 20.12.2024 15:37:00, sergio 20.12.2024 18:26:00, francesco rapuano 20.12.2024 20:42:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений