DJ Clayworth

213 Reputation

6 Badges

17 years, 98 days

MaplePrimes Activity


These are replies submitted by DJ Clayworth

OK, it was worth a try.

David Clayworth Maplesoft GUI Developer

OK, it was worth a try.

David Clayworth Maplesoft GUI Developer

Hi

 

You are probably looking for the "labels" option. For example:

plot(sin,labels=["time","height"]);

All the plot options are documented on the plot options help page, which you can reach by typing "plot,options" into the help system (not the Student plot options, which you get to if you type "plot options").

David Clayworth Maplesoft GUI Developer

It looks as if this might be a real bug, alec, though entirely different from what was talked about above. Would you mind submitting a report on it?

David Clayworth Maplesoft GUI Developer

It looks as if this might be a real bug, alec, though entirely different from what was talked about above. Would you mind submitting a report on it?

David Clayworth Maplesoft GUI Developer

Actually in the plots you see above the symbol is correctly positioned, though it's not obvious. The eye is in fact being misled by a missing piece of information.

The underlying reason for the eye being misled is that the horizontal axis is not positioned at y=0, or indeed at y=1e-4, where we would probably expect. It is in fact positioned a couple of pixels below this, and that is deliberate to avoid obscuring any horizontal lines at precisely y=1e-4.

The reason the position of the horizontal axis is not obvious is that the tickmark for y=0 is not drawn. If it was drawn you would see it two pixels above the axis, in line with the point symbol. It is not drawn for two reasons: 1) it's label would be obscured by the horizontal axis and 2) it is not actually in the plot range (the plot's data runs from 1e-4 to 1 in the y direction - i.e. the range doesn't include y=0).

You can test this in two ways: either take a ruler to the screen and establish that the symbol is the same distance below y=02 as y=0.2 is below y=0.4; or force the y=0 tickmark to be drawn. Adding "view=[-1..1,0..1]" to the commend works, or better still "view=[-1..1,0..1],axes=framed". You should see the symbol lined up with the zero tick.

I agree that these issues could result in a misleading interpretation and we will look at improving the tickmark and axis placement in future.

David Clayworth Maplesoft GUI Developer

Actually in the plots you see above the symbol is correctly positioned, though it's not obvious. The eye is in fact being misled by a missing piece of information.

The underlying reason for the eye being misled is that the horizontal axis is not positioned at y=0, or indeed at y=1e-4, where we would probably expect. It is in fact positioned a couple of pixels below this, and that is deliberate to avoid obscuring any horizontal lines at precisely y=1e-4.

The reason the position of the horizontal axis is not obvious is that the tickmark for y=0 is not drawn. If it was drawn you would see it two pixels above the axis, in line with the point symbol. It is not drawn for two reasons: 1) it's label would be obscured by the horizontal axis and 2) it is not actually in the plot range (the plot's data runs from 1e-4 to 1 in the y direction - i.e. the range doesn't include y=0).

You can test this in two ways: either take a ruler to the screen and establish that the symbol is the same distance below y=02 as y=0.2 is below y=0.4; or force the y=0 tickmark to be drawn. Adding "view=[-1..1,0..1]" to the commend works, or better still "view=[-1..1,0..1],axes=framed". You should see the symbol lined up with the zero tick.

I agree that these issues could result in a misleading interpretation and we will look at improving the tickmark and axis placement in future.

David Clayworth Maplesoft GUI Developer

I'm sorry Jakubi, I did not mean to imply that there were no undocumented commands at all in Maple; as I'm sure you're aware there are. I did mean to say that there were no undocumented commands that do the functionality we were talking about.

David Clayworth Maplesoft GUI Developer

I'm sorry Jakubi, I did not mean to imply that there were no undocumented commands at all in Maple; as I'm sure you're aware there are. I did mean to say that there were no undocumented commands that do the functionality we were talking about.

David Clayworth Maplesoft GUI Developer

I'm afraid the typeset math plots are only available in the Standard GUI; through plotdevice as well as menus, but only in the Standard GUI. There are no 'secret' commands that we are keeping from you, jakubi. I'm not sure why we would want to do that - it's in our interest to make this functionality as widely available as possible.

David Clayworth Maplesoft GUI Developer

I'm afraid the typeset math plots are only available in the Standard GUI; through plotdevice as well as menus, but only in the Standard GUI. There are no 'secret' commands that we are keeping from you, jakubi. I'm not sure why we would want to do that - it's in our interest to make this functionality as widely available as possible.

David Clayworth Maplesoft GUI Developer

pregier, do you have an example where you see Maple shifting axes? I only know of this being done with axes=boxed and axes=framed, in order to avoid obscuring lines that might lie right under the axes? It shouldn't do it anywhere else.

David Clayworth Maplesoft GUI Developer

pregier, do you have an example where you see Maple shifting axes? I only know of this being done with axes=boxed and axes=framed, in order to avoid obscuring lines that might lie right under the axes? It shouldn't do it anywhere else.

David Clayworth Maplesoft GUI Developer

In your final picture are you going to want lines? If so then I would not suggest using pointplot. pointplot is for drawing points; there are other commands for drawing lines. I suggest you have a look at the help page for the "curve" command. Bring up the help browser and search "curve"; you are looking for the entry for "curve,plottools".

David Clayworth Maplesoft GUI Developer

In your final picture are you going to want lines? If so then I would not suggest using pointplot. pointplot is for drawing points; there are other commands for drawing lines. I suggest you have a look at the help page for the "curve" command. Bring up the help browser and search "curve"; you are looking for the entry for "curve,plottools".

David Clayworth Maplesoft GUI Developer

1 2 3 4 5 6 7 Page 3 of 8