Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

23 Pages«<23456>»
Options
Go to last post Go to first unread
Offline kilele  
#61 Posted : 03 May 2013 18:22:15(UTC)
kilele


Rank: Advanced Member

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

Was thanked: 132 time(s) in 113 post(s)
Uni, this c# library might be of your interest if you plan to support interactive charts :
http://sharpgraphlib.sourceforge.net/
Thanks!!
thanks 1 user thanked kilele for this useful post.
on 03/05/2013(UTC)
Offline uni  
#62 Posted : 03 May 2013 19:00:43(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Originally Posted by: kilele Go to Quoted Post
Uni, this c# library might be of your interest if you plan to support interactive charts :
http://sharpgraphlib.sourceforge.net/
Thanks!!

Yes, I plan to do a little interactivity. If you find something similar for 3D, then let me know in the topic 3DPlot plugin. There you can rotate the graph.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline Basile  
#63 Posted : 03 May 2013 21:36:33(UTC)
Basile


Rank: Advanced Member

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

Was thanked: 7 time(s) in 6 post(s)
Uni,

Linear, Log axis selection
Other kinds of plots, in addition to line
Smoothing of graph
Mathematical operations

Please see the SCIDAVIS
http://scidavis.sourceforge.net/


Thank you,
Basile
thanks 2 users thanked Basile for this useful post.
on 03/05/2013(UTC),  on 04/05/2013(UTC)
Offline uni  
#64 Posted : 03 May 2013 21:38:52(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Originally Posted by: Basile Go to Quoted Post
Uni,

Linear, Log axis selection
Other kinds of plots, in addition to line
Smoothing of graph
Mathematical operations

Please see the SCIDAVIS
http://scidavis.sourceforge.net/


Thank you,
Basile


I remember, remember, don't worry Good
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 1 user thanked uni for this useful post.
on 03/05/2013(UTC)
Offline omorr  
#65 Posted : 04 May 2013 20:00:31(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Hello uni,

I wonder if you might include some kind of shading area between two curves for your XY plot plugin, or between the curve and the x asix, some kind of polygon feature. This could be quite useful in shading areas of density functions in statistical examples, tests and teaching in addition to using SMathViewer.

Just curious Good

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline kilele  
#66 Posted : 04 May 2013 21:38:49(UTC)
kilele


Rank: Advanced Member

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

Was thanked: 132 time(s) in 113 post(s)
Originally Posted by: omorr Go to Quoted Post

Hello uni,

I wonder if you might include some kind of shading area between two curves for your XY plot plugin, or between the curve and the x asix, some kind of polygon feature.


Something like this ? Note the semitransparent overlapping :

http://onertipaday.blogs...ng-area-between-two.html

http://onertipaday.blogs...ical-visualizations.html

http://onertipaday.blogs...erimpose-histograms.html

Edited by user 04 May 2013 22:18:41(UTC)  | Reason: Not specified

thanks 1 user thanked kilele for this useful post.
on 04/05/2013(UTC)
Offline kilele  
#67 Posted : 05 May 2013 05:06:20(UTC)
kilele


Rank: Advanced Member

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

Was thanked: 132 time(s) in 113 post(s)
uni, please look at this post
http://en.smath.info/for...mprovement-to-plots.aspx
these two webapp graphers have interesting interactivity features:

http://graphr.org/

http://graph.tk/
Offline kilele  
#68 Posted : 10 May 2013 03:14:32(UTC)
kilele


Rank: Advanced Member

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

Was thanked: 132 time(s) in 113 post(s)
uni, please add to your collection of bookmarks this article on how to update a graph on the fly using a short WPF program that reads data from a simple text file (dll included)
http://msdn.microsoft.co...s/magazine/ff714591.aspx
Offline RASG  
#69 Posted : 10 May 2013 05:43:34(UTC)
RASG

Rank: Newbie

Groups: Registered
Joined: 04/01/2012(UTC)
Posts: 3
Location: Buenos Aires

Was thanked: 1 time(s) in 1 post(s)
Uni, your XYPlot plugin is an amazing job! Really is an extraordinary solution for wonderful graphics!
thanks 1 user thanked RASG for this useful post.
on 12/05/2013(UTC)
Offline mkraska  
#70 Posted : 10 May 2013 20:12:32(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,685
Germany

Was thanked: 928 time(s) in 586 post(s)
Hi,

