@@ -385,7 +385,7 @@ def run_odeint(system, slope_func, **options):
385385 solution will be computed:"""
386386 raise ValueError (msg )
387387
388- # make sure `system` contains `ts `
388+ # make sure `system` contains `init `
389389 if not hasattr (system , 'init' ):
390390 msg = """It looks like `system` does not contain `init`
391391 as a system variable. `init` should be a State
@@ -725,10 +725,10 @@ def contour(df, **options):
725725
726726 df: DataFrame
727727 """
728- x = results .columns
729- y = results .index
728+ x = df .columns
729+ y = df .index
730730 X , Y = np .meshgrid (x , y )
731- cs = plt .contour (X , Y , results , ** options )
731+ cs = plt .contour (X , Y , df , ** options )
732732 plt .clabel (cs , inline = 1 , fontsize = 10 )
733733
734734
@@ -808,13 +808,13 @@ def __init__(self, fig, axes_seq):
808808 self .axes_seq = axes_seq
809809 self .current_axes_index = 0
810810
811- def current_axes ():
811+ def current_axes (self ):
812812 return self .axes_seq (self .current_axes_index )
813813
814814 # TODO: consider making SubPlots iterable
815815 def next_axes (self ):
816816 self .current_axes_index += 1
817- return current_axes ()
817+ return self . current_axes ()
818818
819819
820820def subplots (* args , ** options ):
0 commit comments