docstr: Sets the colorscale. Has an effect only if in
  `marker.line.color` is set to a numerical array. The colorscale
  must be an array containing arrays mapping a normalized value
  to an rgb, rgba, hex, hsl, hsv, or named color string. At
  minimum, a mapping for the lowest (0) and highest (1) values
  are required. For example, `[[0, 'rgb(0,0,255)'], [1,
  'rgb(255,0,0)']]`. To control the bounds of the colorscale in
  color space, use `marker.line.cmin` and `marker.line.cmax`.
  Alternatively, `colorscale` may be a palette name string of the
  following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,
  Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,
  YlGnBu,YlOrRd.
  
  The 'colorscale' property is a colorscale and may be
  specified as:
    - A list of colors that will be spaced evenly to create the colorscale.
      Many predefined colorscale lists are included in the sequential, diverging,
      and cyclical modules in the plotly.colors package.
    - A list of 2-element lists where the first element is the
      normalized color level value (starting at 0 and ending at 1),
      and the second item is a valid color string.
      (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])
    - One of the following named colorscales:
          ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',
           'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',
           'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',
           'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',
           'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',
           'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',
           'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',
           'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',
           'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',
           'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',
           'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',
           'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',
           'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',
           'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',
           'ylorrd'].
      Appending '_r' to a named colorscale reverses it.
  
  Returns
  -------
  str
