DJ Clayworth

218 Reputation

6 Badges

19 years, 253 days

MaplePrimes Activity


These are answers submitted by DJ Clayworth

Unfortunately that change doesn't do the trick. It changes the drawing of the incoming ray; however the calculation of the outgoing ray (the section after "if (abs(dr) > 0.001) then") assumes that the ray arrives vertically. You would need to rewrite this calculation to allow for rays arriving at an arbitrary angle. David Clayworth Maplesoft GUI Developer
You can solve the equations and then plot them. Here is the first one: e1 := diff(x(t), t) = x(t)^2; s1 := dsolve([e1, x(0)=1]); r1 := rhs(s1); plot(r1, t=0..1); You can also use DEplot to plot the values numerically: with(DEtools);DEplot(e1, x(t), t=0..1, [x(0)=1]); ?dsolve and ?DEplot will give you more information. David Clayworth Maplesoft GUI Developer
One way to deal with this is to introduce extra objects to shift the view. For example: display([draw([c, top, bottom], printtext = true), pointplot([[-2,-2],[2,2]],color=white)], axes=none,view=[-2..2,-2..2]); This whole behaviour has been improved in Maple 11. David Clayworth Maplesoft GUI Developer
It would be worth your checking out the new plot features in Maple 11, as described at www.maplesoft.com . David Clayworth Maplesoft GUI Developer
Dear Dr. Lopez-Richard I'm afraid the code that generates Postscript when exporting from the window uses the Standard GUI interface code. There is no way of accessing that code unless you are running the Standard GUI. I'm not entirely sure what you mean by 'colour softening'. Is it the line look a little blurry?f so, that's anti-aliasing, a normal part of drawing diagonal lines on a square grid of pixels. Would it be possible for you to post an example of what you are doing? David Clayworth Maplesoft GUI Developer
The code that generates postscript when you use plotsetup(ps) is different from the code that exports postscript using the Standard interface menus. The resulting plot may look different from what you see on the screen, though it should not be inherently less accurate. Do you see the same issues if you draw the plot to screen and then export it to postscript using the menus? David Clayworth Maplesoft GUI Developer
Unfortunately you can only have one axis (in each direction) in a Maple 2D plot. You could plot f(x) and 12*g(x), noting the constant multiplier in the legend. plot([f(x),g(x),x=1200..2300,legend=[f(x),12*g(x)],...) David Clayworth Maplesoft GUI Developer
Hi mindir and welcome to the Maple community. Mariner is right that looking at the manuals will be very helpful. However we can answer some of your questions now. "Maple 10" and "Maple 10 Classic" are two forms of user interface which give you access to the power of the Maple engine. If you are new to Maple you probably want to start with Maple 10 (which is referred to as the 'Standard' interface). It's the newest and most powerful interface. Assuming you did start with Standard, and that your plot is 2D, you can adjust the amount of whitespace around the plot. With the plot selected, go to the control on the toolbar that looks like a target. Click on the arrow beside it and change the target to the thing that looks like a red ball. Now you can control the size of the plot within its frame by dragging the mouse within the plot. The hand option allows you to move the plot up, down, left and right. A little experimentation should get you the size you want. David Clayworth Maplesoft GUI Developer
I'm afraid there is currently no way of making the tickmarks in Maple plots face inwards. David Clayworth Maplesoft GUI Developer
If you look up "parametric,plot" in the help system it will tell you how to do this. David Clayworth Maplesoft GUI Developer
Hi Alireza. Here's how to get started with plotting a function. First you need to define your constants, which you do by assigning values to them like this: a := 1; Then define the functions you want plotted: g(t) := t^2; Then use the plot command to generate a graph of the function over a range. You can get more information about plotting by typeing ?plot or by bringing up the help system and typeing "plot" into it. I've attached a worksheet that does what I think you want. The link can be found in the View 572_plotExample1.mw on MapleNet or Download 572_plotExample1.mw
View file details If you re-execute it and you get any dialogs prompting for interpretation, always choose "function definition". David Clayworth Maplesoft GUI Developer
You can also use the axis options on the plot command. e.g. plot(x^2, x = 1..100, axis[1] = [mode = log]); # for the horizontal axis logarithmic plot(x^2, x = 1..100, axis[2] = [mode = log]); # for the vertical axis logarithmic plot(x^2, x = 1..100, axis = [mode = log]); # for both axes logarithmic David Clayworth Maplesoft GUI Developer
To the first question, as far as I know there is no way to open the plot Builder with an existing plot. Nor can you get the plot command from a plot (if you have modified the plot there is sometimes no way of knowing it). However the plot builder can give you the plot command it used to generate the plot. Execute this command and you should get an identical plot. You can then make small changes to the command. In answer to your second question you should usually type exp(y). e^y is taken as the (probably undefined) variable 'e' to the yth power. If you want to know the exact circumstances where it is possible I would suggest reposting the question. The math experts may not have read this post if they think it's about plotting. David Clayworth Maplesoft GUI Developer
Hello, and welcome to Maple. When you click on a plot, you should see that the toolbar at the top of the page changes from showing things like the font selector and Bold/Italic/Underline buttons to showing plot related things. For a non-animated plot these will be things like buttons to change the plot style, the axes style and the gridlines. For an animated plot you should see 'play/stop' buttons and a slider which allows you to animation frame. There is also a place to type in an animation frame number. If you are seeing the plot buttons but not the animation slider then it may be that you accidentally created a non-animated plot. David Clayworth Maplesoft GUI Developer
There is currently no command to create a curved arrow in Maple. You are probably best off constructing one using plottools[arc] for the circle and plottools[curve] for the arrowheds. Once you have created one you can manipulate it with other plottools to get the correct size and orientation. David Clayworth Maplesoft GUI Developer
5 6 7 8 Page 7 of 8