@ -69,7 +69,11 @@ class Line(Graph):
if y is not None :
if y is not None :
break
break
else :
else :
raise ValueError ( " Invalid value ( {} ) for config key ' missing_value_fill_truncation ' ; Use ' x ' , ' y ' or ' either ' " . format ( self . missing_value_fill_truncation ) )
raise ValueError (
" Invalid value ( {} ) for config key "
" ' missing_value_fill_truncation ' ; "
" Use ' x ' , ' y ' or ' either ' " . format (
self . missing_value_fill_truncation ) )
end - = 1
end - = 1
return ( [ ( values [ 0 ] [ 0 ] , zero ) ] +
return ( [ ( values [ 0 ] [ 0 ] , zero ) ] +
@ -80,9 +84,7 @@ class Line(Graph):
""" Draw the line serie """
""" Draw the line serie """
serie_node = self . svg . serie ( serie )
serie_node = self . svg . serie ( serie )
if rescale and self . secondary_series :
if rescale and self . secondary_series :
points = [
points = self . _rescale ( serie . points )
( x , self . _scale_diff + ( y - self . _scale_min_2nd ) * self . _scale )
for x , y in serie . points if y is not None ]
else :
else :
points = serie . points
points = serie . points
view_values = list ( map ( self . view , points ) )
view_values = list ( map ( self . view , points ) )
@ -118,7 +120,10 @@ class Line(Graph):
if serie . stroke :
if serie . stroke :
if self . interpolate :
if self . interpolate :
view_values = list ( map ( self . view , serie . interpolated ) )
points = serie . interpolated
if rescale and self . secondary_series :
points = self . _rescale ( points )
view_values = list ( map ( self . view , points ) )
if serie . fill :
if serie . fill :
view_values = self . _fill ( view_values )
view_values = self . _fill ( view_values )
self . svg . line (
self . svg . line (