class_docstr: Show lines with a given gid.
code: def set_lines_visibility(self, state):
      for ax in self.figure.get_axes():
          for line in ax.get_lines():
              if line.get_gid() == self.gid:
                  line.set_visible(state)
      self.figure.canvas.draw()
  
file_path: matplotlib/galleries/examples/user_interfaces/toolmanager_sgskip.py
imports: import matplotlib.pyplot
  from matplotlib.backend_tools import ToolBase, ToolToggleBase
label_desc: Use image node_id 4 for calling the GroupHideTool obj's underlying member method code with example usage: obj.set_lines_visibility(state) without return types