  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
The file_name argument must be inside scatterplot(). In your example, it comes as second argument to Maxima(). mkraska attached the following image(s): |
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Oh my...  I simply did not see that, sorry. Thank you for the reply. |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Happy new year to the forum users! Plugin updated. Changes/Features: - List and matrix translation improved, mixed and nested arrays now supported - arcus and area functions are correctly translated The changes improve the access to many functions in Maxima, which require mixed or nested list/matrices as input or produce such output. Also, note that the example shows how to produce scalable svg with the draw package. Extended doc in SVN and update of inofficial version coming soon... File Attachment(s): mkraska attached the following image(s): |
|
 1 user thanked mkraska for this useful post.
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Happy new year to you Martin I just tried your example file. It crashes my SMath, but never mind. I copied parts of your file into another one to see what causes the problem. I just wanted to thank you for stats package. It seems it is working  . The results are put in the system as you presented in your example. Resizing of svg plot example is working for me as well. At the moment I do not know the details of it and how to use it for other plots using draw package, but never mind - I will figure it out sooner or later. It seems that the problem and crash of SMath appeared just at the beginning of your example ( linearalgebra regions also did not produce output). I copied the regions and "stack empty" errors appeared sometimes, sometimes crash happened. It does not look that those regions should cause problems. Actually, only by disabling the calculation of the first two math regions in your example (these first two like in the picture will suppress the SMath crash - calling functions from linearalgebra will still fail). See the picture and the log file please. Regards, Radovan Edited by user 02 January 2014 15:28:07(UTC)
| Reason: Not specified File Attachment(s): omorr attached the following image(s): |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Radovan, thanks for the feedback. I don't know what could be the cause for the crash. You might try - to close and re-open SMath - to verify that you have the most current version of the Plugin (there were 2 bugfixes in the Gallery in the last two days. - you might try the binary from SVN (under bin/debug) - you might try to call the debugger from the Maxima command by adding a second argument: Maxima(...;debug) and go through the steps of the translation process. As for the plot commands: Now, most of the Maxima handbook plots should be reproducible in SMath without error messages. To learn plot control, best is to try the Maxima handbook examples. If there are any problems with translation from Maxima to SMath input, let me know. For the gnuplot preamble commands, see the gnuplot documentation. I found the example page quite helpful. In order to be really user-friendly, we would need sort of control dialog similar to Mathcad with fast and obvious access to the options. Also, mouse interaction should be as extensive as possible. But that would require a custom region with either Maxima or directly gnuplot in the background. For now, I could imagine to set up some support functions of the type Draw2D(opt_list,...)=filename, where filename is a unique random name. Putting this directly into the ImageRegion placeholder would make up a rather comfortable and yet flexible arrangement. |
|
 1 user thanked mkraska for this useful post.
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
You are welcome I see your point in the drawing with many options and a problem related to them. I am not that experienced with this, and to be honest I forgot them constantly. It is impossible to memorize them. That is why we must have them available all the time. At the moment just wanted to point out about the crashing problem of the few mentioned regions. If you have the patience just see these two videos. Maxima crashes SMathDebug - extra commas?Or see the pictures, where I suppose might be a problem. Regards, Radovan omorr attached the following image(s): |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
 1 user thanked omorr for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Thanks, Radovan, I can reproduce the problem and forwarded it to Kay. |
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Here is a preview on how graphics could be supported in the Maxima plugin. In the attached sheet, the functions Draww2D() and Draw3D() are defined. They take a list of options and objects as first argument, the output file name as second argument and optionally a two element list or matrix as size specification (defaults to 300x240 pixels). Filenames can be given with .svg or .png extension, the output format is set accordingly. If no extension is given, it defaults to .svg. The functions return the actual name of the produced output. For display, image regions are used. If the image region would evaluate the file name expression, the complete command for making the plot could reside in the placeholder and eventually be hidden. For now, the file name must be assigned to a variable and that variable must be put in the placeholder of the image region. The attached sheet contains snapshot regions, as it was made to produce images for the pdf-handbook. The examples in the attached sheet are mainly from the Maxima-Handbook, but also from the Plot3D plugin by uni (Klein bottle). The screenshots show the complete code required to produce the plots (except init like setting current dir to document directory and eventual reset of Maxima incl. loading of the draw package. After some playing around and eventual feedback from the forum we shall implement the proposed functions in the Maxima plugin. Feel free to test and propose improvements. Edited by user 22 January 2014 01:44:50(UTC)
| Reason: Not specified File Attachment(s): mkraska attached the following image(s): |
|
 1 user thanked mkraska for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Improved version of the functions Draw2D() and Draw3D(). It is now easier to use gnuplot preamble commands (no need to include the internal terminal settings). In the attached files there are some more example plots. File Attachment(s): mkraska attached the following image(s): |
|
 1 user thanked mkraska for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Plugin updated. - Adjustments to plugin interface changes - bug fixes - functions Draw2D() and Draw2D() - improved messages on pos/neg assumptions - xml settings file with options for customization EDIT: You might need to execute the example twice in order to get the image paths right. Is on the todo list. The translation process is purely regexp based and slow, but more reliable than ever. Plotting more than 200 points (if not Maxima-generated) is not recommended. Edited by user 11 February 2014 13:04:43(UTC)
| Reason: Not specified File Attachment(s): mkraska attached the following image(s): |
|
 1 user thanked mkraska for this useful post.
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Hmm...I can not find the Slider Region in the Extensions Gallery. Where it is? It is made by Davide but I could not even guess the password this time (as I usually do)? Edited by user 11 February 2014 09:33:51(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,736   Location: Italy Was thanked: 1405 time(s) in 914 post(s)
|
Originally Posted by: omorr  Hmm...I can not find the Slider Region in the Extensions Gallery. Where it is? It is made by Davide but I could not even guess the password this time (as I usually do)? Don't worry, will be relased ASAP  Edited by user 11 February 2014 12:10:37(UTC)
| Reason: Not specified Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
 1 user thanked Davide Carpi for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
I deactivated the sliders in the example. No need to ask the NSA for the password, it is not that strong. However (Davide, forgive me), I might trade it against hints on how to use the modeller region ;-) |
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Hello Martin, It seems there is a bit unstability in Maxima plugin and the recent SMath nightly build. I used both on my Win7(x86) and Win7(64). On x86 performs better, but sometimes crashed when using Reference Notebook. If not crashed than [Maxima] no data availiable appered - see the picture pleas. On x64 it is much worse. I attached the logfile and your file. It crashes SMath. You can also see this on the video Regards, Radovan File Attachment(s): omorr attached the following image(s): |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
 1 user thanked omorr for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 2,048  Was thanked: 1177 time(s) in 752 post(s)
|
Seems that Algsys requires the arguments to be lists, as the error message in the log file says. This is an unintended new feature which we shall remove.
The function, however, should throw a standard error message instead of complaining of no data or just crashing (which I confirm).
Meanwhile, you might use Solve(), which I use by default for solving equations or systems. Have you ever had an example that Alsgsys could handle but Solve could not?
|
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
I just was a bit worried about the messages like "memory damaged ..." on my office comuputer and the crash things. Moreover Algsys() also can produce this problem like in this video. The problem is with Ans you defined in the Notebook. I just hope you are aware of all of this and those changes in SMath will not be so often in order to produce this behavior of Maxima plugin. Than would be almost impossible to keep Maxima plugin up to date Regards, Radovan Edited by user 11 February 2014 21:01:04(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,640   Was thanked: 2012 time(s) in 680 post(s)
|
Radovan, Originally Posted by: omorr  those changes in SMath will not be so often What changes do you mean? I don't think this is something was introduced because of API changed. Anyway please do let me know if there is something I can help. Best regards, Andrey Ivashov.
|
|
|
|
  Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740   Was thanked: 319 time(s) in 268 post(s)
|
Hello Andrey, Originally Posted by: smath  Radovan, Originally Posted by: omorr  those changes in SMath will not be so often What changes do you mean? I don't think this is something was introduced because of API changed. Anyway please do let me know if there is something I can help. I am not able to follow what changed - I am not a programmer. Actually, I was just thinking from the point of users and plugin makers. I remember uni mentioned that there is no definite agreement about the plugins (do not know what that actually means). I also remember there some time ago a similar situation when Extension Gallery was introduced. Plugin makers had to change the things. I do not how much time would take to stabilize the things regarding plugins. I hope I made myself understood. Regards, Radovan |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
  Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,640   Was thanked: 2012 time(s) in 680 post(s)
|
Yes, thank you. Now I see...
Last change you're talking about was made only for plug-ins which adds new Region types. Maxima plug-in is another type of plug-ins - nothing was changed there. It seems, that current issue is something not related to API. However the reason still can be in SMath Studio binaries...
Best regards.
|
|
|
|
 Rank: Newbie
Groups: Registered
Joined: 12/02/2014(UTC) Posts: 1
|
Can the maxima plugin be used in Linux? I have maxima installed, but the maxima control window crashes when I try to open it Edited by user 12 February 2014 01:09:25(UTC)
| Reason: Not specified
|
|
|
|
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.