DJ Clayworth

218 Reputation

6 Badges

19 years, 252 days

MaplePrimes Activity


These are answers submitted by DJ Clayworth

You don't seem to be doing anything wrong, and that should work. Have you tried this in a completely fresh worksheet?

David Clayworth Maplesoft GUI Developer

If you write just "2x*2" (rather than f(x)=2x*2) and then use the context menu Plots->on that you should get a plot that recalculates as it scales. For me the context menu for "f(x)=2x*2" doesn't have Plot in it so I couldn't create one at all. I'm not sure how you got a plot from it using the context menus.

This is for the Standard Interface of course.

David Clayworth Maplesoft GUI Developer

In answer to the second part I suggest looking at the help for plottools[torus], plottools[rotate]] (or plottools[transform]) and plots[animate].

 

David Clayworth Maplesoft GUI Developer

Robert's solution gives you a 3D contour plot (I have no trouble displaying it so I can't help with the error). If you want 2D contours it gets a little more tricky. Here is a sequence that worked for me:

 

restart; with(plots); with(plottools); Data := op(1, fscanf("8441_pvtszfrmt.txt", "%{41,91,3}fa")):

lseq := [seq([seq(Data[i, j, 3], j = 1 .. 91)], i = 1 .. 41)]:

pc := listcontplot(lseq): pc;

f := transform(proc (r, th) options operator, arrow; [(1.0+2.0*r/40.0).cos((th.Pi)/180.0), (1.0+2.0*r/40.0).sin((th.Pi)/180.0)] end proc):

display(f(pc), view = [0 .. 3, 0 .. 3]);

 

'listcontplot' generates a 2D contour plot from a structured dataset, but needs lists as input which is what the lseq lines are for (it creates a list-within-list structure by extracting elements from the data file). The 'transform' line does both the conversion to polar coordinates and the rescaling to account for the fact that listcontplot assumes that the datapoints are 1 unit apart in both x and y.

 

David Clayworth Maplesoft GUI Developer

Unfortunately there is no way to tell the math library to sample for a logarithmic x axis. Partly this is because the user is able to change, in the GUI, whether the x axis is logarithmic ot not, so it is not generally useful for the math library to know whether the axes are logarithmic when the command is executed.

The best way to deal with this is simply to increase the density of points until a good plot is achieved. To increase the number of sample points on the plot use the "numpoints" option. see ?plot,options for more information. Not knowing what function you are plotting means I can't tell you what a good value is; semilogplot(x,x=10^(-10)..1,numpoints=1000);  gives a smooth curve. I also can't tell you how much longer it will take to plot at a higher density, but for all but the most complex functions it will not be very long.

David Clayworth Maplesoft GUI Developer

The 'tab' button (which is second from the right in the main toolbar) isn't disabled just because you are in a worksheet. However it is disabled in Math mode, in both worksheets and documents.

If you switch from math to text mode (by pressing F5 or the 'Text' toolbar selector) then the tab button will be enabled. Press the tab button to turn it on; and while it is turned on the tab key will insert a fixed amount of whitespace (about eight space character's worth). This will happen only when you are in text rather than math mode, but that's probably a good idea if you are writing formatted code anyway.

 

David Clayworth Maplesoft GUI Developer

If by "split the screen" you mean having two worksheets visible in a single Maple window then no, you can't. However you can cause worksheets to open in a separate window, which would allow you to arrange them on your desktop however you liked. Go to Tools/Options on the "Interface" panel and set "Open worksheets in" to "New window". David Clayworth Maplesoft GUI Developer
The number of contours should be independent of numpoints. Each contour becomes composed of more (but shorter) lines as numpoints rises, but they shouldn't look denser. For example plot3d(sin(x+y), x = -1..1, y = -1..1, style = surfacecontour, numpoints = 500); looks substantially the same to me as the same with numpoints=100. The setting for showing the 'wiring' is "style=surfacewireframe" and that will result in more outlines as numpoints increases. Do you have an example? David Clayworth Maplesoft GUI Developer
There is no way to do this in Maple at this time. We will consider it as a possible future extension. There are various ways to extract coordinates from the PLOT structure which are discussed in other threads. David Clayworth Maplesoft GUI Developer
This does appear to be a bug. It's been added to the bug tracker system. David Clayworth Maplesoft GUI Developer
The alternative way of doing this is to generate the textplot with simple text and then edit it later to insert the 2D math you want. You can edit the contents of a textplot by double-clicking on it. David Clayworth Maplesoft GUI Developer
If you haven't already done so I would recommend contacting Maplesoft technical support. David Clayworth Maplesoft GUI Developer
The other way you could try to do this is to use the legend facility. Create the Pie chart without captions, then make the legend visible interactively and edit each of the legends to the string you want. This will only work in Maple 11 or later. David Clayworth Maplesoft GUI Developer
Hi Willy Maple 7 is quite an old version of Maple. Maple 11 is the first version to run under Vista. I suggest contacting the sales department to see about upgrading. David Clayworth Maplesoft GUI Developer
The manual instructions are out of date. Robert's answer above is correct. The Axes/Range and Axes/Mode menu items have been replaced by Axes/Properties. I'll make sure the appropriate people are told. David Clayworth Maplesoft GUI Developer
3 4 5 6 7 8 Page 5 of 8