X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Messages
#1 Posted: 4/26/2013 9:20:32 AM
X-Y Plot Region

[albumimg]1550[/albumimg] [albumimg]1514[/albumimg] [albumimg]1549[/albumimg] [albumimg]1556[/albumimg] [albumimg]1502[/albumimg] [albumimg]1516[/albumimg] [albumimg]1651[/albumimg] [albumimg]1652[/albumimg]
XYPlot. Examples.sm (30 KiB) downloaded 1677 time(s).
XYPlot. Examples.pdf (154 KiB) downloaded 1623 time(s).
XYPlot. Demo.sm (5 KiB) downloaded 864 time(s).
XYPlot. Demo.pdf (45 KiB) downloaded 932 time(s).
XYPlot. Text labels.sm (10 KiB) downloaded 656 time(s).
XYPlot. Text labels.pdf (53 KiB) downloaded 575 time(s).
XYPlot. Fill area.sm (10 KiB) downloaded 622 time(s).
XYPlot. Fill area.pdf (84 KiB) downloaded 535 time(s).
XYPlot. Draw shapes.sm (19 KiB) downloaded 895 time(s).
XYPlot. Draw shapes.pdf (92 KiB) downloaded 698 time(s).
XYPlot. Linear polar.sm (56 KiB) downloaded 399 time(s).
XYPlot. Linear polar.pdf (134 KiB) downloaded 313 time(s).
3D plots in XY Plot plugin
pMesh.sm (244 KiB) downloaded 469 time(s).
pMesh.pdf (3 MiB) downloaded 471 time(s).
Functions for grids, meshes and plot surfaces. Support triangular meshes and multiple surfaces in the same plot.
pSurf.sm (315 KiB) downloaded 234 time(s).
pSurf.pdf (2 MiB) downloaded 231 time(s).
Small piece of code for filled 2-D contour plot in the XY plot plugin.
FillContour.sm (34 KiB) downloaded 390 time(s).
FillContour.pdf (306 KiB) downloaded 381 time(s).
Note: '~' is used as a mark for the "range" variable and should only be used inside the X-Y Plot.


Links:
1. Dr. Xu's Books .
2. Creating charts & graphics without coding .





[albumimg]1550[/albumimg] [albumimg]1514[/albumimg] [albumimg]1549[/albumimg] [albumimg]1556[/albumimg] [albumimg]1502[/albumimg] [albumimg]1516[/albumimg] [albumimg]1651[/albumimg] [albumimg]1652[/albumimg]
XYPlot. Examples.sm (30 KiB) downloaded 1677 time(s).
XYPlot. Examples.pdf (154 KiB) downloaded 1623 time(s).
XYPlot. Demo.sm (5 KiB) downloaded 864 time(s).
XYPlot. Demo.pdf (45 KiB) downloaded 932 time(s).
XYPlot. Text labels.sm (10 KiB) downloaded 656 time(s).
XYPlot. Text labels.pdf (53 KiB) downloaded 575 time(s).
XYPlot. Fill area.sm (10 KiB) downloaded 622 time(s).
XYPlot. Fill area.pdf (84 KiB) downloaded 535 time(s).
XYPlot. Draw shapes.sm (19 KiB) downloaded 895 time(s).
XYPlot. Draw shapes.pdf (92 KiB) downloaded 698 time(s).
XYPlot. Linear polar.sm (56 KiB) downloaded 399 time(s).
XYPlot. Linear polar.pdf (134 KiB) downloaded 313 time(s).
3D plots in XY Plot plugin
pMesh.sm (244 KiB) downloaded 469 time(s).
pMesh.pdf (3 MiB) downloaded 471 time(s).
Functions for grids, meshes and plot surfaces. Support triangular meshes and multiple surfaces in the same plot.
pSurf.sm (315 KiB) downloaded 234 time(s).
pSurf.pdf (2 MiB) downloaded 231 time(s).
Small piece of code for filled 2-D contour plot in the XY plot plugin.
FillContour.sm (34 KiB) downloaded 390 time(s).
FillContour.pdf (306 KiB) downloaded 381 time(s).
Note: '~' is used as a mark for the "range" variable and should only be used inside the X-Y Plot.