I tried some line styles in xy-plots, here the impressions:

The line patterns (solid, dash...) are hardly distinguishable for line thickness 1. With increased thickness their appearance seems to depend on curvature or slope

If there is an option in the plot library to set line ends to round, I would recommend to use it. Currently we have chains of rectangles, that show gaps at slope changes when set to higher thickness values.

I would recommend to provide defaults for
- line colors (perhaps matching the internal smath 2D plot region)
- legend entries (text representation of the plotted expressions (list elements)

By the way, I still do not manage to control the limits using sheet variables :-(

Martin
File Attachment(s):
Stylesdemo.sm (11kb) downloaded 82 time(s).
mkraska attached the following image(s):
styles.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 10/05/2013(UTC),  on 11/05/2013(UTC),  on 11/05/2013(UTC)
Offline uni  
#71 Posted : 11 May 2013 15:04:56(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Originally Posted by: RASG Go to Quoted Post
Uni, your XYPlot plugin is an amazing job! Really is an extraordinary solution for wonderful graphics!

Don't forget Jack Xu, 80% of the code is taken from his book.

Originally Posted by: mkraska Go to Quoted Post
Hi,

I tried some line styles in xy-plots, here the impressions:

The line patterns (solid, dash...) are hardly distinguishable for line thickness 1. With increased thickness their appearance seems to depend on curvature or slope

If there is an option in the plot library to set line ends to round, I would recommend to use it. Currently we have chains of rectangles, that show gaps at slope changes when set to higher thickness values.

I would recommend to provide defaults for
- line colors (perhaps matching the internal smath 2D plot region)
- legend entries (text representation of the plotted expressions (list elements)

Ok, I'll see what I can implement.

Originally Posted by: mkraska Go to Quoted Post

By the way, I still do not manage to control the limits using sheet variables :-(

I forgot about the regional settings. Apparently it works with dot as decimal separator. But I'm not sure this is a good way to control the settings of the chart.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 11/05/2013(UTC),  on 11/05/2013(UTC)
Offline mkraska  
#72 Posted : 11 May 2013 18:59:20(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,685
Germany

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

Originally Posted by: mkraska Go to Quoted Post

By the way, I still do not manage to control the limits using sheet variables :-(

I forgot about the regional settings. Apparently it works with dot as decimal separator. But I'm not sure this is a good way to control the settings of the chart.


How about using line matrices as for text in the generic SMath 2D plot region? You could use spec strings like matlab or gnuplot. Ticx/limits could be handed over as vectors, perhaps generated in place using range().

I attach an example how this could look like. Would of course be fine to have the xtics symbolically...
mkraska attached the following image(s):
plotcontrol.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline uni  
#73 Posted : 12 May 2013 02:43:33(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Update. Small improvements.

[x] сhanged the display of the grid,

[+] mouse support,
[+] number format (not finished),
[+] drawing a line sets as a single curve,
[+] support for drawing implicit functions (xgrids = ygrids = Points - 1),
[+] default colors for the first 6 datasets.

Edited by user 12 May 2013 03:12:35(UTC)  | Reason: Not specified

File Attachment(s):
XY Plot. Example 3.sm (27kb) downloaded 88 time(s).
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 3 users thanked uni for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline omorr  
#74 Posted : 12 May 2013 09:39:42(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Best,
Radovan
omorr attached the following image(s):
heart.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 4 users thanked omorr for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline mkraska  
#75 Posted : 12 May 2013 11:08:23(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,685
Germany

Was thanked: 928 time(s) in 586 post(s)
Originally Posted by: uni Go to Quoted Post
Update. Small improvements.


uni, again exceeding expectations, thank you for the update.

If these are small improvements, what could normal improvements be...

I tried to explore the mouse support. What I can see for now:
- zoom in and out with the mouse wheel
- shift the axis ranges by dragging with the left mouse + pressing any key except shift and ctrl.


Ctrl + dragging an YXPlot with the left mouse crashes SMath. Normally that creates a copy of the region, that you can drag elsewhere.
Expressions are not accepted for implicit plots, just functions of 2 variables.

Clipping is improved, all lines reach the boundary now. I'd propose not to draw lines where both end points are outside the plotting range (at least not for auto-sampled function plots). In the attached example, the plot of 1/x shows a spurious line connecting the two branches and being quite off the correct position (that could be improved by using more sampling points in the settings dialog, it's not a bug.)

EDIT: Now real contourplots can be made...

EDIT2: (really) small issue: When clicking left on the diagram area in order to activate it, there is no visual feedback (normally, the resizing markers should appear). They come up only if there is actual action taken (resizing, mouse interaction...)

Edited by user 12 May 2013 12:54:58(UTC)  | Reason: Not specified

mkraska attached the following image(s):
clipping#.PNG
contour.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 4 users thanked mkraska for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline omorr  
#76 Posted : 12 May 2013 13:28:53(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: uni Go to Quoted Post
Update. Small improvements.


uni, again exceeding expectations, thank you for the update.

If these are small improvements, what could normal improvements be...

Originally Posted by: mkraska Go to Quoted Post
Ctrl + dragging an YXPlot with the left mouse crashes SMath. Normally that creates a copy of the region, that you can drag elsewhere.

I can confirm that crash. After dragging, some blue regions appeared and than crash.
I remembered that crash with CTRL+drag hapened with SMath plots as well some time ago. Can not find it on the Forum, but I am quite sure the same CTRL+drag of plots crash existed. Maybe Andrey can help to solve this out.

Best,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 2 users thanked omorr for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline uni  
#77 Posted : 12 May 2013 13:34:20(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Originally Posted by: omorr Go to Quoted Post
Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: uni Go to Quoted Post
Update. Small improvements.


uni, again exceeding expectations, thank you for the update.

If these are small improvements, what could normal improvements be...

Originally Posted by: mkraska Go to Quoted Post
Ctrl + dragging an YXPlot with the left mouse crashes SMath. Normally that creates a copy of the region, that you can drag elsewhere.

I can confirm that crash. After dragging, some blue regions appeared and than crash.
I remembered that crash with CTRL+drag hapened with SMath plots as well some time ago. Can not find it on the Forum, but I am quite sure the same CTRL+drag of plots crash existed. Maybe Andrey can help to solve this out.

Best,
Radovan

I know about it. Not found a way to fix it yet.
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 3 users thanked uni for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline mkraska  
#78 Posted : 12 May 2013 13:45:25(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,685
Germany

Was thanked: 928 time(s) in 586 post(s)
Nice function to make a polar grid...
File Attachment(s):
Anleitung.sm (5kb) downloaded 78 time(s).
mkraska attached the following image(s):
polargrid.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC)
Offline mkraska  
#79 Posted : 12 May 2013 16:00:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,685
Germany

Was thanked: 928 time(s) in 586 post(s)
Small formatting issues:

- If PlotMethod is set to splines, then the markers disappear (regardless of what is plotted - matrix, function, grid-based contourline (implicit plot)).
- The marker density of implicit plots is too high. Perhaps a sort of marker spacing parameter would be sensible. Could just be a number i, such that every i-th point is marked. This could be an global option, which could be overwritten by a by trace option.
- EDIT: Non-default setting (spline) of PlotMethod is not preserved upon save/load and upon copy/paste

Edited by user 12 May 2013 16:26:29(UTC)  | Reason: Not specified

mkraska attached the following image(s):
marker.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Offline uni  
#80 Posted : 12 May 2013 16:29:37(UTC)
uni


Rank: Advanced Member

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

Was thanked: 1004 time(s) in 581 post(s)
Originally Posted by: mkraska Go to Quoted Post

- The marker density of implicit plots is too high. Perhaps a sort of marker spacing parameter would be sensible. Could just be a number i, such that every i-th point is marked. This could be an global option, which could be overwritten by a by trace option.

It's hard to do. Symbol density depends on the density of points. But it depends on the algorithm used and the type of function. I'm using the marching squares algorithm that generates a set of segments on the grid cells. Each segment - two points at the ends of the segment. More cells - more points, and hence more symbols. The segments are drawn independently from each other.

Edited by user 12 May 2013 16:39:34(UTC)  | Reason: Not specified

uni attached the following image(s):
XY Plot. ImplicitPlot2D. Marching squares.png
Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
thanks 2 users thanked uni for this useful post.
on 12/05/2013(UTC),  on 12/05/2013(UTC)
Users browsing this topic
Similar Topics
X-Y Plot Region Plugin (Extensions)
by ndtma 24/06/2018 06:00:49(UTC)
X-Y Plot Region Plugin Problem (Questions)
by ndtma 20/06/2018 19:38:44(UTC)
23 Pages«<23456>»
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.