class_docstr: Analogous to a gridspec, and contained in another LayoutGrid.
class_docstr_tok: ["Analogous","to","a","gridspec",",","and","contained","in","another","LayoutGrid","."]
docstr: Reset all the margins to zero.  Must do this after changing
  figure size, for instance, because the relative size of the
  axes labels etc changes.
docstr_tok: ["Reset","all","the","margins","to","zero",".","Must","do","this","after","changing","figure","size",",","for","instance",",","because","the","relative","size","of","the","axes","labels","etc","changes","."]
code: def reset_margins(self):
      """
      Reset all the margins to zero.  Must do this after changing
      figure size, for instance, because the relative size of the
      axes labels etc changes.
      """
      for todo in [
          "left",
          "right",
          "bottom",
          "top",
          "leftcb",
          "rightcb",
          "bottomcb",
          "topcb",
      ]:
          self.edit_margins(todo, 0.0)
  
imports: import itertools
  import kiwisolver
  import logging
  import numpy
  import matplotlib
  import matplotlib.patches
  from matplotlib.transforms import Bbox
label_desc: Use image node_id 3 for calling the LayoutGrid obj's underlying member method code with example usage: obj.reset_margins() without return types