X-Y Plot Region

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

#321 Objavljeno: 3. 10. 2018. 20:17:19
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated.

- fixed an issue related to wrong plot method setting;
- refactored.

Wrote

Here is an example with strange behaviour of XY-plot.
1. In the second plot only one ellipse is drawn.
2. If the first plot is deactivated, the second plot fails completely


Try now.
Russia ☭ forever, Viacheslav N. Mezentsev
#322 Objavljeno: 3. 12. 2018. 07:14:20
fedeghi

fedeghi

25 svidjanja u 112 postova.

Grupa: User

Hi Uni, is there a plugin setting to plot a graph with logaritmich grid/axis instead of linear grid?

Thanks, bye
Federico

ps: just a curiosity for the moment, I don't need this feature for an upcoming smath project right now..
#323 Objavljeno: 3. 12. 2018. 08:33:58
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

is there a plugin setting to plot a graph with logaritmich grid/axis instead of linear grid?


Zgraph has either/both logscale plot.
If you don't have it installed: once you open the attached, it should be there for you.

2D Plot Stem log10 DECADES Bode.sm (169,47 KiB) preuzeto 1613 put(ova).
#324 Objavljeno: 3. 12. 2018. 10:42:48
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

It is planning to add log scale and some other stuff to the plugin. The storage format will be changed. This is a big change and I need time to save the existing functionality.
Russia ☭ forever, Viacheslav N. Mezentsev
#325 Objavljeno: 6. 12. 2018. 13:19:28
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated. Small changes:
- fixed issue with at() function;
- now identifiers with same name (y and y(t)) works right independently of position in the document.

2018-12-21_13-44-52.png
Russia ☭ forever, Viacheslav N. Mezentsev
3 korisnika je svidelo ovu objavu
sergio 7. 12. 2018. 05:42:00, frapuano 6. 12. 2018. 13:42:00, Davide Carpi 6. 12. 2018. 13:24:00
#326 Objavljeno: 21. 12. 2018. 15:51:15
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated.

- bug #320 fixed I think.

2018-12-21_23-49-55.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
frapuano 21. 12. 2018. 17:26:00, sergio 21. 12. 2018. 17:04:00
#327 Objavljeno: 22. 3. 2019. 13:55:07
fedeghi

fedeghi

25 svidjanja u 112 postova.

Grupa: User

Hi, is there an additional parameter that can control Y2 axis YLimMin, YLimMax, YTick, similarly to Y axis and X axis parameters displayed in image (taken from Mkraska's guide to Smath)
?
Thanks, bye!

Cattura.JPG
#328 Objavljeno: 23. 3. 2019. 12:28:08
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

No. In the future I plan to add the ability to add limits directly on the plot or in the properties window. This requires research to make it convenient.

Unfortunately, there are not many programmers who want to join the project. It is difficult to maintain a large number of plugins alone. My knowledge of English is not enough to teach someone to program. There are many ideas on how to improve plugins, but there is no time to do this.
Russia ☭ forever, Viacheslav N. Mezentsev
#329 Objavljeno: 23. 3. 2019. 14:49:07
fedeghi

fedeghi

25 svidjanja u 112 postova.

Grupa: User

Thanks for the feedback Uni.

Just to clarify the reason of my previous question, I'm using YlimMin etc... to set limits of a graph via formulae as elemento of the control vectors.
Something of an indirect way to auto-resize graphs based on the dataset (which is something that is not available otherwise, as far as I know..).

Yesterday I had a graph with data on Y2, so it happens that the graph will resize accordingly to the data of the traces related to Y axis, not to the traces that use Y2 to display the values.
But anyway, not a big problem, I can simply create an additional graph for the trace that was on Y2, and display it on its own on Y, with all the auto-resize features.

Citat

In the future I plan to add the ability to add limits directly on the plot or in the properties window. This requires research to make it convenient.


In my opinion, the current approach with global variables is super-convenient! I would keep it for sure, and in those case were it is not needed for a project, the current controls in the graph setting window are perfect.

Thanks also for all efforts and dedication to the project..
#330 Objavljeno: 23. 3. 2019. 15:47:11
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Something of an indirect way to auto-resize graphs based on the dataset


... like OriginLab the almost unique software used in Pharmacokinetics.
Hperfine traces, same as Smath "Plot splines".
OriginLab and Smath are the finest trace plotters as they evaluate on pixels.
Maybe I don't understand why you want more than the best already in hand.
OK, Mathcad 11 and earlier was auto-scale in 4 clicks, but what crappy plots !
Your word to me was data set.

#331 Objavljeno: 26. 7. 2019. 08:57:20
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. A small utility for configuring the XYPlot options.

XYPlotOptions.sm (105,51 KiB) preuzeto 1643 put(ova).

Best regards.
Alvaro.
5 korisnika je svidelo ovu objavu
Arie 26. 7. 2019. 10:10:00, Вячеслав Мезенцев 26. 7. 2019. 10:17:00, Fridel Selitsky 26. 7. 2019. 12:22:00, NDTM Amarasekera 26. 7. 2019. 11:13:00, sergio 26. 7. 2019. 10:31:00
#332 Objavljeno: 7. 8. 2019. 15:14:57
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility setprop() example source code

Updated (beta).

Changes:

- setprop() an experimental function added;
- 'Name' property added.

Now you can change some set of properties using 'Name'.

2019-08-07_23-15-22.png
Russia ☭ forever, Viacheslav N. Mezentsev
5 korisnika je svidelo ovu objavu
Arie 7. 8. 2019. 15:17:00, NDTM Amarasekera 7. 8. 2019. 15:57:00, frapuano 7. 8. 2019. 18:16:00, sergio 8. 8. 2019. 11:05:00, AntonyMos 3. 4. 2026. 16:42:53
#333 Objavljeno: 8. 8. 2019. 10:47:56
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

SMath Studio compatibility setprop() example source code

Updated (beta).

Changes:

- added ability to include variables for setprop();
- refactored.

More complex but still not so elegant. Unfortunately, property names do not match them in the property editor. These names are for the original classes. In the property editor they are shortened for convenience.

2019-08-08_19-20-26.png
Russia ☭ forever, Viacheslav N. Mezentsev
4 korisnika je svidelo ovu objavu
NDTM Amarasekera 8. 8. 2019. 11:27:00, Arie 8. 8. 2019. 11:24:00, frapuano 8. 8. 2019. 13:48:00, sergio 8. 8. 2019. 11:04:00
#334 Objavljeno: 20. 8. 2019. 11:13:24
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated.

Changes:
- added Style property for chart;
- added Hidden property for axes;
- added auto calculation for ticks.
Russia ☭ forever, Viacheslav N. Mezentsev
4 korisnika je svidelo ovu objavu
frapuano 20. 8. 2019. 12:39:00, Arie 20. 8. 2019. 17:59:00, NDTM Amarasekera 20. 8. 2019. 13:04:00, sergio 20. 8. 2019. 12:09:00
#335 Objavljeno: 20. 8. 2019. 15:51:26
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] OS: Microsoft Windows NT 6.2.9200.0
20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] .Net: 4.0.30319.42000
20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] 64-bit
20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] X-Y Plot Region (JXCharts), version 0.2.7171.30885, 20-Aug-2019 17:09:30
20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] setprop(2) - set value of property.
20.08.2019 21:39:25 [INFO ] [Plugin.Initialize()] Successfully. 1 function(s) loaded.

