X-Y Plot Region

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

#341 Posted: 8/21/2019 6:41:28 AM
sergio

sergio

115 likes in 329 posts.

Group: User

Jean
in the function definition of b(u) there is already all the data needed to properly plot the function with the X-Y plugin. Which works well.
sergio

SMathStudio_Jean.png
#342 Posted: 8/21/2019 9:21:10 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Jean
in the function definition of b(u) there is already all the data needed to properly plot the function with the X-Y plugin. Which works well.
sergio


Yes Sergio, but it does not understand/plot Engineer's maths.
X_Y refers to so many libraries, it may have to be doctored.

X_Y kaput more.PNG

X_Y kaput.PNG

#343 Posted: 8/21/2019 9:41:44 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Wrote


Yes Sergio, but it does not understand/plot Engineer's maths.
X_Y refers to so many libraries, it may have to be doctored.

X_Y kaput more.PNG




Works fine for me.

Untitled.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#344 Posted: 8/21/2019 9:48:22 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Wrote

setprop() function is just an intermediary. It knows nothing about the properties of an object. Thus, if a property is found during a call, then it will be set. Each time a function is called, it enumerates the available properties. It is possible that I will change this behavior by setting aliases for some properties, making the names shorter. For now you can use source code to get these names. As for the values, you can get them from sm file:

gridpattern="Dash"
.



This doesn't seem to work for Grid.GridPattern or *Axis.NumberFormat.

Untitled.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 users liked this post
Вячеслав Мезенцев 8/21/2019 10:20:00 AM, frapuano 8/21/2019 7:05:00 PM
#345 Posted: 8/21/2019 10:21:08 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Works fine for me.


Thanks alyles.
The question is about whether your X_Y version could be installed
in SS 6179, in replacement, not affecting all other projects ?
#346 Posted: 8/21/2019 10:26:26 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

This doesn't seem to work for Grid.GridPatternor *Axis.NumberFormat.


Yes, I was wrong. This place in the code is not completed.

As for Jean's examples. He doesn't quite clearly understand the connection between the program version, the component version and its capabilities. You can stick to one old version only for yourself personally, but moving forward is impossible without updating the old one. Sometimes you need to break something for this.

P.S. I can't support the all versions of the program. This makes sense only if all versions of the program are used at the same time, but it is not. I have access to statistics and it shows that users are migrating to new versions.

[albumimg]1594[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Arie 8/21/2019 10:33:00 AM, sergio 8/21/2019 10:38:00 AM, NDTM Amarasekera 8/21/2019 12:15:00 PM
#347 Posted: 8/21/2019 12:02:02 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

As for Jean's examples.
He doesn't quite clearly understand the connection between the program version


I can survive otherwise. What's missing in all those commands is some Russian Poetry
Don't take it bad Viacheslav ... Jean is an old monkey [you already figured that].

X_Y most wanted.PNG

#348 Posted: 8/22/2019 8:05:17 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated.

Changes:
- Debug parameter added to config file;
- added support simple types for setprop() function;
- some bugs fixed;
- refactored.

Hidden property for axes and GridPattern now work.
Russia ☭ forever, Viacheslav N. Mezentsev
4 users liked this post
frapuano 8/22/2019 10:21:00 AM, NDTM Amarasekera 8/22/2019 11:15:00 AM, Arie 8/22/2019 10:39:00 AM, sergio 8/22/2019 8:19:00 AM
#349 Posted: 8/22/2019 10:47:30 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Wrote

Updated.

Changes:
- Debug parameter added to config file;
- added support simple types for setprop() function;
- some bugs fixed;
- refactored.

Hidden property for axes and GridPattern now work.



Thanks Uni! I really appreciate the setprop function.

Is it possible to set individual trace properties with this function?

Thanks,
alyles
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#350 Posted: 8/22/2019 3:57:27 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Updated my snippet for the XY Plot setprop wrappers. I have functions for each property that can be set with setprop.

Additionally I have created some other functions that combine individual property functions to minimize number of functions necessary.

I've also created some units for things like color (color), grid Patterns (gridPattern), legendPosition(legend), number format (numFmt). This allows one to use the context menu to select pre-defined values for these items. For example, if one wants to select a different grid pattern, but cannot remember the exact string, simply start typing "gridPattern" and select from the context menu.

Untitled.png

Attached is the raw snippet as well as a small example. Note that in the example, I have the legend on, but I have not set the parameters for traces so it's just a little rectangle. I'm hoping there is a way to change the trace parameters using the setprop command or something similar, but I'm unsure how to access them.

Untitled.png

File not found.File not found.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
6 users liked this post
IVR 8/5/2020 12:51:00 PM, sergio 8/22/2019 4:22:00 PM, Вячеслав Мезенцев 8/22/2019 6:12:00 PM, Alvaro Diaz Falconi 8/22/2019 6:42:00 PM, NDTM Amarasekera 8/22/2019 11:52:00 PM, frapuano 8/23/2019 11:24:00 AM
#351 Posted: 8/22/2019 5:45:46 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Updated my snippet for the XY Plot setprop wrappers.


Interesting background color.
I had a trick to do in plot region SS 5346, din't collect, can't remember.

#352 Posted: 8/22/2019 6:14:06 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

I'm hoping there is a way to change the trace parameters using the setprop command or something similar, but I'm unsure how to access them.


It is possible, but I myself don’t yet know an easy way to do this.

Russia ☭ forever, Viacheslav N. Mezentsev
#353 Posted: 8/23/2019 11:15:41 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

No surprise: the example is red SS 6179.
Revisit the the bugs SS 7109 ... No reply from ad-noseum visits.
SS 7109 strictly useless as is --> recycle/evaporate
On the other hand, for what X_Y plot does well, is exceptional
from the drop down menu, very fast. The spline line/points superb !
The attached examples wrt splines is convincing of that great feature.
SS 6179 X_Y is just missing background color from the windows.
I don't fancy that so much for publishing.
The so rich plots OriginLab is from drop down menu.
Just some comments, forget.

2D Isometric.sm (92 KiB) downloaded 79 time(s).
#354 Posted: 8/24/2019 1:11:45 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated.

Changes:

- added AntiAlias support for legend;
- Hidden property for axes changed to Visible.

We already have this property for traces, so it’s logical to have the same name for the axes. For uniformity. I forgot about it when I chose a name.
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Arie 8/26/2019 11:24:00 AM, sergio 8/26/2019 11:09:00 AM
#355 Posted: 8/26/2019 11:04:14 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Wrote

Updated.

Changes:

- added AntiAlias support for legend;
- Hidden property for axes changed to Visible.

We already have this property for traces, so it’s logical to have the same name for the axes. For uniformity. I forgot about it when I chose a name.



Updated snippet with showAxis functions and removed hideAxis functions.
Not sure how to toggle AntiAlias options for legend using setprop or if it is possible.

XYPlotProps.sm (119 KiB) downloaded 89 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
4 users liked this post
Вячеслав Мезенцев 8/26/2019 11:49:00 AM, NDTM Amarasekera 8/26/2019 11:31:00 AM, frapuano 8/26/2019 11:53:00 AM, sergio 8/26/2019 11:09:00 AM
#356 Posted: 8/26/2019 3:25:12 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

FreeMat page 262 PDF

FreeMat Handle-Based Graphic.PNG
#357 Posted: 8/28/2019 4:17:27 AM
fedeghi

fedeghi

25 likes in 112 posts.

Group: User

Wrote

Updated.



This update, I guess it is available only for SS 7109 and future builds, correct?
I am using SS 7030 and I don't see a "X-Y Plot Region" update among the available updates listed in Smath plugin manager.

Thank you, bye!
#358 Posted: 8/28/2019 8:30:43 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Yes. SMath Studio 0.99.7109. I am pushing users a bit forward. It’s hard to bring all the plugins to a new stable release unless you keep track of the changes. I rebuilt almost all the plugins for this version in order to check their functionality.
Russia ☭ forever, Viacheslav N. Mezentsev
#359 Posted: 11/21/2019 6:08:06 AM
veb

veb

1 likes in 38 posts.

Group: User

Hello!
Help with this extension.
It is necessary to display a logarithmic graph, how to do it in smath?
I looked at the settings did not find such an opportunity.
#360 Posted: 11/21/2019 6:11:16 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Unfortunately, this cannot be done yet.
Russia ☭ forever, Viacheslav N. Mezentsev
  • New Posts New Posts
  • No New Posts No New Posts