Links:
1. Dr. Xu's Books .
2. Creating charts & graphics without coding .
Russia ☭ forever, Viacheslav N. Mezentsev
14 users liked this post
Infinity 4/29/2013 3:12:00 AM, ioan92 5/12/2013 3:24:00 AM, zoom 1/17/2016 5:14:00 PM, Fridel Selitsky 4/26/2013 10:29:00 AM, Radovan Omorjan 4/26/2013 10:32:00 AM, yajurito 12/11/2017 5:33:00 PM, frapuano 12/3/2016 9:11:00 AM, Martin Kraska 4/26/2013 9:39:00 AM, Oscar Campo 4/26/2013 9:38:00 AM, Andrey Ivashov 9/22/2021 8:49:00 AM, Davide Carpi 4/26/2013 10:12:00 AM, sergio 1/13/2024 4:42:00 AM, Mark R Harris 8/29/2022 7:50:00 AM, IVR 7/13/2013 5:09:00 AM
#2 Posted: 4/26/2013 9:38:29 AM
Здорово!
I tried some functions (typed to the placeholder):
x - nothing happens
sin(x) - works
ln(x) - crash (perhaps due to undefined values)
any undefined function - crash
previously defined function returning a list - GUI freeze
I tried some functions (typed to the placeholder):
x - nothing happens
sin(x) - works
ln(x) - crash (perhaps due to undefined values)
any undefined function - crash
previously defined function returning a list - GUI freeze
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 4/26/2013 10:23:34 AM
Nice work uni
A way could be to use context menu items (see ConstructorRegion plugin by Andrey)... also the Mathcad mode it's quite interesting...
you can post the plugin code?

WroteYou can change only the function for now. Need to figure out a way how to pass parameters to display the graph or do it like in Mathcad.
A way could be to use context menu items (see ConstructorRegion plugin by Andrey)... also the Mathcad mode it's quite interesting...
you can post the plugin code?
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 4/26/2013 10:46:39 AM
This is a long time waiting feature and I think we are all excited about it
Good luck uni
Radovan
EDIT: I tried it a bit in a "faulty" Mono in Xubuntu. It si working initially although with crashes as Martin mentioned

Good luck uni

Radovan
EDIT: I tried it a bit in a "faulty" Mono in Xubuntu. It si working initially although with crashes as Martin mentioned
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Posted: 4/26/2013 10:47:33 AM
The code is taken from this book:
[albumimg]77[/albumimg]
C# Application Series - Xu J. - Practical C# Charts and Graphics [2007, PDF, ENG] (link, rus).
I have something removed and added something to get the plugin. I added sources.
mkraska, not so fast
Try some number.
[albumimg]77[/albumimg]
C# Application Series - Xu J. - Practical C# Charts and Graphics [2007, PDF, ENG] (link, rus).
I have something removed and added something to get the plugin. I added sources.
mkraska, not so fast

Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#6 Posted: 4/26/2013 11:02:04 AM
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 4/26/2013 11:45:46 AM
thank you very much uni!
please look at this post:
http://en.smath.info/forum/yaf_postsm9105_Plots-improvements.aspx#post9105
ZedGraph is c# targeting .net20 so it should work both in windows and linux.
please look at this post:
http://en.smath.info/forum/yaf_postsm9105_Plots-improvements.aspx#post9105
ZedGraph is c# targeting .net20 so it should work both in windows and linux.
#8 Posted: 4/26/2013 11:56:51 AM
Thank you uni.
This is long overdue.
As you develop it, please have in mind the basic form of axes: Lin-Lin, Lin-Log, Log-Log.
Basile
This is long overdue.
As you develop it, please have in mind the basic form of axes: Lin-Lin, Lin-Log, Log-Log.
Basile
#9 Posted: 4/26/2013 12:45:04 PM
#10 Posted: 4/26/2013 3:22:17 PM
Radovan,
How did you put graph title and axis titles? and axes greater than 1.
Thank you,
Basile
How did you put graph title and axis titles? and axes greater than 1.
Thank you,
Basile
#11 Posted: 4/26/2013 3:58:45 PM
Updated. Form formatting is added to the context menu. Changes take effect after the recalculation. You can use system for several functions but be careful (not tested yet).
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#12 Posted: 4/26/2013 4:39:18 PM
Hello Basile
I did nothing else just put a number in the function placeholder, as uni said. It seems that uni just put this example just as a test at the moment.
Lots of user feedback in quite a short time shows that we are very interested in this plugin. It seems that we need to have some more patience until the very appreciated plugin like this become more stable
, and than to test it more carefully
Regards,
Radovan
WroteHow did you put graph title and axis titles? and axes greater than 1.
I did nothing else just put a number in the function placeholder, as uni said. It seems that uni just put this example just as a test at the moment.
Lots of user feedback in quite a short time shows that we are very interested in this plugin. It seems that we need to have some more patience until the very appreciated plugin like this become more stable


Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#13 Posted: 4/27/2013 2:14:52 AM

