Prev: GUI
Next: Slider min and max in GUIDE
From: AMK on 10 Jun 2010 12:14 Hi, Is anyone familiar with or have a general function to generate a 1:1 line on a scatterplots? Thanks, AMK
From: Walter Roberson on 10 Jun 2010 16:42 AMK wrote: > Is anyone familiar with or have a general function to generate a 1:1 line on a scatterplots? XL = get(gca, 'XLim'); YL = get(gca, 'YLim'); line( max(XL(1),YL(1)), min(XL(2),YL(2)), ':');
From: sscnekro on 10 Jun 2010 19:17 > line( max(XL(1),YL(1)), min(XL(2),YL(2)), ':'); Strange, this yields: ??? Error using ==> line String argument is an unknown option. PS I remember from a course (not my idea) that you can plot(x,x, ...) with x one of your data...
From: Walter Roberson on 10 Jun 2010 19:51 sscnekro wrote: >> line( max(XL(1),YL(1)), min(XL(2),YL(2)), ':'); > > Strange, this yields: > ??? Error using ==> line > String argument is an unknown option. > > PS I remember from a course (not my idea) that you can plot(x,x, ...) > with x one of your data... Yeh, originally I coded plot() and then I changed it to line() before sending. And you are right, what I coded doesn't promise a slope of 1. p0 = max(XL(1),YL(1)); p1 = min(XL(2),YL(2)); if p0 < p1 line( [p0 p1], [p0 p1], 'LineStyle', ':'); else %line is off the screen end
From: Jos (10584) on 11 Jun 2010 05:50 AMK <kennaster(a)gmail.com> wrote in message <1805638926.314517.1276200904267.JavaMail.root(a)gallium.mathforum.org>... > Hi, > Is anyone familiar with or have a general function to generate a 1:1 line on a scatterplots? > > Thanks, > AMK help refline Jos
|
Pages: 1 Prev: GUI Next: Slider min and max in GUIDE |