class_docstr: Class representing a rectangle.
class_docstr_tok: ["Class","representing","a","rectangle","."]
docstr: Moves the center of the box to the given X coordinate
docstr_tok: ["Moves","the","center","of","the","box","to","the","given","X","coordinate"]
code: def midx(self, value):
      """Moves the center of the box to the given X coordinate"""
      dx = value - (self._left + self._right) / 2.0
      self._left += dx
      self._right += dx
  
imports: from collections import defaultdict
  from math import atan2, cos, hypot, sin
  from typing import NamedTuple
  from igraph.utils import consecutive_pairs
label_desc: Use image node_id 17 for calling the Rectangle obj's underlying member method code with example usage: obj.midx(value) without return types