plotyy tick marks

  • Follow


Hi all,

I'm using the plotyy function to plot a few lines that range from y1 = 0 - 5 and then another line that is a percentage and ranges from 0 - 100.  For some reason, no tick marks show up at all.  I have used plotyy to do a similar graph before with no problems, however with this particular data set, I can't get any tick marks to show up.  I don't mind if they line up vertically or not, I just want some tick markings.

Any help is appreciated.

PS: I'm using R2009a
0
Reply Sean 12/3/2009 11:13:19 PM

"Sean Takai" wrote
> I'm using the plotyy function to plot a few lines that range from y1 = 0 - 5 and
> then another line that is a percentage and ranges from 0 - 100.
> For some reason, no tick marks show up at all. 

I suspect you will have to show the exact script or commands you were using before anyone on this group can give you a good suggestion.

That said, your confusion with plotyy is not surprising since there seems to be more questions on the newsgroup about this function than just about anything else. I think this is because of its cryptic interface, requiring calls to several different functions for all but the most trivial tasks, coupled with sparse documentation with few examples.

If that motivates you to try an alternative, there is one available (called "plt") on the file exchange, and unlike plotyy, the full .m source code is included. Simple calls to plt will look the same as a call to plot or plotyy, however plt has a richer parameter set allowing all but the most complicated plots to be created with a single call to plt. Perhaps the greatest advantage of plt is its clearly written and extensive documentation including dozens of example scripts and functions demonstrating most every feature of plt. If for some reason the documentation doesn't explain something well or if plt doesn't behave as you expected, help is available from the author ... who happens to be me ... if that wasn't yet obvious :)

~Paul Mennen
0
Reply Paul 12/4/2009 5:35:18 AM


1 Replies
398 Views

(page loaded in 0.023 seconds)

Similiar Articles:













7/26/2012 10:45:41 AM


Reply: