comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » yfit in linfit showing up as float [ ] filled with NANs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
yfit in linfit showing up as float [ ] filled with NANs [message #74991] Wed, 09 February 2011 18:18
Meredith Pind is currently offline  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)
[Message index]
 
Read Message
Previous Topic: elliptic integrals
Next Topic: Output keywords and resizable Coyote programs

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 20:58:25 PDT 2025

Total time taken to generate the page: 0.87929 seconds