PatrickT

Dr. Patrick T

2108 Reputation

18 Badges

16 years, 302 days

MaplePrimes Activity


These are replies submitted by PatrickT

Here's what I see with Firefox (Win7x64):

Here's what I see with Internet Explorer( Win7x64)

Here's what I see when I click on "edit":

I've experienced this problem with some of my posts in the recent past. Not sure what's going on though...

Thanks acer, thanks Alejandro, you have converted me. Very sound reasons to work with mpl files directly, thanks for this explanation. Having recently moved from .mws to .mw, I will now move to .mpl.

I will have no regrets, I can't stand it that it takes so long to load standard. Often I'm just opening files to see what's inside of them. I find (as documented and discussed here) that restart is not enough to clear the memory, so I'm closing and restarting worksheets all the time, with typically a 5-10 second delay (or more if I've got other programs running too). I usually save my .mw files with the output removed to save storage space, otherwise some of my worksheets can weigh up to 50 or even 100 megabytes (plots included, I haven't been able to make bigger files though, Maple crashes after a point). I too lost some worksheets to errors caused by a crash, but I keep multiple backups most of the time, so it's not been a major problem. Text files are more efficient to load.

With this method, I can also toggle between classic and standard easily, by calling a different batch file, so that's also potentially quite helpful (esp. to export 3d graphs, at least until the standard 3d plot drivers are upgraded, there may be other reasons to process the .mpl files with classic rather than standard, like in case bugs were introduced in recent versions).

Alejandro thanks for this detailed explanation of your setup, I'll emulate it. I'm not so familiar with unix, or with anything for that matter, my general approach is to google for something like what I need and to attempt to tweak it. I often waste a lot of time until I get the quotes and other details right, but the great thing about batch files is that once they work it's incredibly convenient and efficient.

Is there a quick way to convert .mw files into .mpl and vice versa? Do you use a batch file for that or do you have a line of code that will convert the content of an entire worksheet?

acer, you mention CVS, you are reading my mind! I have a dual-boot system windows/kubuntu on my personal laptop. I mostly use windows, partly because I have windows at work (and licences for  Maple, Matlab, Stata, etc. are at work and set up under windows only) and partly because every time I have attempted to switch to linux I've had problem adapting my habits, for instance my LaTeX files, compiled with TeXNicCenter were not compiling with Kyle, I couldn't set up the email provider to do exactly what I was used to under windows, etc.. I end up spending more time under windows than I really ought to. I do have python programs I use only under kubuntu (I have not installed python under windows), they were written by my co-author, who also instructed me on which software to use and so on (we use eclipse as front-end sometimes, but mostly it's command-line stuff and basic text editors similar to medit),  we have bazaar set up for revision control (he set it up for me and I dare not upgrade to the next version of kubuntu because he's moved back to Europe (while I'm in Asia) and I may not know how to set it up properly again, scary thought). I don't have any CVS under windows, I haven't had time to set it up, so I manually save backup every hour that I work (absurd!). Setting up a CVS under windows is one of my priorities. I recently downloaded a few of the popular ones, but haven't got round to trying them out. The only one I know is bazaar under linux, not sure if that works the same way under windows. Any CVS you would recommend?

I hadn't heard about cygwin. I've looked it up, thanks for the pointer, the FAQ made me smile, "They can be used from one of the provided Unix shells like bash, tcsh or zsh, as well as from the standard Windows command shell if you have to for some sad reason." I'll keep it in mind, definitely.

Now I'm going to experiment on my current work to see if I can get medit, the batch files, and the $ifdef / $endif markers to work. I've only tested them on the 2+2 example. Fingers crossed!

thanks a lot acer, gracias a vos Alejandro.

Thanks acer, thanks Alejandro, you have converted me. Very sound reasons to work with mpl files directly, thanks for this explanation. Having recently moved from .mws to .mw, I will now move to .mpl.

I will have no regrets, I can't stand it that it takes so long to load standard. Often I'm just opening files to see what's inside of them. I find (as documented and discussed here) that restart is not enough to clear the memory, so I'm closing and restarting worksheets all the time, with typically a 5-10 second delay (or more if I've got other programs running too). I usually save my .mw files with the output removed to save storage space, otherwise some of my worksheets can weigh up to 50 or even 100 megabytes (plots included, I haven't been able to make bigger files though, Maple crashes after a point). I too lost some worksheets to errors caused by a crash, but I keep multiple backups most of the time, so it's not been a major problem. Text files are more efficient to load.

With this method, I can also toggle between classic and standard easily, by calling a different batch file, so that's also potentially quite helpful (esp. to export 3d graphs, at least until the standard 3d plot drivers are upgraded, there may be other reasons to process the .mpl files with classic rather than standard, like in case bugs were introduced in recent versions).

Alejandro thanks for this detailed explanation of your setup, I'll emulate it. I'm not so familiar with unix, or with anything for that matter, my general approach is to google for something like what I need and to attempt to tweak it. I often waste a lot of time until I get the quotes and other details right, but the great thing about batch files is that once they work it's incredibly convenient and efficient.

Is there a quick way to convert .mw files into .mpl and vice versa? Do you use a batch file for that or do you have a line of code that will convert the content of an entire worksheet?

acer, you mention CVS, you are reading my mind! I have a dual-boot system windows/kubuntu on my personal laptop. I mostly use windows, partly because I have windows at work (and licences for  Maple, Matlab, Stata, etc. are at work and set up under windows only) and partly because every time I have attempted to switch to linux I've had problem adapting my habits, for instance my LaTeX files, compiled with TeXNicCenter were not compiling with Kyle, I couldn't set up the email provider to do exactly what I was used to under windows, etc.. I end up spending more time under windows than I really ought to. I do have python programs I use only under kubuntu (I have not installed python under windows), they were written by my co-author, who also instructed me on which software to use and so on (we use eclipse as front-end sometimes, but mostly it's command-line stuff and basic text editors similar to medit),  we have bazaar set up for revision control (he set it up for me and I dare not upgrade to the next version of kubuntu because he's moved back to Europe (while I'm in Asia) and I may not know how to set it up properly again, scary thought). I don't have any CVS under windows, I haven't had time to set it up, so I manually save backup every hour that I work (absurd!). Setting up a CVS under windows is one of my priorities. I recently downloaded a few of the popular ones, but haven't got round to trying them out. The only one I know is bazaar under linux, not sure if that works the same way under windows. Any CVS you would recommend?

I hadn't heard about cygwin. I've looked it up, thanks for the pointer, the FAQ made me smile, "They can be used from one of the provided Unix shells like bash, tcsh or zsh, as well as from the standard Windows command shell if you have to for some sad reason." I'll keep it in mind, definitely.

Now I'm going to experiment on my current work to see if I can get medit, the batch files, and the $ifdef / $endif markers to work. I've only tested them on the 2+2 example. Fingers crossed!

thanks a lot acer, gracias a vos Alejandro.

@pagan, I didn't know this way, compact, nice.

my small value added here, just to show some options you can select from to customize your plot, just two examples

plot( [ <<L1>|<L2>>, <<L1>|<L3>> ], 'style' = point, 'symbol' = [solidcircle,solidbox], 'symbolsize' = [16,12], 'color' = [ red, blue] );


plot( [ <<L1>|<L2>>, <<L1>|<L3>> ], 'linestyle' = [2,7], 'color' = [ red, blue] );


@pagan, I didn't know this way, compact, nice.

my small value added here, just to show some options you can select from to customize your plot, just two examples

plot( [ <<L1>|<L2>>, <<L1>|<L3>> ], 'style' = point, 'symbol' = [solidcircle,solidbox], 'symbolsize' = [16,12], 'color' = [ red, blue] );


plot( [ <<L1>|<L2>>, <<L1>|<L3>> ], 'linestyle' = [2,7], 'color' = [ red, blue] );


thanks a lot Alejandro, it's working now. Sorry my questions were rather silly.

This is my bat file:

@echo off
"C:\Program Files\Maple 15\bin.win\cmaple.exe" %1 %2 %3 %4

It works with or without the .exe extension on cmaple. I don't know why four instances of %1 ... %4 are needed (if they are). The bat file that resides in the Maple bin.win folder has 9 instances of them, like this:

cmaple %1 %2 %3 %4 %5 %6 %7 %8 %9

Anyhow this is a dos issue. The main thing is that it's working now. Both medit and the $define/$ifdef/$endif stuff work.

I found I had to enclose the path within double quotes, otherwise it wouldn't work. That was one big problem I had. Another problem was that I was accidentally running medit on a backup copy which was located in a different folder, and thus pointing to the wrong location, very silly, it should have been easy to spot under normal circumstances but I guess all my attention was focused elsewhere and I hadn't noticed it until now.

The advantage over Robert's suggestion is that the $ifdef / $endif statements can enclose several execution groups (theres' no such thing as an execution group in the .mpl file, as far as I could tell from opening it in medit), so there's no need to mark every single execution group (I think this is needed in Robert's proc, if I understand correctly).

The drawback over Robert's method, however, is that one needs an .mpl file to begin with. I can see a danger lurking here: I might accidentally modify both the .mpl and the .mw source file at the same time and overwrite changes when I convert my .mw file into an .mpl file. I therefore need a system: decide which of the .mw or .mpl is to be the "master" file. Which do you do Alejandro? I imagine the whole point of using medit is that you edit your .mpl files within it? you wouldn't even need to keep an .mw file, right? so you just archive .mpl files and nothing else or do you keep both? How about creating an .mw file from the .mpl file from medit, do you ever need to do that?

thanks!

thanks a lot Alejandro, it's working now. Sorry my questions were rather silly.

This is my bat file:

@echo off
"C:\Program Files\Maple 15\bin.win\cmaple.exe" %1 %2 %3 %4

It works with or without the .exe extension on cmaple. I don't know why four instances of %1 ... %4 are needed (if they are). The bat file that resides in the Maple bin.win folder has 9 instances of them, like this:

cmaple %1 %2 %3 %4 %5 %6 %7 %8 %9

Anyhow this is a dos issue. The main thing is that it's working now. Both medit and the $define/$ifdef/$endif stuff work.

I found I had to enclose the path within double quotes, otherwise it wouldn't work. That was one big problem I had. Another problem was that I was accidentally running medit on a backup copy which was located in a different folder, and thus pointing to the wrong location, very silly, it should have been easy to spot under normal circumstances but I guess all my attention was focused elsewhere and I hadn't noticed it until now.

The advantage over Robert's suggestion is that the $ifdef / $endif statements can enclose several execution groups (theres' no such thing as an execution group in the .mpl file, as far as I could tell from opening it in medit), so there's no need to mark every single execution group (I think this is needed in Robert's proc, if I understand correctly).

The drawback over Robert's method, however, is that one needs an .mpl file to begin with. I can see a danger lurking here: I might accidentally modify both the .mpl and the .mw source file at the same time and overwrite changes when I convert my .mw file into an .mpl file. I therefore need a system: decide which of the .mw or .mpl is to be the "master" file. Which do you do Alejandro? I imagine the whole point of using medit is that you edit your .mpl files within it? you wouldn't even need to keep an .mw file, right? so you just archive .mpl files and nothing else or do you keep both? How about creating an .mw file from the .mpl file from medit, do you ever need to do that?

thanks!

@Alejandro Jakubi 

thanks Alejandro, what's in your bat file? I have tried just about everything I could think of:

I have a cmaple.bat file with the following text:

"C:\Program Files\Maple 15\bin.win\cmaple.exe"

It works when I click on it, in the sense that it calls cmaple and opens a command-line cmaple window.

But... how do I point to it from within medit?

As you suggested, I have written in the script box:  cmaple %DOC%

and variants like cmaple.bat or "C:\Program Files\Maple 15\bin.win\cmaple.bat" but haven't been able to get it to work, I still get the error message reported earlier. But the odd thing is that cmaple.bat does work by itself.

'cmaple' is not recognized as an internal or external command,
operable program or batch file.
*** Exited with status 1 ***

@Alejandro Jakubi 

thanks Alejandro, what's in your bat file? I have tried just about everything I could think of:

I have a cmaple.bat file with the following text:

"C:\Program Files\Maple 15\bin.win\cmaple.exe"

It works when I click on it, in the sense that it calls cmaple and opens a command-line cmaple window.

But... how do I point to it from within medit?

As you suggested, I have written in the script box:  cmaple %DOC%

and variants like cmaple.bat or "C:\Program Files\Maple 15\bin.win\cmaple.bat" but haven't been able to get it to work, I still get the error message reported earlier. But the odd thing is that cmaple.bat does work by itself.

'cmaple' is not recognized as an internal or external command,
operable program or batch file.
*** Exited with status 1 ***

@Alejandro Jakubi 

inocente quizás, pero no soy ningún santo!

;-)

An unresolved issue about the location of the legend, dating back to Maple 11:

http://www.mapleprimes.com/posts/41633-Maple-11-Plotting-Features

@Benn 

Maple 15 / Windows 7x64 / Standard GUI, inline and postscript,

I can't seem to be able to produce an example in which the distance between the horizontal axis label and the legend is satisfactory. It always comes out too short. The circumstances for which this fixed distance was computed must have changed.

Here is the default:

Here a better position obtained by forcing 'view' to negative values, as suggested by Robert, but it has its drawbacks:

No, that fixed distance doesn't work in "most" circumstances I have encountered.

@Alejandro Jakubi 

ah that makes sense, thanks so much!

thanks also for the other tips:

I've installed medit, is that what you use now? (I'm using eclipse under kubuntu but I have Maple only under Windows at work). I followed your suggestions. I can load an mpl file. I could modify preferences as you suggest:

Files: *.mpl
Requires: Document
Save: Nothing
Type: Shell command
Input: Whole document
Output: Output pane
Filter: default
Script Box : "C:\Program Files\Maple15\bin.win\cmaple.exe"

this produces the following error:

[C:\maple] "C:\Program Files\Maple15\bin.win\cmaple.exe"
rm was unexpected at this time.
*** Exited with status 1 ***

I also tried with maplew.exe. Any ideas about what I might be doing wrong under Windows?

thanks.

@Alejandro Jakubi 

ah that makes sense, thanks so much!

thanks also for the other tips:

I've installed medit, is that what you use now? (I'm using eclipse under kubuntu but I have Maple only under Windows at work). I followed your suggestions. I can load an mpl file. I could modify preferences as you suggest:

Files: *.mpl
Requires: Document
Save: Nothing
Type: Shell command
Input: Whole document
Output: Output pane
Filter: default
Script Box : "C:\Program Files\Maple15\bin.win\cmaple.exe"

this produces the following error:

[C:\maple] "C:\Program Files\Maple15\bin.win\cmaple.exe"
rm was unexpected at this time.
*** Exited with status 1 ***

I also tried with maplew.exe. Any ideas about what I might be doing wrong under Windows?

thanks.

First 33 34 35 36 37 38 39 Last Page 35 of 93