class_docstr: Configure tooltips.
  
  Notes
  -----
  Set tooltips='none' to hide tooltips from this layer.
  
  Examples
  --------
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 15
  
      import numpy as np
      from lets_plot import *
      LetsPlot.setup_html()
      n = 100
      np.random.seed(42)
      data = {
          'id': np.arange(n),
          'x': np.random.normal(size=n),
          'y': np.random.normal(size=n),
          'c': np.random.choice(['a', 'b'], size=n),
          'w': np.random.randint(1, 11, size=n)
      }
      ggplot(data, aes('x', 'y')) + \
          geom_point(aes(color='c', size='w'), \
                     tooltips=layer_tooltips().line('@c "@id"')
                                              .line('---')
                                              .format('@y', '.2f')
                                              .line('(x, y)|(^x, @y)')
                                              .line('@|@w')) + \
          scale_size(range=[2, 4])
  
  |
  
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 12
  
      import numpy as np
      from lets_plot import *
      LetsPlot.setup_html()
      n = 100
      np.random.seed(42)
      data = {
          'x': np.random.normal(size=n),
          'y': np.random.normal(size=n),
          'c': np.random.randint(10, size=n)
      }
      ggplot(data, aes('x', 'y')) + \
          geom_point(aes(color='c'), tooltips='none')
class_docstr_tok: ["Configure","tooltips",".","Notes","--","--","-","Set","tooltips='none","'","to","hide","tooltips","from","this","layer",".","Examples","--","--","--","--","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","15","import","numpy","as","np","from","lets_plot","import","*","LetsPlot.setup_html","(",")","n","=","100","np.random.seed","(","42",")","data","=","{","'id","'",":","np.arange","(","n",")",",","'","x","'",":","np.random.normal","(","size=n",")",",","'","y","'",":","np.random.normal","(","size=n",")",",","'","c","'",":","np.random.choice","(","[","'","a","'",",","'","b","'","]",",","size=n",")",",","'","w","'",":","np.random.randint","(","1",",","11",",","size=n",")","}","ggplot","(","data",",","aes","(","'","x","'",",","'","y","'",")",")","+","\\","geom_point","(","aes","(","color=","'","c","'",",","size=","'","w","'",")",",","\\","tooltips=layer_tooltips","(",")",".line","(","'","@","c","``","@","id","''","'",")",".line","(","'","--","-","'",")",".format","(","'","@","y","'",",","'.2f","'",")",".line","(","'","(","x",",","y",")","|","(","^x",",","@","y",")","'",")",".line","(","'","@","|","@","w","'",")",")","+","\\","scale_size","(","range=","[","2",",","4","]",")","|","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","12","import","numpy","as","np","from","lets_plot","import","*","LetsPlot.setup_html","(",")","n","=","100","np.random.seed","(","42",")","data","=","{","'","x","'",":","np.random.normal","(","size=n",")",",","'","y","'",":","np.random.normal","(","size=n",")",",","'","c","'",":","np.random.randint","(","10",",","size=n",")","}","ggplot","(","data",",","aes","(","'","x","'",",","'","y","'",")",")","+","\\","geom_point","(","aes","(","color=","'","c","'",")",",","tooltips='none","'",")"]
docstr: Initialize self.
  
  Parameters
  ----------
  variables : list of str
      Variable names to place in the general tooltip with default formatting.
docstr_tok: ["Initialize","self",".","Parameters","--","--","--","--","--","variables",":","list","of","str","Variable","names","to","place","in","the","general","tooltip","with","default","formatting","."]
code: def __init__(self, variables: List[str] = None):
      """
      Initialize self.
  
      Parameters
      ----------
      variables : list of str
          Variable names to place in the general tooltip with default formatting.
  
      """
  
      self._tooltip_formats: List = []
      self._tooltip_lines: List = None
      self._tooltip_anchor = None
      self._tooltip_min_width = None
      self._tooltip_color = None
      self._tooltip_variables = variables
      self._tooltip_title = None
      self._disable_splitting = None
      super().__init__("tooltips", name=None)
  
file_path: lets-plot/python-package/lets_plot/plot/tooltip.py
imports: from typing import List
  from lets_plot.plot.core import FeatureSpec, _filter_none
label_desc: Use image node_id 1 to create a new layer_tooltips object from inherited base classes: FeatureSpec with example: obj = layer_tooltips(variables)