When I open an SMath file, doesn't matter if it contains XYRegion or not, a log file named XYPlotRegion.log occurs where the sm file located.
It is automatically deleted after Smath is closed.
The log file doesn't created if I directly open SMath.
Should I see this log file, is it necessary to be created, why it has been created first of all?

Regards
1 korisnika je svidelo ovu objavu
Вячеслав Мезенцев 20. 8. 2019. 16:15:00
#336 Objavljeno: 20. 8. 2019. 16:21:41
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

Updated.

Changes:
- log file location changed.

Almost all my extensions create a log file in the place of their installation. In this case, the log file appeared along with the setprop() function. Extensions with components usually do not have a log file. You should not see it next to the document. It is needed for feedback with the developer in case of errors and contains the necessary information about the extension.

Later I will add a parameter to the configuration file (XYPlotPlugin.config), which will be responsible for creating this file.
Russia ☭ forever, Viacheslav N. Mezentsev
2 korisnika je svidelo ovu objavu
Arie 20. 8. 2019. 17:59:00, sergio 21. 8. 2019. 06:05:00
#337 Objavljeno: 20. 8. 2019. 16:40:26
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

As for the setprop() function, I try to get this short form. I have code for this, but I have not yet decided how this will be useful.

2019-08-21_00-36-18.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 korisnika je svidelo ovu objavu
Arie 20. 8. 2019. 17:59:00
#338 Objavljeno: 20. 8. 2019. 17:31:15
Arie

Arie

94 svidjanja u 285 postova.

Grupa: User

For what it's worth, I'm working on writing some wrapper functions that I plan to use in a snippet to hopefully ease the use of some of the set prop functions.
I think I just have labels left to complete.

There are some other classes that I made functions for that work such as DecimalPlaces. And some that do not such as GridPattern and NumberFormat. Not sure if they're very useful or not.

EDIT: Updated .sm with some fixes and label functions.
Untitled.png
XYPlotTools.sm (48,94 KiB) preuzeto 1588 put(ova).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#339 Objavljeno: 20. 8. 2019. 18:14:47
Вячеслав Мезенцев

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

1.558 svidjanja u 1.868 postova.

Grupa: Moderator

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"
.
Russia ☭ forever, Viacheslav N. Mezentsev
#340 Objavljeno: 20. 8. 2019. 19:36:23
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Not sure if they're very useful or not.


Well, X_Y does not understand much of real projects.
kaput = kaput

X_Y kaput.PNG

  • Novi postovi
  • Nema novih postova