class_docstr: Graph super class containing generic common functions
class_docstr_tok: ["Graph","super","class","containing","generic","common","functions"]
docstr: Assign a view to current graph
code: def _set_view(self):
      """Assign a view to current graph"""
      if self.logarithmic:
          if self._dual:
              view_class = XYLogView
          else:
              view_class = LogView
      else:
          view_class = ReverseView if self.inverse_y_axis else View
  
      self.view = view_class(
          self.width - self.margin_box.x,
          self.height - self.margin_box.y,
          self._box,
      )
  
imports: from math import ceil, cos, sin, sqrt
  from pygal import stats
  from pygal._compat import is_list_like
  from pygal.graph.public import PublicApi
  from pygal.interpolate import INTERPOLATIONS
  from pygal.util import cached_property, compute_scale, cut, decorate, filter_kwargs, get_text_box, get_texts_box, majorize, rad, reverse_text_len, split_title, truncate
  from pygal.view import LogView, ReverseView, View, XYLogView
label_desc: Use image node_id 3 for calling the Graph obj's underlying member method code with example usage: obj._set_view() without return types