Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

32 Pages123>»
Options
Go to last post Go to first unread
Offline uni  
#1 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
X-Y Plot Region

SMath Studio compatibility SMath Viewer compatibility mono compatibility Extension page Sources




XYPlot. Examples.sm (31kb) downloaded 1,556 time(s).
XYPlot. Examples.pdf (155kb) downloaded 1,520 time(s).

XYPlot. Demo.sm (6kb) downloaded 775 time(s).
XYPlot. Demo.pdf (46kb) downloaded 841 time(s).

XYPlot. Text labels.sm (11kb) downloaded 568 time(s).
XYPlot. Text labels.pdf (54kb) downloaded 491 time(s).

XYPlot. Fill area.sm (11kb) downloaded 538 time(s).
XYPlot. Fill area.pdf (85kb) downloaded 453 time(s).

XYPlot. Draw shapes.sm (20kb) downloaded 799 time(s).
XYPlot. Draw shapes.pdf (93kb) downloaded 610 time(s).

XYPlot. Linear polar.sm (57kb) downloaded 314 time(s).
XYPlot. Linear polar.pdf (135kb) downloaded 229 time(s).

3D plots in XY Plot plugin

pMesh.sm (245kb) downloaded 399 time(s).
pMesh.pdf (3,117kb) downloaded 391 time(s).

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

pSurf.sm (316kb) downloaded 159 time(s).
pSurf.pdf (2,254kb) downloaded 135 time(s).

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

FillContour.sm (35kb) downloaded 312 time(s).
FillContour.pdf (307kb) downloaded 302 time(s).

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

Click to enlarge

XYPlot.%20Parametric.sm

Links:

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

Edited by user 2 years ago  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 14 users thanked uni for this useful post.
on 26/04/2013(UTC),  on 26/04/2013(UTC),  on 26/04/2013(UTC),  on 26/04/2013(UTC),  on 26/04/2013(UTC),  on 29/04/2013(UTC),  on 12/05/2013(UTC),  on 13/07/2013(UTC),  on 17/01/2016(UTC),  on 03/12/2016(UTC),  on 11/12/2017(UTC),  on 22/09/2021(UTC),  on 29/08/2022(UTC),  on 13/01/2024(UTC)

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mkraska  
#2 Posted : 12 years ago
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,045
Germany

Was thanked: 1176 time(s) in 752 post(s)
Здорово!

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

Edited by user 12 years ago  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Davide Carpi  
#3 Posted : 12 years ago
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,722
Man
Italy
Location: Italy

Was thanked: 1385 time(s) in 906 post(s)
Nice work uni Clap

Originally Posted by: uni Go to Quoted Post
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?

Edited by user 12 years ago  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline omorr  
#4 Posted : 12 years ago
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
This is a long time waiting feature and I think we are all excited about it Good

Good luck uni Victory

Radovan

EDIT: I tried it a bit in a "faulty" Mono in Xubuntu. It si working initially although with crashes as Martin mentioned

Edited by user 12 years ago  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline uni  
#5 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
The code is taken from this book:



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 Acute Try some number.

Edited by user 12 years ago  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 26/04/2013(UTC),  on 22/07/2013(UTC)
Offline Davide Carpi  
#6 Posted : 12 years ago
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,722
Man
Italy
Location: Italy

Was thanked: 1385 time(s) in 906 post(s)
Thank you very much both for the sources and the book Biggrinrinks:

[EDIT] plugins on wiki updated

Edited by user 12 years ago  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline kilele  
#7 Posted : 12 years ago
kilele


Rank: Advanced Member

Groups: Registered
Joined: 30/03/2011(UTC)
Posts: 393

Was thanked: 133 time(s) in 114 post(s)
thank you very much uni!
please look at this post:
http://en.smath.info/for...provements.aspx#post9105

ZedGraph is c# targeting .net20 so it should work both in windows and linux.
Offline Basile  
#8 Posted : 12 years ago
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
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
Offline omorr  
#9 Posted : 12 years ago
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: uni Go to Quoted Post
...Try some number.


Good

Regards,
Radovan
omorr attached the following image(s):
xyplugin.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Basile  
#10 Posted : 12 years ago
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Radovan,

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

Thank you,
Basile
Offline uni  
#11 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 27/04/2013(UTC),  on 27/04/2013(UTC)
Offline omorr  
#12 Posted : 12 years ago
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Basile
Originally Posted by: Basile Go to Quoted Post
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 Beta , and than to test it more carefully Good

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline kaka  
#13 Posted : 12 years ago
kaka


Rank: Member

Groups: Registered
Joined: 18/04/2013(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Clap Thank you again.



Originally Posted by: uni Go to Quoted Post
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/p...ic/plugins/XYPlotRegion/



Offline uni  
#14 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
Updated.

Edited by user 12 years ago  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 5 users thanked uni for this useful post.
on 27/04/2013(UTC),  on 27/04/2013(UTC),  on 27/04/2013(UTC),  on 27/04/2013(UTC),  on 28/04/2013(UTC)
Offline pol1  
#15 Posted : 12 years ago
pol1

Rank: Newbie

Groups: Registered
Joined: 05/06/2012(UTC)
Posts: 4

Thanks.
The traces & Number Format function is not working for me (Win 7 64 Bit).
Offline mkraska  
#16 Posted : 12 years ago
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,045
Germany

Was thanked: 1176 time(s) in 752 post(s)
Originally Posted by: uni Go to Quoted Post
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.
mkraska attached the following image(s):
xyplot.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline uni  
#17 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
Originally Posted by: pol1 Go to Quoted Post
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.

Edited by user 12 years ago  | Reason: Not specified

Russia ☭ forever (git.io/vOZo0)
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 28/04/2013(UTC),  on 28/04/2013(UTC)
Offline mkraska  
#18 Posted : 12 years ago
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,045
Germany

Was thanked: 1176 time(s) in 752 post(s)
Originally Posted by: uni Go to Quoted Post

Updated.


Crashing xyplot:
- loading documents created with earlier versions of the plugin

- expressions evaluating to lists but not being lists (e.g. ±1)

Not crashing xyplot:
- using units Clap

empty placeholder produces a line y=x

Is using limit expressions including units (perhaps using placeholders as in old mathcad) on the agenda?
mkraska attached the following image(s):
demo1.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 28/04/2013(UTC)
Offline uni  
#19 Posted : 12 years ago
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,634
Man
Russian Federation

Was thanked: 1393 time(s) in 813 post(s)
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 (git.io/vOZo0)
Viacheslav N. Mezentsev
Offline mkraska  
#20 Posted : 12 years ago
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,045
Germany

Was thanked: 1176 time(s) in 752 post(s)
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.

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/06/2013(UTC)
Users browsing this topic
Guest (3)
Similar Topics
X-Y Plot Region Plugin (Extensions)
by ndtma 7 years ago
X-Y Plot Region Plugin Problem (Questions)
by ndtma 7 years ago
32 Pages123>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.