code: def _set_view(self):
          
          if self.logarithmic:
              view_class = HorizontalLogView
          else:
              view_class = HorizontalView
  
          self.view = view_class(
              self.width - self.margin_box.x, self.height - self.margin_box.y,
              self._box
          )
docs: Assign a horizontal view to current graph