DJ Clayworth

218 Reputation

6 Badges

19 years, 252 days

MaplePrimes Activity


These are answers submitted by DJ Clayworth

2D plotting had a substantial upgrade in Maple 11. Tick label formats were just one of the things improved.

David Clayworth Maplesoft GUI Developer

Hi

If you are thinking of something like the "page view" mode that Microsoft Word has, then I'm afraid there is no equivalent in Maple. I would recommend making your worksheet without worrying about pagination, and then inserting whatever page breaks you need to get the page layout you want at the end.

David Clayworth

Maplesoft GUI Developer

You can do this interactively after the plot is generated by selecting the "Show Legend" menu option, under the "Legends" menu.

David Clayworth Maplesoft GUI Developer

If you don't find a solution to this that doesn't involve switching to "Ingles (Estados Unidos)" could you submit a Maple Software Change Request please, or let Maple tech support know about it.

David Clayworth Maplesoft GUI Developer

Autoexecute refers to code in  Maple worksheet that is executed when the worksheet is loaded. Typically it is used to initialise a worksheet before calculations.

Because it is possible (though difficult) for someone to create Maple code that might breach your computer's security you are warned by default when it is executed. You can disable the warning. Help autoexecute gives you some pages with more detail.

David Clayworth Maplesoft GUI Developer

I'm afraid that function isn't currently available in Maple.

David Clayworth Maplesoft GUI Developer

Hi hsjahnu

I have two suggestions for you. If you want to control the size of the plot exactly I recommend using a Plot Component. Open the Components palette on the left and drag the one that looks like a plot into the worksheet. Then select it and open the "properties" dialog using the menu. You can control the exact size of the plot; you can also enter the plot comand you want executed.

Your problems with smoothness are coming because your setting of numpoints is far too high. New users to Maple are sometimes told "increase the value of numpoints" if they don't see a smooth plot, but that works only up to a point, and it's useful only when the curve is complex. You are forcing Maple to draw 10000 line segments in the plot, and even slight shifts of those segments (such as putting them on the nearest pixel) creates a jagged line.

Given that you are plotting a straight line the best setting of numpoints is 2. That's an extreme case, but even for more complex lines you should never need to go above a few hundred, and for smooth curves much less will usually do, and will often give better results than a higher number.

David Clayworth Maplesoft GUI Developer

Assuming you have Maple 11 or later, enter "?plot,typesetting" to get the help page that describes how to do this using the command line. You can also do it interactively by using the "Plot/Axes/Labels/Add..." menu items to add and/or edit labels, or just double-click on an existing label. Once you are editing the label you can use the whole power of the 2D editor to enter math.

David Clayworth Maplesoft GUI Developer

Hi Becca

Maple doesn't have a fixed width on the screen, but print pages have a fixed width. When printing a page with tables of plots Maple has a choice of either not printing the stuff on the page to the right of the page border (bad for many reasons) or squashing the output to fit on the page. The second is the way it takes. Unfortunately this left-right squashing sometimes makes the plots look odd.

What I would recommend is shrinking the table in the horizontal direction. Then adjust the heights of the rows so the plots look good. Then try printing. If the plots still look squashed then shrink the table some more and try again. Eventually they will print looking good.

To get all the rows printed try splitting up the array into smaller arrays so each fits on a page.

David Clayworth Maplesoft GUI Developer

There is a checkbox on the left side of "Auto save every...". If you uncheck it autosave will never happen.

David Clayworth Maplesoft GUI Developer

Hi

If you use the interactive exporter from the standard interface then you will always get an eps file without a border.

If you want to use 'plotdevice' then there is an option to suppress the border "plotoptions=`noborder`". There is an example on the help page for "interface". However I should say that some versions of Maple shipped with this option not working, mainly some issues of Maple 11.

David Clayworth Maplesoft GUI Developer

Hi Groshong

1. In Maple 10 the legend format cannot be changed, I'm afraid. However see below.

2. The syntax for the sort of thing you are trying to do is like this:

plot([sin(x), cos(x), -sin(x)], x = -10 .. 10, legend = ["sine", "cosine", "minus sine"], linestyle = [SOLID, DASH, DOT]);

That should get you a plot with different linestyles and legends for each curve.

Now for the good news. Maple 2D plotting had a complete rewrite in Maple 11. The legend now lays itself out in a much more compact way, lining up entries horizontally when it can. You can also choose where the legend goes relative to the plot. The quality also been improved quite and shouldn't have the sort of grainyness on the dashed and dotted lines. You may want to look at a Maple upgrade if you are going to be doing a lot of plotting like this.

David Clayworth Maplesoft GUI Developer

Hi Infinity

Jakubi is absolutely right that Maple is tested only against the versions of the JVM that it is shipped with. If you run it with any other version then there may be errors - big ones or subtle ones.  It's not recommnded that you try this. Although Java tries to make it's latest releases back compatible with old ones in a complex system like Java that's not always possible. It's unlikely that you will get noticeably faster performance.

If you really want to try a different JVM then I'll try to find you a method for doing so. Obviously one way is to overwrite the JVM in the Maple installation with a new one, but that's even less recommended than any other way. Make sure you keep a copy of the installation Maple created so that you can go back to it.

If you do try using a new JVM then please make sure that if you encounter problems you try switching back to the old JVM, especially before posting to this website or talking to Tech Support. I say this for your own benefit since we may not be able to help you if we don't know the exact setup.

I should add that I really, really don't recommend even trying this if you are on a Mac. And remember that Maplesoft doesn't support anything other than the JREs we shipped with - anything different from that and you're on your own.

I hope that helps.

David Clayworth Maplesoft GUI Developer

Hi Lumian

Writing math as easily as it's done by hand is a very difficult problem, and I can safely say that no computer system exists that is as easy to use as the human hand. In fact many people are working on being able to read handwritten math precisely because that's the easiest way for most people to create it. That's the bad news.

Now for the good news. The Maple interface is probably as easy as any for creating math. It does it  in a WYSIWYG way (What You See Is What You Get), as opposed to LaTeX which is very powerful but involves you writing coded character sequences to represent math symbols. With LaTeX you usually write the symbols for what you want and then execute LaTeX to see if you got it right; then you fix any problems and try again. With Maple you can see the Math being built up as you type. LaTeX also won't do any actual calculations for you( it's just a typesetting package), whereas Maple will.

I'm not familiar with SAGE, but what I've seen indicates that it doesn't have the capability to output (or input) math so that it looks like math you would write by hand. Maple can do both of those. I think you would find Maple suited your needs better than SAGE or LaTeX. Please feel free to ask more questions.

David Clayworth Maplesoft GUI Developer

You can do this by adding an option to the BoxPlot command:

view=[a..b,default]

This will make the x axis run from a to b, overriding the range of the BoxPlot data itself.

David Clayworth Maplesoft GUI Developer

2 3 4 5 6 7 8 Page 4 of 8