Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Plots: problem with ticks and legend
Replies: 1   Last Post: Dec 6, 2012 3:46 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Zeineb

Posts: 1
Registered: 12/6/12
Plots: problem with ticks and legend
Posted: Dec 6, 2012 12:34 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

First I wanted to know if there was a way to use crossing ticks on Matlab plots? (I only found in and out ticks, for now).
Also, is it possible to keep ticks on the x and y axis, but remove them from the top and bottom axis (while keeping the box)?

Finally I have a problem with a function I used to be able to move the legend, but I still have no idea of how to fix it.
Here are the function and the variables:

%
afStartingPoint_FU(1) = (afStartingPoint(1) - afXAxisLimits(1) )/ (afXAxisLimits(2) - afXAxisLimits(1) )* fXAxisLength + fXAxisPosition;
afStartingPoint_FU(2) = (afStartingPoint(2) - afYAxisLimits(1) )/ (afYAxisLimits(2) - afYAxisLimits(1) )* fYAxisLength + fYAxisPosition;
afEndingPoint_FU(1) = (afEndingPoint(1) - afXAxisLimits(1) )/ (afXAxisLimits(2) - afXAxisLimits(1) )* fXAxisLength + fXAxisPosition;
afEndingPoint_FU(2) = (afEndingPoint(2) - afYAxisLimits(1) )/ (afYAxisLimits(2) - afYAxisLimits(1) )* fYAxisLength + fYAxisPosition;
%
handleToAnnotation1 = annotation( ...
strAnnotationType, ...
[afStartingPoint_FU(1) afEndingPoint_FU(1)], ...
[afStartingPoint_FU(2) afEndingPoint_FU(2)]) ;


Thanks a lot for your help!!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.