docstr_tok: ["Sets","the","colorscale",".","Has","an","effect","only","if","in","`","marker.line.color","`","is","set","to","a","numerical","array",".","The","colorscale","must","be","an","array","containing","arrays","mapping","a","normalized","value","to","an","rgb",",","rgba",",","hex",",","hsl",",","hsv",",","or","named","color","string",".","At","minimum",",","a","mapping","for","the","lowest","(","0",")","and","highest","(","1",")","values","are","required",".","For","example",",","`","[","[","0",",","'rgb","(","0,0,255",")","'","]",",","[","1",",","'rgb","(","255,0,0",")","'","]","]","`",".","To","control","the","bounds","of","the","colorscale","in","color","space",",","use","`","marker.line.cmin","`","and","`","marker.line.cmax","`",".","Alternatively",",","`","colorscale","`","may","be","a","palette","name","string","of","the","following","list",":","Blackbody",",","Bluered",",","Blues",",","Cividis",",","Earth",",","Electric",",","Greens",",","Greys",",","Hot",",","Jet",",","Picnic",",","Portland",",","Rainbow",",","RdBu",",","Reds",",","Viridis",",","YlGnBu",",","YlOrRd",".","The","'colorscale","'","property","is","a","colorscale","and","may","be","specified","as",":","-","A","list","of","colors","that","will","be","spaced","evenly","to","create","the","colorscale",".","Many","predefined","colorscale","lists","are","included","in","the","sequential",",","diverging",",","and","cyclical","modules","in","the","plotly.colors","package",".","-","A","list","of","2-element","lists","where","the","first","element","is","the","normalized","color","level","value","(","starting","at","0","and","ending","at","1",")",",","and","the","second","item","is","a","valid","color","string",".","(","e.g",".","[","[","0",",","'green","'","]",",","[","0.5",",","'red","'","]",",","[","1.0",",","'rgb","(","0",",","0",",","255",")","'","]","]",")","-","One","of","the","following","named","colorscales",":","[","'aggrnyl","'",",","'agsunset","'",",","'algae","'",",","'amp","'",",","'armyrose","'",",","'balance","'",",","'blackbody","'",",","'bluered","'",",","'blues","'",",","'blugrn","'",",","'bluyl","'",",","'brbg","'",",","'brwnyl","'",",","'bugn","'",",","'bupu","'",",","'burg","'",",","'burgyl","'",",","'cividis","'",",","'curl","'",",","'darkmint","'",",","'deep","'",",","'delta","'",",","'dense","'",",","'earth","'",",","'edge","'",",","'electric","'",",","'emrld","'",",","'fall","'",",","'geyser","'",",","'gnbu","'",",","'gray","'",",","'greens","'",",","'greys","'",",","'haline","'",",","'hot","'",",","'hsv","'",",","'ice","'",",","'icefire","'",",","'inferno","'",",","'jet","'",",","'magenta","'",",","'magma","'",",","'matter","'",",","'mint","'",",","'mrybm","'",",","'mygbm","'",",","'oranges","'",",","'orrd","'",",","'oryel","'",",","'oxy","'",",","'peach","'",",","'phase","'",",","'picnic","'",",","'pinkyl","'",",","'piyg","'",",","'plasma","'",",","'plotly3","'",",","'portland","'",",","'prgn","'",",","'pubu","'",",","'pubugn","'",",","'puor","'",",","'purd","'",",","'purp","'",",","'purples","'",",","'purpor","'",",","'rainbow","'",",","'rdbu","'",",","'rdgy","'",",","'rdpu","'",",","'rdylbu","'",",","'rdylgn","'",",","'redor","'",",","'reds","'",",","'solar","'",",","'spectral","'",",","'speed","'",",","'sunset","'",",","'sunsetdark","'",",","'teal","'",",","'tealgrn","'",",","'tealrose","'",",","'tempo","'",",","'temps","'",",","'thermal","'",",","'tropic","'",",","'turbid","'",",","'turbo","'",",","'twilight","'",",","'viridis","'",",","'ylgn","'",",","'ylgnbu","'",",","'ylorbr","'",",","'ylorrd","'","]",".","Appending","'_r","'","to","a","named","colorscale","reverses","it",".","Returns","--","--","--","-","str"]
code: def colorscale(self):
      """
      Sets the colorscale. Has an effect only if in
      `marker.line.color` is set to a numerical array. The colorscale
      must be an array containing arrays mapping a normalized value
      to an rgb, rgba, hex, hsl, hsv, or named color string. At
      minimum, a mapping for the lowest (0) and highest (1) values
      are required. For example, `[[0, 'rgb(0,0,255)'], [1,
      'rgb(255,0,0)']]`. To control the bounds of the colorscale in
      color space, use `marker.line.cmin` and `marker.line.cmax`.
      Alternatively, `colorscale` may be a palette name string of the
      following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,
      Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,
      YlGnBu,YlOrRd.
  
      The 'colorscale' property is a colorscale and may be
      specified as:
        - A list of colors that will be spaced evenly to create the colorscale.
          Many predefined colorscale lists are included in the sequential, diverging,
          and cyclical modules in the plotly.colors package.
        - A list of 2-element lists where the first element is the
          normalized color level value (starting at 0 and ending at 1),
          and the second item is a valid color string.
          (e.g. [[0, 'green'], [0.5, 'red'], [1.0, 'rgb(0, 0, 255)']])
        - One of the following named colorscales:
              ['aggrnyl', 'agsunset', 'algae', 'amp', 'armyrose', 'balance',
               'blackbody', 'bluered', 'blues', 'blugrn', 'bluyl', 'brbg',
               'brwnyl', 'bugn', 'bupu', 'burg', 'burgyl', 'cividis', 'curl',
               'darkmint', 'deep', 'delta', 'dense', 'earth', 'edge', 'electric',
               'emrld', 'fall', 'geyser', 'gnbu', 'gray', 'greens', 'greys',
               'haline', 'hot', 'hsv', 'ice', 'icefire', 'inferno', 'jet',
               'magenta', 'magma', 'matter', 'mint', 'mrybm', 'mygbm', 'oranges',
               'orrd', 'oryel', 'oxy', 'peach', 'phase', 'picnic', 'pinkyl',
               'piyg', 'plasma', 'plotly3', 'portland', 'prgn', 'pubu', 'pubugn',
               'puor', 'purd', 'purp', 'purples', 'purpor', 'rainbow', 'rdbu',
               'rdgy', 'rdpu', 'rdylbu', 'rdylgn', 'redor', 'reds', 'solar',
               'spectral', 'speed', 'sunset', 'sunsetdark', 'teal', 'tealgrn',
               'tealrose', 'tempo', 'temps', 'thermal', 'tropic', 'turbid',
               'turbo', 'twilight', 'viridis', 'ylgn', 'ylgnbu', 'ylorbr',
               'ylorrd'].
          Appending '_r' to a named colorscale reverses it.
  
      Returns
      -------
      str
      """
      return self["colorscale"]
  
imports: from plotly.basedatatypes import BaseTraceHierarchyType
  import copy
label_desc: Use image node_id 15 for calling the Line obj's underlying member method code with example usage: obj.colorscale() and returns: self