title: Creating tables using plotly
body: <p>I am using plotly offline to create a table.But the output is displayed as a single row,not as shown in the output format given in the following link(i.e not as a table)</p>
  
  <blockquote>
    <p><a href="https://plot.ly/python/table/#changing-row-and-column-size" rel="nofollow noreferrer">https://plot.ly/python/table/#changing-row-and-column-size</a>(“Changing Row and column size”)</p>
  </blockquote>
  
  <p>Here is the code,</p>
  
  <pre><code>import plotly
  import plotly.graph_objs as go
  #plotly.offline.init_notebook_mode()
  from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
  values = [[['geneNames', 'uniprotIDs', 'ec-code', 'subcellularLocation', 'tissueSpecificity',
              'proteinName', 'subunit', 'species']], [[' G6PC', ' P35575', ' 3.1.3.9',
              '  Endoplasmic reticulum membrane', 'No Data', ' Glucose-6-phosphatase alpha',
              'No Data', ' Homo sapiens']]]
  trace0 = go.Table(
    type = 'table',
    columnorder = [1,2],
    columnwidth = [80,400],
    header = dict(
      values = [['&lt;b&gt;PARAMETERS&lt;/b&gt;'],
                    ['&lt;b&gt;VALUES&lt;/b&gt;']],
      line = dict(color = '#506784'),
      fill = dict(color = '#119DFF'),
      align = ['left','center'],
      font = dict(color = 'white', size = 12),
      height = 40
    ),
    cells = dict(
      values = values,
      line = dict(color = '#506784'),
      fill = dict(color = ['#25FEFD', 'white']),
      align = ['left', 'center'],
      font = dict(color = '#506784', size = 12),
      height = 30
      ))
  
  data = [trace0]
  plot(data)
  </code></pre>
  
  <p>I would like to ask for some help</p>
  
  <p>EDIT:
   Would it be possible to save the table in png/txt format?I tried replacing 'uniprot.html' with 'uniprot.png'. But the file gets saved as uniprot.png.html.</p>