Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


16 Pages<12345>»
Options
Go to last post Go to first unread
Offline mkraska  
#41 Posted : 17 December 2013 13:04:37(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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):
scatter.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#42 Posted : 17 December 2013 15:32:08(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Oh my...Shok 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!"
Offline mkraska  
#43 Posted : 02 January 2014 03:03:47(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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):
Update8.sm (48kb) downloaded 130 time(s).
mkraska attached the following image(s):
update8a.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 02/01/2014(UTC)
Offline omorr  
#44 Posted : 02 January 2014 14:05:40(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Happy new year to you Martin Good

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 Good . 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):
Maxima.zip (1kb) downloaded 75 time(s).
omorr attached the following image(s):
update8-test.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#45 Posted : 03 January 2014 02:01:04(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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.

File Attachment(s):
example Maxima plot3d.sm (15kb) downloaded 118 time(s).
example Maxima plot2d.sm (11kb) downloaded 119 time(s).
Section Graphics Maxima.sm (7kb) downloaded 98 time(s).
Example draw contour_levels.sm (13kb) downloaded 86 time(s).
Section Maxima Plotoptions.sm (44kb) downloaded 92 time(s).
Section Maxima Plotoptions Draw.sm (127kb) downloaded 95 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 03/01/2014(UTC)
Offline omorr  
#46 Posted : 03 January 2014 12:05:31(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
You are welcome Good

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 SMath
Debug - extra commas?

Or see the pictures, where I suppose might be a problem.

Regards,
Radovan
omorr attached the following image(s):
maximacrash-1.png
maximacrash-2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 03/01/2014(UTC)
Offline mkraska  
#47 Posted : 03 January 2014 12:26:25(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 post(s)
Thanks, Radovan, I can reproduce the problem and forwarded it to Kay.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#48 Posted : 22 January 2014 01:39:50(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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):
draw_new.sm (114kb) downloaded 116 time(s).
mkraska attached the following image(s):
draw_013.png
draw_031.png
draw_032.png
draw_033.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 22/01/2014(UTC)
Offline mkraska  
#49 Posted : 01 February 2014 22:46:22(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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):
Maxima-draw-filledcurves.sm (41kb) downloaded 91 time(s).
mkraska attached the following image(s):
transparent.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 02/02/2014(UTC)
Offline mkraska  
#50 Posted : 11 February 2014 05:12:48(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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):
Maxima-draw-filledcurves_new.sm (22kb) downloaded 105 time(s).
Draw2D3D.sm (112kb) downloaded 108 time(s).
Update9.sm (25kb) downloaded 96 time(s).
mkraska attached the following image(s):
slider1.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 11/02/2014(UTC)
Offline omorr  
#51 Posted : 11 February 2014 09:31:55(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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!"
Offline Davide Carpi  
#52 Posted : 11 February 2014 12:07:26(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,639
Man
Italy
Location: Italy

Was thanked: 1323 time(s) in 873 post(s)
Originally Posted by: omorr Go to Quoted Post
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 Biggrin

Edited by user 11 February 2014 12:10:37(UTC)  | Reason: Not specified

Davide Carpi attached the following image(s):
2014-02-11 10_08_24-SMath Studio Desktop - [test.sm_].png
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 11/02/2014(UTC)
Offline mkraska  
#53 Posted : 11 February 2014 12:59:20(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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 ;-)
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#54 Posted : 11 February 2014 17:45:25(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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):
Testing.zip (8kb) downloaded 63 time(s).
omorr attached the following image(s):
nodataavailable.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 11/02/2014(UTC)
Offline mkraska  
#55 Posted : 11 February 2014 20:26:25(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,980
Germany

Was thanked: 1120 time(s) in 718 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?

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#56 Posted : 11 February 2014 20:53:45(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 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!"
Offline Andrey Ivashov  
#57 Posted : 11 February 2014 21:50:04(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Radovan,

Originally Posted by: omorr Go to Quoted Post
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.
Offline omorr  
#58 Posted : 11 February 2014 22:03:55(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Andrey,
Originally Posted by: smath Go to Quoted Post
Radovan,

Originally Posted by: omorr Go to Quoted Post
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!"
Offline Andrey Ivashov  
#59 Posted : 11 February 2014 23:04:39(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 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.
Offline TacticalFAte  
#60 Posted : 12 February 2014 00:55:50(UTC)
TacticalFAte

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

Users browsing this topic
Similar Topics
Error implementing ToolboxGroup for the maxima plugin (Questions)
by fakemoses 31/07/2023 20:09:47(UTC)
Maxima Plugin Feedback Survey: Share Your Ideas and Report Bugs (Feature Requests)
by fakemoses 16/06/2023 13:27:33(UTC)
MAXIMA PLUGIN expand (Questions)
by Angel695 21/05/2023 10:43:40(UTC)
Solve Function Stuck (46/47) with Maxima Plugin (Questions)
by Albedo 30/08/2022 05:24:23(UTC)
[Maxima Plugin] Text exportation issue (Questions)
by SteelCat 11/01/2022 12:47:31(UTC)
Maxima Plugin problem (Bugs & Problems)
by FT_PENG 23/12/2021 23:49:19(UTC)
Text characters not passing correctly to Maxima plugin (Bugs & Problems)
by gurro 15/08/2021 00:14:03(UTC)
[Maxima Plugin] is a custom Maxima function call-able in SMath (Questions)
by 007.000 22/05/2018 13:06:49(UTC)
[Maxima Plugin] least common multiple (Questions)
by 007.000 22/05/2018 12:13:20(UTC)
news for Maxima Plugin (Questions)
by oscampo 27/01/2016 18:39:35(UTC)
Maxima plugin error (Bugs & Problems)
by olik 30/11/2015 10:17:28(UTC)
16 Pages<12345>»
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.