class_docstr: Chart boundings
class_docstr_tok: ["Chart","boundings"]
docstr: Correct box when no values and take margin in account
docstr_tok: ["Correct","box","when","no","values","and","take","margin","in","account"]
code: def fix(self, with_margin=True):
      """Correct box when no values and take margin in account"""
      if not self.width:
          self.xmax = self.xmin + 1
      if not self.height:
          self.ymin /= 2
          self.ymax += self.ymin
      xmargin = self.margin * self.width
      self.xmin -= xmargin
      self.xmax += xmargin
      if with_margin:
          ymargin = self.margin * self.height
          self.ymin -= ymargin
          self.ymax += ymargin
  
imports: from __future__ import division
  from math import cos, log10, pi, sin
label_desc: Use image node_id 14 for calling the Box obj's underlying member method code with example usage: obj.fix(with_margin) without return types