The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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


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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.