yfit in linfit showing up as float [ ] filled with NANs [message #74991] |
Wed, 09 February 2011 18:18 |
Meredith Pind
Messages: 13 Registered: February 2011
|
Junior Member |
|
|
Hi all,
I'm having some trouble with this one plot. I am using the same code
for two other plots and it is working properly, and it had previously
worked for this plot but suddenly stopped. I am finding that the yfit
variable is turning up as a float that is the same size as my x and y
values but it is filled with NANs. I don't understand why it is
working for the other two plots but not this one. Any ideas why this
might be?
Thanks,
Meredith
p11 = plot(netQn, Qcalc, $
sym_index = 4, $
linestyle = 6, $
title = 'Figure 4: Measured Net Radiation vs. Calculated Net
Radiation', $
xtitle = 'Qn (W/m2)', $
ytitle = 'Qcalc (W/m2)')
; display line of best fit
bestfit = linfit(netQn, Qcalc, yfit=yfit)
p12 = plot(netQn, yfit, thick = 2, /overplot)
|
|
|