X-Y Plot Region

X-Y Plot Region - Extends SMath Studio with a X-Y Plot Region. - Сообщения

#61 Опубликовано: 03.05.2013 11:22:15
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: User

Uni, this c# library might be of your interest if you plan to support interactive charts :
http://sharpgraphlib.sourceforge.net/
Thanks!!
1 пользователям понравился этот пост
#62 Опубликовано: 03.05.2013 12:00:43
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 Опубликовано: 03.05.2013 14:36:33
Basile

Basile

8 сообщений из 172 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Radovan Omorjan 04.05.2013 13:01:00, Вячеслав Мезенцев 03.05.2013 14:38:00
#64 Опубликовано: 03.05.2013 14:38:52
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Radovan Omorjan 03.05.2013 14:47:00
#65 Опубликовано: 04.05.2013 13:00:31
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 04.05.2013 14:38:49
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Radovan Omorjan 04.05.2013 14:54:00
#67 Опубликовано: 04.05.2013 22:06:20
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 09.05.2013 20:14:32
kilele

kilele

133 сообщений из 397 понравились пользователям.

Группа: 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 Опубликовано: 09.05.2013 22:43:34
RASG

RASG

1 сообщений из 3 понравились пользователям.

Группа: User

Uni, your XYPlot plugin is an amazing job! Really is an extraordinary solution for wonderful graphics!
1 пользователям понравился этот пост
#70 Опубликовано: 10.05.2013 13:12:32
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 145 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
Вячеслав Мезенцев 11.05.2013 07:55:00, ioan92 10.05.2013 14:38:00, Davide Carpi 11.05.2013 08:25:00
#71 Опубликовано: 11.05.2013 08:04:56
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Martin Kraska 11.05.2013 14:30:00, Davide Carpi 11.05.2013 08:24:00
#72 Опубликовано: 11.05.2013 11:59:20
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 11.05.2013 19:43:33
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 КиБ) скачан 166 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
3 пользователям понравился этот пост
Martin Kraska 12.05.2013 02:55:00, Davide Carpi 12.05.2013 08:20:00, Fridel Selitsky 12.05.2013 00:37:00
#74 Опубликовано: 12.05.2013 02:39:42
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Best,
Radovan
heart.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
4 пользователям понравился этот пост
Вячеслав Мезенцев 12.05.2013 05:29:00, Davide Carpi 12.05.2013 08:20:00, Mike Kaganski 12.05.2013 09:04:00, Andrey Ivashov 12.05.2013 06:11:00
#75 Опубликовано: 12.05.2013 04:08:23
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Вячеслав Мезенцев 12.05.2013 05:29:00, ioan92 12.05.2013 06:38:00, Davide Carpi 12.05.2013 08:20:00, Radovan Omorjan 12.05.2013 06:01:00
#76 Опубликовано: 12.05.2013 06:28:53
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 12.05.2013 08:20:00, ioan92 12.05.2013 06:39:00
#77 Опубликовано: 12.05.2013 06:34:20
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 12.05.2013 08:20:00, Radovan Omorjan 12.05.2013 06:42:00, ioan92 12.05.2013 06:37:00
#78 Опубликовано: 12.05.2013 06:45:25
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Nice function to make a polar grid...
Anleitung.sm (4 КиБ) скачан 142 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 пользователям понравился этот пост
Radovan Omorjan 12.05.2013 07:59:00, Davide Carpi 12.05.2013 08:20:00
#79 Опубликовано: 12.05.2013 09:00:22
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 12.05.2013 09:29:37
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 12.05.2013 10:49:00, Martin Kraska 12.05.2013 09:37:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений