parameters: (self)
docstring: Update the properties in the view from the selected axes
docstring_summary: Update the properties in the view from the selected axes
docstring_tokens: Update the properties in the view from the selected axes
function: def update_view(self):
          """Update the properties in the view from the selected axes"""
          self.current_view_props.clear()
          ax_props = self.get_selected_ax_properties()
  
          ax = self.get_selected_ax()
          plot_is_3d = isinstance(ax, Axes3D)
  
          # Enable the z-axis option if the plot is 3D.
          self.view.set_z_axis_selector_enabled(plot_is_3d)
  
          # For tiled plots
          if not plot_is_3d and self.view.get_z_axis_selector_checked():
              self.view.set_x_axis_selector_click()
  
          # Changing the axis scale doesn't work with 3D plots, this is a known matplotlib issue,
          # so the scale option is disabled.
          self.view.set_scale_combo_box_enabled(not plot_is_3d)
  
          # Minor ticks/gridlines are currently not supported for 3D plots.
          self.view.set_minor_grid_tick_controls_visible(not plot_is_3d)
  
          ax = self.current_axis
          self.view.set_title(ax_props.title)
  
          color_hex = convert_color_to_hex(ax_props["canvas_color"])
          self.view.set_canvas_color(color_hex)
  
          if not plot_is_3d:
              self.view.set_show_minor_ticks(ax_props.minor_ticks)
              self.view.set_minor_gridlines_check_box_enabled(ax_props.minor_ticks)
              self.view.set_show_minor_gridlines(ax_props.minor_gridlines)
  
          self.view.set_autoscale_enabled(ax_props[f"{ax}autoscale"])
          self.view.set_limit_input_enabled(not ax_props[f"{ax}autoscale"])
  
          lim = ax_props[f"{ax}lim"]
          self.view.set_lower_limit(lim[0])
          self.view.set_upper_limit(lim[1])
          self.view.set_label(ax_props[f"{ax}label"])
          self.view.set_scale(ax_props[f"{ax}scale"])
  
          self.current_view_props.update(self.view.get_properties())
function_tokens: def update_view ( self ) : self . current_view_props . clear ( ) ax_props = self . get_selected_ax_properties ( ) ax = self . get_selected_ax ( ) plot_is_3d = isinstance ( ax , Axes3D ) # Enable the z-axis option if the plot is 3D. self . view . set_z_axis_selector_enabled ( plot_is_3d ) # For tiled plots if not plot_is_3d and self . view . get_z_axis_selector_checked ( ) : self . view . set_x_axis_selector_click ( ) # Changing the axis scale doesn't work with 3D plots, this is a known matplotlib issue, # so the scale option is disabled. self . view . set_scale_combo_box_enabled ( not plot_is_3d ) # Minor ticks/gridlines are currently not supported for 3D plots. self . view . set_minor_grid_tick_controls_visible ( not plot_is_3d ) ax = self . current_axis self . view . set_title ( ax_props . title ) color_hex = convert_color_to_hex ( ax_props [ "canvas_color" ] ) self . view . set_canvas_color ( color_hex ) if not plot_is_3d : self . view . set_show_minor_ticks ( ax_props . minor_ticks ) self . view . set_minor_gridlines_check_box_enabled ( ax_props . minor_ticks ) self . view . set_show_minor_gridlines ( ax_props . minor_gridlines ) self . view . set_autoscale_enabled ( ax_props [ f"{ax}autoscale" ] ) self . view . set_limit_input_enabled ( not ax_props [ f"{ax}autoscale" ] ) lim = ax_props [ f"{ax}lim" ] self . view . set_lower_limit ( lim [ 0 ] ) self . view . set_upper_limit ( lim [ 1 ] ) self . view . set_label ( ax_props [ f"{ax}label" ] ) self . view . set_scale ( ax_props [ f"{ax}scale" ] ) self . current_view_props . update ( self . view . get_properties ( ) )