X-Y Plot Region

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

#61 Posted: 5/3/2013 11:22:15 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Uni, this c# library might be of your interest if you plan to support interactive charts :
http://sharpgraphlib.sourceforge.net/
Thanks!!
1 users liked this post
#62 Posted: 5/3/2013 12:00:43 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

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
#63 Posted: 5/3/2013 2:36:33 PM
Basile

Basile

8 likes in 172 posts.

Group: User

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
2 users liked this post
Radovan Omorjan 5/4/2013 1:01:00 PM, Вячеслав Мезенцев 5/3/2013 2:38:00 PM
#64 Posted: 5/3/2013 2:38:52 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

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
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Radovan Omorjan 5/3/2013 2:47:00 PM
#65 Posted: 5/4/2013 1:00:31 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

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

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#66 Posted: 5/4/2013 2:38:49 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Wrote


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.blogspot.com.es/2007/04/highlight-overlapping-area-between-two.html

http://onertipaday.blogspot.com.es/2008/12/statistical-visualizations.html

http://onertipaday.blogspot.com.es/2007/04/how-to-superimpose-histograms.html
1 users liked this post
Radovan Omorjan 5/4/2013 2:54:00 PM
#67 Posted: 5/4/2013 10:06:20 PM
kilele

kilele

133 likes in 397 posts.

Group: User

uni, please look at this post
http://en.smath.info/forum/yaf_postsm8829_improvement-to-plots.aspx
these two webapp graphers have interesting interactivity features:

http://graphr.org/

http://graph.tk/
#68 Posted: 5/9/2013 8:14:32 PM
kilele

kilele

133 likes in 397 posts.

Group: User

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.com/en-us/magazine/ff714591.aspx
#69 Posted: 5/9/2013 10:43:34 PM
RASG

RASG

1 likes in 3 posts.

Group: User

Uni, your XYPlot plugin is an amazing job! Really is an extraordinary solution for wonderful graphics!
1 users liked this post
#70 Posted: 5/10/2013 1:12:32 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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
Stylesdemo.sm (10 KiB) downloaded 117 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Вячеслав Мезенцев 5/11/2013 7:55:00 AM, ioan92 5/10/2013 2:38:00 PM, Davide Carpi 5/11/2013 8:25:00 AM
#71 Posted: 5/11/2013 8:04:56 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

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.

Wrote

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.

Wrote


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
2 users liked this post
Martin Kraska 5/11/2013 2:30:00 PM, Davide Carpi 5/11/2013 8:24:00 AM
#72 Posted: 5/11/2013 11:59:20 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote


Wrote


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...
plotcontrol.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#73 Posted: 5/11/2013 7:43:33 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

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.

[albumimg]134[/albumimg] [albumimg]135[/albumimg] [albumimg]136[/albumimg] [albumimg]137[/albumimg]
XY Plot. Example 3.sm (26 KiB) downloaded 130 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Martin Kraska 5/12/2013 2:55:00 AM, Davide Carpi 5/12/2013 8:20:00 AM, Fridel Selitsky 5/12/2013 12:37:00 AM
#74 Posted: 5/12/2013 2:39:42 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Best,
Radovan
heart.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
4 users liked this post
Вячеслав Мезенцев 5/12/2013 5:29:00 AM, Davide Carpi 5/12/2013 8:20:00 AM, Mike Kaganski 5/12/2013 9:04:00 AM, Andrey Ivashov 5/12/2013 6:11:00 AM
#75 Posted: 5/12/2013 4:08:23 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

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...)
contour.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
4 users liked this post
Вячеслав Мезенцев 5/12/2013 5:29:00 AM, ioan92 5/12/2013 6:38:00 AM, Davide Carpi 5/12/2013 8:20:00 AM, Radovan Omorjan 5/12/2013 6:01:00 AM
#76 Posted: 5/12/2013 6:28:53 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Wrote

Update. Small improvements.


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

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


Wrote

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!"
2 users liked this post
Davide Carpi 5/12/2013 8:20:00 AM, ioan92 5/12/2013 6:39:00 AM
#77 Posted: 5/12/2013 6:34:20 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Wrote

Wrote

Update. Small improvements.


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

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


Wrote

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
3 users liked this post
Davide Carpi 5/12/2013 8:20:00 AM, Radovan Omorjan 5/12/2013 6:42:00 AM, ioan92 5/12/2013 6:37:00 AM
#78 Posted: 5/12/2013 6:45:25 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Nice function to make a polar grid...
Anleitung.sm (4 KiB) downloaded 112 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Radovan Omorjan 5/12/2013 7:59:00 AM, Davide Carpi 5/12/2013 8:20:00 AM
#79 Posted: 5/12/2013 9:00:22 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

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
marker.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#80 Posted: 5/12/2013 9:29:37 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote


- 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.
XY Plot. ImplicitPlot2D. Marching squares.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Davide Carpi 5/12/2013 10:49:00 AM, Martin Kraska 5/12/2013 9:37:00 AM
  • New Posts New Posts
  • No New Posts No New Posts