Plotting Graphs + Bestfit lines

arslanburney at gmail.com arslanburney at gmail.com
Fri Jun 13 03:24:26 EDT 2008


On Jun 13, 12:13 pm, Peter Otten <__pete... at web.de> wrote:
> arslanbur... at gmail.com wrote:
> > Umm.... Tried this out too.... Laiken heres the error that this
> > gives..
>
> > Traceback (most recent call last):
> >   File "D:\Questions\Gradient and C\Gnuplot\Combining Best fit and
> > Plotting\combasd.py", line 3, in <module>
> >     combine.show_plots([(2,3), (4,8), (5,9), (6,2)], [(1,7), (3,3),
> > (4,5), (5,6)], [(1,3), (3,10), (4,8), (7,9) ] )
> >   File "D:\Questions\Gradient and C\Gnuplot\Combining Best fit and
> > Plotting\combine.py", line 54, in show_plots
> >     gp = combine.plot( original, expected, actual)
> > NameError: global name 'combine' is not defined
>
> > Still confused though i get the instance part ur trying to tell me.
>
> Sorry, it should have been
>
> def show_plots(original, expected, actual):
>     gp = plot( original, expected, actual)
>     raw_input("first")
>     gp = bestfit(expected)
>     raw_input("second")
>     gp = bestfit(actual)
>     raw_input("third")
>
> Peter

Tried that out too. No error however, best fit lines still not being
made on the graph. Only the 3 plot lines show up.



More information about the Python-list mailing list