X-Y Plot Region

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

#601 Posted: 12/6/2024 6:22:37 PM
Вячеслав Мезенцев

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

1,485 likes in 1,790 posts.

Group: 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.45 KiB) downloaded 431 time(s).

xyplot-text-lablels-font-example.jpg
Russia ☭ forever, Viacheslav N. Mezentsev
5 users liked this post
ioan92 12/6/2024 11:13:00 PM, sergio 12/6/2024 11:38:00 PM, churichuro 12/7/2024 1:06:00 AM, Oscar Campo 12/6/2024 7:38:00 PM, francesco rapuano 12/6/2024 9:19:00 PM
#602 Posted: 12/6/2024 11:21:43 PM
ioan92

ioan92

171 likes in 104 posts.

Group: 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 Posted: 12/6/2024 11:40:53 PM
Вячеслав Мезенцев

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

1,485 likes in 1,790 posts.

Group: Moderator

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

xyplot-text-labels-font-example.png
Russia ☭ forever, Viacheslav N. Mezentsev
4 users liked this post
francesco rapuano 12/7/2024 12:22:00 AM, sergio 12/7/2024 1:47:00 AM, ioan92 12/6/2024 11:52:00 PM, Oscar Campo 12/7/2024 12:02:00 AM
#604 Posted: 12/7/2024 6:19:53 PM
francesco rapuano

francesco rapuano

12 likes in 38 posts.

Group: 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 Posted: 12/15/2024 10:54:36 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: User

Scalable monospaced bitmapped fonts in XYPlot.

txt.png

XYPlot - Scalable monospaced bitmapped fonts.pdf (419.21 KiB) downloaded 318 time(s).

XYPlot - Scalable monospaced bitmapped fonts.sm (3.07 MiB) downloaded 383 time(s).

Best regards.
Alvaro.
3 users liked this post
Oscar Campo 12/16/2024 9:28:00 AM, ioan92 12/15/2024 3:00:00 PM, francesco rapuano 12/15/2024 11:18:00 PM
#606 Posted: 12/16/2024 12:27:20 AM
usamakhan

usamakhan

3 likes in 75 posts.

Group: User

In this post @mkraska referred:

Quote

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



What does he mean?
#607 Posted: 12/18/2024 3:35:18 AM
Вячеслав Мезенцев

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

1,485 likes in 1,790 posts.

Group: Moderator

Wrote

What does he mean?


Something like that I suppose.

xyplot-copy-properties-legend.jpg

Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Martin Kraska 12/18/2024 6:10:00 AM
#608 Posted: 12/18/2024 7:16:42 AM
Martin Kraska

Martin Kraska

1,259 likes in 2,185 posts.

Group: 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.3 KiB) downloaded 351 time(s).
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Alvaro Diaz Falconi 12/18/2024 8:43:00 AM, Oscar Campo 12/18/2024 8:15:00 AM, francesco rapuano 12/18/2024 5:07:00 PM
#609 Posted: 12/18/2024 8:44:45 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: User

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

filling.png

filling question.sm (5.05 KiB) downloaded 394 time(s).

Best regards.
Alvaro.
#610 Posted: 12/18/2024 9:33:37 AM
Oscar Campo

Oscar Campo

126 likes in 301 posts.

Group: Moderator

Some manipulations...

image_2024-12-17_213228975.png

filling approach.sm (13.75 KiB) downloaded 362 time(s).

Best,
Oscar
3 users liked this post
francesco rapuano 12/18/2024 5:08:00 PM, Alvaro Diaz Falconi 12/18/2024 9:42:00 AM, Вячеслав Мезенцев 12/18/2024 5:11:00 PM
#611 Posted: 12/18/2024 9:41:37 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: User

Wrote

Some manipulations...



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

Best regards.
Alvaro.
2 users liked this post
francesco rapuano 12/18/2024 5:08:00 PM, Oscar Campo 12/18/2024 11:12:00 AM
#612 Posted: 12/18/2024 3:09:49 PM
Вячеслав Мезенцев

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

1,485 likes in 1,790 posts.

Group: 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.41 KiB) downloaded 458 time(s).

lens.png
Russia ☭ forever, Viacheslav N. Mezentsev
#613 Posted: 12/18/2024 6:16:41 PM
Oscar Campo

Oscar Campo

126 likes in 301 posts.

Group: Moderator

Wrote

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



An example...

image_2024-12-18_064245517.png

Assign Properties by Loop.sm (19.05 KiB) downloaded 336 time(s).

Best,
Oscar
#614 Posted: 12/18/2024 7:23:56 PM
Вячеслав Мезенцев

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

1,485 likes in 1,790 posts.

Group: 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 Posted: 12/18/2024 8:21:39 PM
Martin Kraska

Martin Kraska

1,259 likes in 2,185 posts.

Group: 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 KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Alvaro Diaz Falconi 12/19/2024 5:18:00 AM, Вячеслав Мезенцев 12/18/2024 9:02:00 PM
#616 Posted: 12/18/2024 8:32:24 PM
Martin Kraska

Martin Kraska

1,259 likes in 2,185 posts.

Group: 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.5 KiB) downloaded 397 time(s).
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#617 Posted: 12/19/2024 5:24:50 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: 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.

draw2d-filled.png

draw2d-filled.sm (29.13 KiB) downloaded 360 time(s).

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 users liked this post
Oscar Campo 12/19/2024 8:15:00 AM
#618 Posted: 12/19/2024 6:48:52 AM
Martin Kraska

Martin Kraska

1,259 likes in 2,185 posts.

Group: 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 KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Alvaro Diaz Falconi 12/19/2024 11:32:00 AM
#619 Posted: 12/19/2024 11:33:23 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: 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 Posted: 12/20/2024 7:55:32 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1,039 likes in 1,703 posts.

Group: User

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

filling.png

XYFilling.sm (24.18 KiB) downloaded 400 time(s).

Best regards.
Alvaro.

5 users liked this post
sergio 12/20/2024 6:26:00 PM, francesco rapuano 12/20/2024 8:42:00 PM, Oscar Campo 12/20/2024 9:28:00 AM, ioan92 12/20/2024 3:03:00 PM, Вячеслав Мезенцев 12/20/2024 3:37:00 PM
  • New Posts
  • No New Posts