code: def violin_no_colorscale(
      data,
      data_header,
      group_header,
      colors,
      use_colorscale,
      group_stats,
      rugplot,
      sort,
      height,
      width,
      title,
  ):
      """
      Refer to FigureFactory.create_violin() for docstring.
  
      Returns fig for violin plot without colorscale.
  
      """
  
      # collect all group names
      group_name = []
      for name in data[group_header]:
          if name not in group_name:
              group_name.append(name)
      if sort:
          group_name.sort()
  
      gb = data.groupby([group_header])
      L = len(group_name)
  
      fig = make_subplots(
          rows=1,
          cols=L,
          shared_yaxes=True,
          horizontal_spacing=0.025,
          print_grid=False,
      )
      color_index = 0
      for k, gr in enumerate(group_name):
          vals = np.asarray(gb.get_group(gr)[data_header], np.float)
          if color_index >= len(colors):
              color_index = 0
          plot_data, plot_xrange = violinplot(
              vals, fillcolor=colors[color_index], rugplot=rugplot
          )
          layout = graph_objs.Layout()
  
          for item in plot_data:
              fig.append_trace(item, 1, k + 1)
          color_index += 1
  
          # add violin plot labels
          fig["layout"].update(
              {
                  "xaxis{}".format(k + 1): make_XAxis(
                      group_name[k], plot_xrange
                  )
              }
          )
  
      # set the sharey axis style
      fig["layout"].update({"yaxis{}".format(1): make_YAxis("")})
      fig["layout"].update(
          title=title,
          showlegend=False,
          hovermode="closest",
          autosize=False,
          height=height,
          width=width,
      )
  
      return fig
  
file_path: catboost/contrib/python/plotly/py2/plotly/figure_factory/_violin.py
imports: from __future__ import absolute_import
  from numbers import Number
  from plotly import exceptions, optional_imports
  import plotly.colors
  from plotly.graph_objs import graph_objs
  from plotly.subplots import make_subplots
label_desc: Use image node_id 10 for calling a global function with example usage: violin_no_colorscale(data, data_header, group_header, colors, use_colorscale, group_stats, rugplot, sort, height, width, title) and returns: fig