Gnuplot Region

Gnuplot Region - 🚧 Not yet available - Messages

#1 Posted: 5/22/2013 10:30:34 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

I think it's possible

Links:
1. gnuplot homepage.
2. Demo Gallery.
3. Gnuplot in Action.
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Radovan Omorjan 5/23/2013 4:22:00 AM
#2 Posted: 5/23/2013 2:47:53 AM
kilele

kilele

133 likes in 397 posts.

Group: User

I thought that GnuPlot was licensed under GPL, but it seems to have its own license:
http://gnuplot.cvs.sourceforge.net/gnuplot/gnuplot/Copyright
I don't know if this would allow to make open source plugins for a closed source software.

Edit:

Please, see Distribution terms
#3 Posted: 5/23/2013 4:33:44 AM
kilele

kilele

133 likes in 397 posts.

Group: User

so what do they mean by publishing a 'patch' from your modified version ?
#4 Posted: 5/24/2013 10:17:34 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Gnuplot is definitely capable of producing high quality plots.
I prefer the text based interface over deep trees of options, where changing an axis limit requires 10 mouse clicks.
Perhaps just displaying an externally generated image as with the maple plot would be sufficient.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 5/24/2013 1:46:44 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Wrote


Perhaps just displaying an externally generated image as with the maple plot would be sufficient.



I already suggested Asymptote (LGPL)
http://asymptote.sourceforge.net/
I don't know if it would be possible to dump the data from C# via SMath and then use Asymptote language to render graphs.
1 users liked this post
#6 Posted: 5/24/2013 5:18:42 PM
kilele

kilele

133 likes in 397 posts.

Group: User

uni, if it is your intention to drive gnuplot via a pipe as in Octave, there wouldn't be any problem with the license.
sorry for the cofussion
#7 Posted: 5/24/2013 7:33:42 PM
kilele

kilele

133 likes in 397 posts.

Group: User

uni, please take a look at these wrappers for gnuplot:

Gnuplot.C#

Charting with Gnuplot from F#
1 users liked this post
#8 Posted: 5/24/2013 8:28:13 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

uni, please take a look at these wrappers for gnuplot:

Gnuplot.C#

Charting with Gnuplot from F#


Yes, I would do it exactly the same way. I need to think how to use it.
Russia ☭ forever, Viacheslav N. Mezentsev
#9 Posted: 5/25/2013 6:15:32 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Uni, I am looking forward to see gnuplot being operated from within SMath, even be it just as in maplewrapper by editing text and getting image display.

maple may have more functions for plotting but could not generally be recommended due to license issues.

Unfortunately, there seems to be no easy access from c# to matplotlib. Otherwise that would be a really good alternative.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
#10 Posted: 5/25/2013 7:08:18 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Martin, not so fast
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Martin Kraska 5/25/2013 8:06:00 AM, Davide Carpi 5/28/2013 4:13:00 AM
#11 Posted: 6/2/2013 12:49:22 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Unfortunately, there seems to be no easy access from c# to matplotlib. Otherwise that would be a really good alternative.


There is a way. Use a call to python as an external program. I can save image to a file and load it into SMath Studio (as for Maple Plot). But the end user must install Python itself and two libraries: mathplotlib and numpy. I've tried it, it basically works. This is the only way at the moment.

Show Spoiler


Example.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 users liked this post
Davide Carpi 6/2/2013 1:17:00 PM, Martin Kraska 6/2/2013 1:05:00 PM
#12 Posted: 6/2/2013 1:16:16 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Python is widely used, it's not an insurmountable obstacle (I don't remember but it seems to me that Blender Portable use an embedded python, so the installation may be not necessary)


best regards and many thanks for these graphical plugins,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#13 Posted: 6/2/2013 1:31:34 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Wrote

Unfortunately, there seems to be no easy access from c# to matplotlib. Otherwise that would be a really good alternative.


There is a way. Use a call to python as an external program. I can save image to a file and load it into SMath Studio (as for Maple Plot). But the end user must install Python itself and two libraries: mathplotlib and numpy. I've tried it, it basically works. This is the only way at the moment.