WroteLast update: XYPlotRegion_20130427.zip
You can change only the function for now. Need to figure out a way how to pass parameters to display the graph or do it like in Mathcad.
Sources: https://smath.info/svn/public/plugins/XYPlotRegion/
[albumimg]78[/albumimg]
#14 Posted: 4/27/2013 5:54:43 AM
Updated.
[albumimg]80[/albumimg] [albumimg]82[/albumimg]
[albumimg]80[/albumimg] [albumimg]82[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
5 users liked this post
Martin Kraska 4/28/2013 3:04:00 AM, Fridel Selitsky 4/27/2013 7:16:00 AM, sergio 4/27/2013 9:25:00 AM, Davide Carpi 4/27/2013 6:43:00 AM, Radovan Omorjan 4/27/2013 7:07:00 AM
#15 Posted: 4/28/2013 1:49:03 AM
Thanks.
The traces & Number Format function is not working for me (Win 7 64 Bit).
The traces & Number Format function is not working for me (Win 7 64 Bit).
#16 Posted: 4/28/2013 3:01:32 AM
WroteUpdated.
The last update seems to focus on handling lists of plots. The plugin seems to be under heavy construction.
For plotting functions, the xyplotrregion just evaluates the name, without caring for the argument, therefore plotting pure expressions just as x or x^2 fails.
Also, numbers must be pure numbers, not expressions that can be evaluated to numbers.
I guess that the built-in demo shows sort of development target. It would be interesting to know if expression input for plot items and range limits including unit handling are on the agenda. Anwyway, I am looking forward to the next release.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#17 Posted: 4/28/2013 6:13:01 AM
WroteThanks.
The traces & Number Format function is not working for me (Win 7 64 Bit).
These tabs will be added later. Working on it.
Updated.
[albumimg]84[/albumimg] [albumimg]85[/albumimg]
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
#18 Posted: 4/28/2013 8:48:50 AM
Wrote
Updated.
Crashing xyplot:
- loading documents created with earlier versions of the plugin
- expressions evaluating to lists but not being lists (e.g. [MATH]±1[/MATH])
Not crashing xyplot:
- using units

empty placeholder produces a line y=x
Is using limit expressions including units (perhaps using placeholders as in old mathcad) on the agenda?
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Вячеслав Мезенцев 4/28/2013 10:08:00 AM
#19 Posted: 4/28/2013 10:32:00 AM
There is only one placeholder, so I can enter only the expression and nothing more. I don't know whether it is possible to add more placeholders. Limits for the graphs need to be set explicitly (in the formatting dialog).
Russia ☭ forever, Viacheslav N. Mezentsev
#20 Posted: 4/28/2013 12:26:50 PM
Could global variables be an option?
The user might define or display values of settings like
XYPlot.xmin:0
XYPlot.xmax:3'm -> this would give the independent variable a unit
XYPlot.ymin:0
XYPlot.ymax:"auto" (auto-scaling)
XYPlot.xaxis:"log" or "lin"
XYPlot.title:num2str(n)
XYPlot.xtics:0,5*'m
etc. This would be quite transparent and readable, but could be hidden in collapsable regions if required.
Settings in the context menu might change or override the variable values or restore them to defaults.
Units could be automatically added to the default axis label if appropriate. You could, however, leave proper annotation in the user's responsibility.
Sticking to some naming convention (e.g. gnuplot) would facilitate the usage.
The user might define or display values of settings like
XYPlot.xmin:0
XYPlot.xmax:3'm -> this would give the independent variable a unit
XYPlot.ymin:0
XYPlot.ymax:"auto" (auto-scaling)
XYPlot.xaxis:"log" or "lin"
XYPlot.title:num2str(n)
XYPlot.xtics:0,5*'m
etc. This would be quite transparent and readable, but could be hidden in collapsable regions if required.
Settings in the context menu might change or override the variable values or restore them to defaults.
Units could be automatically added to the default axis label if appropriate. You could, however, leave proper annotation in the user's responsibility.
Sticking to some naming convention (e.g. gnuplot) would facilitate the usage.
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Radovan Omorjan 6/3/2013 7:24:00 AM
-
New Posts
-
No New Posts