parameters: (self, chart)
return_statement: return out
docstring: Get the zero-point if any bars are negative.
docstring_summary: Get the zero-point if any bars are negative.
docstring_tokens: Get the zero - point if any bars are negative .
function: def _ZeroPoint(self, chart):
      """Get the zero-point if any bars are negative."""
      # (Maybe) set the zero point.
      min, max = chart.GetDependentAxis().min, chart.GetDependentAxis().max
      out = {}
      if min < 0:
        if max < 0:
          out['chp'] = 1
        else:
          out['chp'] = -min/float(max - min)
      return out
function_tokens: def _ZeroPoint ( self , chart ) : # (Maybe) set the zero point. min , max = chart . GetDependentAxis ( ) . min , chart . GetDependentAxis ( ) . max out = { } if min < 0 : if max < 0 : out [ 'chp' ] = 1 else : out [ 'chp' ] = - min / float ( max - min ) return out