title: Importing histogram from matplotlib to plotly
body: <p>I have generated these histograms with the python code below, and it looks fine in maptlotlib:</p>
  
  <pre><code>d_norm_1 = np.random.normal(loc=0.0, scale=3.0, size=5000)
  
  ## Build a Gaussian Mixture Model:
  array1 = np.random.normal(loc=4.0, scale=2.0, size=2000)
  array2 = np.random.normal(loc=-5.0, scale=4.0, size=2000)
  d_norm_2 = np.concatenate((array1, array2))
  
  fig3 = plt.figure(3, figsize=(8, 6))
  ax3 = fig3.add_subplot(1, 1, 1)
  
  plt.hist(d_norm_1, bins=40, normed=True, color='b', alpha=0.4, rwidth=1.0)
  plt.hist(d_norm_2, bins=40, normed=True, color='g', alpha=0.4, rwidth=0.8)
  
  plt.xlabel('$x$', size=20)
  plt.ylabel('Probability Density', size=20)
  plt.title('Histogram', size=20)
  
  plt.setp(ax3.get_xticklabels(), rotation='horizontal', fontsize=16)
  plt.setp(ax3.get_yticklabels(), rotation='horizontal', fontsize=16)
  
  plt.show()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/G5aRw.png" alt="enter image description here"></p>
  
  <p>But when I import this into plotly, the histogram bars are replaced by lines. I think plotly is not compatible with this version of matplotlib.</p>
  
  <p>Here is the plotly version  of the same histogram shown above:</p>
  
  <p><a href="https://plot.ly/~vmirjalily/11/histogram/" rel="nofollow noreferrer">https://plot.ly/~vmirjalily/11/histogram/</a></p>
  
  
  
  <p>I am using matplotlib 1.4.2</p>