X-Y Plot Region

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

#1 Publicado: 26/4/2013 9:20:32
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

X-Y Plot Region

SMath Studio compatibility SMath Viewer compatibility mono compatibility Extension page Sources


2018-12-21_13-32-23.png 2018-09-24_12-55-34.png XYPlot. Examples.png 2018-12-22_16-15-43.png 2018-08-03_08-25-36.png 2018-10-01_17-51-54.png 2021-11-17_00-50-10.png 2021-11-17_00-50-29.png

XYPlot. Examples.sm (30,04 KiB) descargado 3981 vez(es).
XYPlot. Examples.pdf (154,55 KiB) descargado 2977 vez(es).

XYPlot. Demo.sm (5,5 KiB) descargado 2946 vez(es).
XYPlot. Demo.pdf (45,63 KiB) descargado 2229 vez(es).

XYPlot. Text labels.sm (10,1 KiB) descargado 2947 vez(es).
XYPlot. Text labels.pdf (53,78 KiB) descargado 1910 vez(es).

XYPlot. Fill area.sm (10,03 KiB) descargado 2730 vez(es).
XYPlot. Fill area.pdf (84,35 KiB) descargado 1662 vez(es).

XYPlot. Draw shapes.sm (19,85 KiB) descargado 3268 vez(es).
XYPlot. Draw shapes.pdf (92,91 KiB) descargado 2275 vez(es).

XYPlot. Linear polar.sm (56,78 KiB) descargado 2614 vez(es).
XYPlot. Linear polar.pdf (134,78 KiB) descargado 1638 vez(es).

3D plots in XY Plot plugin

pMesh.sm (244,1 KiB) descargado 2689 vez(es).
pMesh.pdf (3,04 MiB) descargado 2078 vez(es).

Functions for grids, meshes and plot surfaces. Support triangular meshes and multiple surfaces in the same plot.

pSurf.sm (315,64 KiB) descargado 2423 vez(es).
pSurf.pdf (2,2 MiB) descargado 1813 vez(es).

Small piece of code for filled 2-D contour plot in the XY plot plugin.

FillContour.sm (34,45 KiB) descargado 2482 vez(es).
FillContour.pdf (306,44 KiB) descargado 1773 vez(es).

Note: '~' is used as a mark for the "range" variable and should only be used inside the X-Y Plot.

Click to enlarge Click to enlarge Click to enlarge

XYPlot.%20Parametric.sm

Links:

1. Dr. Xu's Books .
2. Creating charts & graphics without coding .
Russia ☭ forever, Viacheslav N. Mezentsev
A 17 usuarios les gustó este mensaje
Oscar Campo 26/4/2013 9:38:00, frapuano 3/12/2016 9:11:00, Mark R Harris 29/8/2022 7:50:00, sergio 13/1/2024 4:42:00, Radovan Omorjan 26/4/2013 10:32:00, Infinity 29/4/2013 3:12:00, ioan92 25/5/2025 13:21:50, ruddy 24/9/2025 0:30:07, Valery Ochkov 29/10/2025 15:15:21, Fridel Selitsky 26/4/2013 10:29:00, Davide Carpi 26/4/2013 10:12:00, Martin Kraska 26/4/2013 9:39:00, IVR 13/7/2013 5:09:00, yajurito 11/12/2017 17:33:00, Andrey Ivashov 22/9/2021 8:49:00, zoom 17/1/2016 17:14:00, maria 2/5/2025 3:56:13
#2 Publicado: 26/4/2013 9:38:29
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Здорово!

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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#3 Publicado: 26/4/2013 10:23:34
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Nice work uni

Wrote

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.



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 Publicado: 26/4/2013 10:46:39
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Publicado: 26/4/2013 10:47:33
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

The code is taken from this book:

Practical C# Charts and Graphics.PNG

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.
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Davide Carpi 26/4/2013 10:52:00, ioan92 22/7/2013 5:38:00
#6 Publicado: 26/4/2013 11:02:04
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: Moderator

Thank you very much both for the sources and the book

[EDIT] plugins on wiki updated
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Publicado: 26/4/2013 11:45:46
kilele

kilele

134 me gusta en 397 mensajes.

Grupo: User

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.
#8 Publicado: 26/4/2013 11:56:51
Basile

Basile

8 me gusta en 172 mensajes.

Grupo: User

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
#9 Publicado: 26/4/2013 12:45:04
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Wrote

...Try some number.





Regards,
Radovan

xyplugin.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#10 Publicado: 26/4/2013 15:22:17
Basile

Basile

8 me gusta en 172 mensajes.

Grupo: User

Radovan,

How did you put graph title and axis titles? and axes greater than 1.

Thank you,
Basile
#11 Publicado: 26/4/2013 15:58:45
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

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
A 2 usuarios les gustó este mensaje
Davide Carpi 26/4/2013 17:09:00, Radovan Omorjan 26/4/2013 17:01:00
#12 Publicado: 26/4/2013 16:39:18
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Hello Basile
Wrote

How 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 , and than to test it more carefully

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

kaka

1 me gusta en 25 mensajes.

Grupo: User

Thank you again.



Wrote

Last 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/

XYPlotRegion_screen1.png



#14 Publicado: 27/4/2013 5:54:43
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Updated.

XYPlotRegion_screen3.png XYPlotRegion_screen4.png
Russia ☭ forever, Viacheslav N. Mezentsev
A 5 usuarios les gustó este mensaje
Radovan Omorjan 27/4/2013 7:07:00, sergio 27/4/2013 9:25:00, Martin Kraska 28/4/2013 3:04:00, Fridel Selitsky 27/4/2013 7:16:00, Davide Carpi 27/4/2013 6:43:00
#15 Publicado: 28/4/2013 1:49:03
pol1

pol1

0 me gusta en 4 mensajes.

Grupo: User

Thanks.
The traces & Number Format function is not working for me (Win 7 64 Bit).
#16 Publicado: 28/4/2013 3:01:32
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Wrote

Updated.



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.
xyplot.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#17 Publicado: 28/4/2013 6:13:01
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

Wrote

Thanks.
The traces & Number Format function is not working for me (Win 7 64 Bit).


These tabs will be added later. Working on it.

Updated.

XYPlotRegion_screen5.png XYPlotRegion_screen6.png
Russia ☭ forever, Viacheslav N. Mezentsev
A 2 usuarios les gustó este mensaje
Radovan Omorjan 28/4/2013 8:00:00, Davide Carpi 28/4/2013 7:49:00
#18 Publicado: 28/4/2013 8:48:50
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

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?
demo1.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
#19 Publicado: 28/4/2013 10:32:00
Вячеслав Мезенцев

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

1.558 me gusta en 1.868 mensajes.

Grupo: Moderator

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 Publicado: 28/4/2013 12:26:50
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

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.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 1 usuarios les gustó este mensaje
Radovan Omorjan 3/6/2013 7:24:00
  • Nuevos mensajes
  • Sin mensajes nuevos