title: Hide legend entries in a plotly figure
body: <p>The plotly docs for <a href="https://plot.ly/python/legend/" rel="noreferrer">legends</a> provides info on hiding legend entries:</p>
  
  <pre><code>import plotly.plotly as py
  import plotly.graph_objs as go
  
  trace0 = go.Scatter(
      x=[1, 2, 3, 4, 5],
      y=[1, 2, 3, 4, 5],
      showlegend=False
  )
  
  trace1 = go.Scatter(
      x=[1, 2, 3, 4, 5],
      y=[5, 4, 3, 2, 1],
  )
  
  data = [trace0, trace1]
  fig = go.Figure(data=data)
  
  py.iplot(fig, filename='hide-legend-entry')
  </code></pre>
  
  <p>However, I'm generating my plot from a <code>DataFrame</code>. So, I already have a plotly figure, and therefore don't have the liberty of setting <code>showlegend=False</code> for each trace. </p>
  
  <pre><code>import pandas as pd
  import plotly.offline as py
  import cufflinks as cf
  cf.go_offline()
  
  df = pd.DataFrame(data=[[0, 1, 2], [3, 4, 5]], columns=['A', 'B', 'C'])
  py.plot(df.iplot(kind='scatter', asFigure=True))
  </code></pre>
  
  <p>I want to hide a list of columns.</p>
  
  <pre><code>columns_to_hide = ['A', 'C']
  </code></pre>
  
  <p>How can I do this?</p>