That looks good. Besides the mentioned install requirements there is perhaps no chance for interactive mouse control. Still better than maple, where there are license issues and the image quality is worse.
However, non-interactive graphics nowadays are suited for die-hard users and probably not accepted by normal users. Perhaps an option is to provide some sort of generic wrappers that provide comfortable access to basic plotting plus a scripting window.

Btw, how about Sympy? I don't now, if that outperforms mapleV, but it is free both as in beer and in speech.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#14 Posted: 6/2/2013 5:38:41 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Please see the last resources of this post :
http://en.smath.info/forum/yaf_postsm9615_ODESolvers-plugin.aspx#post9615
As far as I know IronPython forms part of the .net environment so it might be possible to access Matplotlib, SimPy, NumPy and SciPy, with IronPython.
1 users liked this post
Radovan Omorjan 6/2/2013 5:53:00 PM
#15 Posted: 6/3/2013 4:09:27 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Please see the last resources of this post :
http://en.smath.info/forum/yaf_postsm9615_ODESolvers-plugin.aspx#post9615
As far as I know IronPython forms part of the .net environment so it might be possible to access Matplotlib, SimPy, NumPy and SciPy, with IronPython.


It may be possible, but very difficult. I still can't figure out how it can be obtained at the form of .Net assembly (dll).

Quote

Btw, how about Sympy?


We can't use SymPy because its syntax is very different from the Maple. For example: diff( sin(x), x$2) (Maple), diff(diff(sin(x),x),x) (SMath Studio), sin(x).diff(x,x) (SymPy)
Russia ☭ forever, Viacheslav N. Mezentsev
#16 Posted: 6/3/2013 4:55:04 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Have you checked this specific tools for visualstudio ?
NumPy and SciPy for IronPython / .Net

As for IronPython in general, there seems to be some info in this tutorial:
http://ironpython.googlecode.com/svn-history/r62/trunk/tutorial/tutorial/ironpython-tutorial.pdf
search for "Connecting Python to .NET" within the pdf.

Another possibility to explore is ironlab
#17 Posted: 6/3/2013 6:29:00 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Wrote

Have you checked this specific tools for visualstudio ?
NumPy and SciPy for IronPython / .Net

As for IronPython in general, there seems to be some info in this tutorial:
http://ironpython.googlecode.com/svn-history/r62/trunk/tutorial/tutorial/ironpython-tutorial.pdf
search for "Connecting Python to .NET" within the pdf.

Another possibility to explore is ironlab


I downloaded and installed the extension for Visual Studio 2010. In the standard wizard the dll project can not be selected. In addition, the script will still run through command line utility.
Then I downloaded the book: Programmer to Programmer - Mueller J.P. - Professional IronPython [2010, PDF, ENG]
It describes a method of how to use the script inside the assembly - Chapter 14. Interacting with the DLR. Using this method it is possible to obtain a plugin in the form of one large assembly. But, its not so easy.
Russia ☭ forever, Viacheslav N. Mezentsev
#18 Posted: 6/3/2013 6:46:59 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Large, difficult ? how much ? I dont't know, maybe other plugin developers can give you their opinion ^^

Uni, now that you and Martin talk about symbolic engines, could you take a look at this one with LGPL license ?
Mathomatic
Maxima seems to have more features than Mathomatic but its GPL license is incompatible with Smath.
However you may be interested in seeing a way to access Maxima via commandline.
#19 Posted: 6/3/2013 7:03:37 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

There is a problem with the use of third-party programs. They need to place their files as resources within the plugin. Now personally, I don't know how to do it for MapleWrapper. Therefore, you can't use it in the new version of SMath Studio until I handle this issue.

As for large and difficult. Similarly, you need to have IronPython within the plugin. In addition, there need to place libraries for the NumPy and mathplotlib. I don't know how to make it all work together. Here it is important to consider the version of each of the parts. That is why it is difficult.

Jasymca like me more. I think it can be made part of SMath Studio.
Russia ☭ forever, Viacheslav N. Mezentsev
#20 Posted: 6/3/2013 7:16:53 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Wrote


Jasymca like me more. I think it can be made part of SMath Studio.



Yes, I mentioned Jasymca in this post.
I don't want to be a spoilsport but I think it was GPL licensed.

  • New Posts New Posts
  • No New Posts No New Posts