DJ Clayworth

218 Reputation

6 Badges

19 years, 253 days

MaplePrimes Activity


These are answers submitted by DJ Clayworth

Hi Roberto

How close is this to the sort of thing you need?

<a href='http://mapleoracles.maplesoft.com:8080/maplenet/primes/worksheet/572_RobertoPie.mw'>View 572_RobertoPie.mw on MapleNet</a> or <a href='http://www.mapleprimes.com/files/572_RobertoPie.mw'>Download 572_RobertoPie.mw</a><br/><a href='http://www.mapleprimes.com/viewfile/3453'>View file details</a>

Hi

You will find this function under ExportMatrix in the help system. Of course I could also ask what it was you were wanting to do in MATLAB that can't be done in Maple?

David Clayworth Maplesoft GUI Developer

For a genuine polar plot set axiscoordinates=polar too.

David Clayworth Maplesoft GUI Developer

2) You can adjust the size of the plot in its canvas with the mouse. Select the plot, and look at the toolbar. The rightmost icon (in Maple 12) gives you a choice of how you manipulate the plot. Choose the one with the red ball and arrow and you can change the size of the plot in its canvas. The "hand" gives you the ability to move the plot in the window.

3) Titles, plots etc. are centred in the visible part of the document,. But if you have a wide object with fixed width (such as an image or an embedded component) in the document so that a scrollbar appears at the bottom of the visible area, and that scrollbar is not all the way to the left, then these items can appear off-centre. You can fix this by making the document window wider, or by shrinking the fixed-width object, or by moving the scrollbar to the left.

4) I hope you have found out that you can show/hide either palette dock with the tiny little arrows high up at the left/right of the document. They are separately controllable. If you don't want anything in the right hand dock you can simply drag palettes out of it into the left dock, or use the right mouse button on the palette to remove it from either dock. An empty dock is still shown, but you can then shrink it using the arrows.

David Clayworth Maplesoft GUI Developer

It is strongly recommended that you do not use the uppercase structures like POINTS and SYMBOL when creating plots. Although they are documented, they are the internal structures used by the plot system. By using them you are bypassing a significant amount of error checking;you may be preventing the use of optimizations that will speed up your plot; and more recent options may not be documented in the descriptions of these structures. There is virtually always an equivalent using the more normal (lowercase) plot commands that is better to use - in this case Georgios has a good way of doing it.

David Clayworth Maplesoft GUI Developer

That feature is not currently offered by Maple. You can attempt to use textplot to construct your own if you wish.

David Clayworth Maplesoft GUI Developer

A good way I've found to do this is to plot an evenly-spaced variable on the Y axis and then use custom tickmarks to label the positions.

So in your dataset replace occurrences of "0.25YR" with 0, "0.5YR" with 1, "1YR" with 2 etc. The data points will now be evenly spaced on the Y axis.

When you come to plot the data add custom tickmarks at the data points. The option will look something like:

axis[2]=[tickmarks=[0="0.25Y",1="0.5Y",2="1Y"]]

See ?plot,tickmarks for more information.

David Clayworth Maplesoft GUI Developer

interactiveplot works by re-executing a plot command every time you change the slider position. The orientation changes you make are not remembered between executions.

You are probably best including the orientation in the interactiveplot command. Work out what orientation you want by looking at the toolbar when you rotate it, then write something like this:

interactiveparams(plot3d, [a*sin(x+y), x = -5 .. 5, y = -5 .. 5, axes = boxed, orientation = [45, 80]], a = -5 .. 5);

David Clayworth Maplesoft GUI Developer

There is a command "complexplot" which is designed for doing that.

David Clayworth Maplesoft GUI Developer

Hi Benn

This is a known issue which we intend to address in a future release. In the meantime I would recommend the workround that you have already found. Thanks for your help.

David Clayworth Maplesoft GUI Developer

In general Maple forces boxed axes to be slightly offset to avoid drawing over lines along the axis. In your particular case you might try setting "axis[1]=[location=origin]", which places the axis exactly on 0. However you would lose the 'boxed' effect.

David Clayworth Maplesoft GUI Developer

Hi Ralperin

This forum is for discussion of the MaplePrimes website. You are probably looking for "How do I... with Maple?" here http://www.mapleprimes.com/mapleprimesforums/gethelp/howdoimaple

David Clayworth Maplesoft GUI Developer

If you mean you want the legends but not the outline around them, then that option is not currently available in Maple.

David Clayworth Maplesoft GUI Developer

I'm afraid that as far as I know creating the exact legend you are looking for cannot be done. The trouble, as I think you have guessed, is that you have to create a "line plus symbol" plot by adding two plot components for each graph line - one for the line and one for the symbols. Maple does not know that these two are in any way connected and so can't combine them into a single legend entry.

If you want to create a Maple worksheet in which this graph is visible, then I would suggest attaching the "legend=" options to the point style components; this means that the legend will show the point symbol but not the line, which is probably clearer than the line without the point. If you are exporting this to some external format then I would probably suggest 'touching up' the export in another tool.

David Clayworth Maplesoft GUI Developer

Now I strongly recommend getting in touch with the author. Unless someone is familiar with the package it's unlikely they are going to be able to help you. If you can't contact the author you might like to start a new thread called something like "Help with intpakX1.2 package".

David Clayworth Maplesoft GUI Developer

1 2 3 4 5 6 7 Page 2 of 8