Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
|
Russia ☠forever Viacheslav N. Mezentsev |
1 user thanked uni for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
so what do they mean by publishing a 'patch' from your modified version ? Edited by user 23 May 2013 11:35:59(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,988 Was thanked: 1125 time(s) in 722 post(s)
|
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.
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
Originally Posted by: mkraska 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 user thanked kilele for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
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 Edited by user 25 May 2013 00:24:28(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
|
1 user thanked kilele for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
Originally Posted by: kilele Yes, I would do it exactly the same way. I need to think how to use it. |
Russia ☠forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,988 Was thanked: 1125 time(s) in 722 post(s)
|
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. |
|
1 user thanked mkraska for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
Martin, not so fast |
Russia ☠forever Viacheslav N. Mezentsev |
2 users thanked uni for this useful post.
|
on 25/05/2013(UTC), on 28/05/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
Originally Posted by: mkraska 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.
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np import io
fig = plt.figure() ax = fig.add_subplot(111, projection='3d' ) for c, z in zip(['r', 'g', 'b', 'y'], [30, 20, 10, 0] ): xs = np.arange(20) ys = np.random.rand(20)
# You can provide either a single color or an array. To demonstrate this, # the first bar of each set will be colored cyan. cs = [c] * len(xs) cs[0] = 'c' ax.bar(xs, ys, zs=z, zdir='y', color=cs, alpha=0.8 )
ax.set_xlabel('X' ) ax.set_ylabel('Y' ) ax.set_zlabel('Z' )
plt.savefig("Example.png", format = 'png' )
Edited by user 02 June 2013 19:54:10(UTC)
| Reason: Not specified uni attached the following image(s): |
Russia ☠forever Viacheslav N. Mezentsev |
2 users thanked uni for this useful post.
|
on 02/06/2013(UTC), on 02/06/2013(UTC)
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,648 Location: Italy Was thanked: 1331 time(s) in 876 post(s)
|
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 Edited by user 02 June 2013 20:20:06(UTC)
| Reason: Not specified |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,988 Was thanked: 1125 time(s) in 722 post(s)
|
Originally Posted by: uni Originally Posted by: mkraska 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. |
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
|
1 user thanked kilele for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
Originally Posted by: kilele 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 |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
Originally Posted by: kilele 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. Edited by user 03 June 2013 13:32:23(UTC)
| Reason: Not specified |
Russia ☠forever Viacheslav N. Mezentsev |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
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 ? MathomaticMaxima 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.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,494 Was thanked: 1274 time(s) in 745 post(s)
|
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 |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
Originally Posted by: uni 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.
|
|
|
|
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.