title: Matplotlib - Mpld3 fig_to_html() in Django
body: <p>I am trying to dispaly a scatter of points in mpld3 in my browser.</p>
  
  <p>This is my views.py snippet:</p>
  
  <pre><code>plt.scatter([1, 10], [5, 9])
  fig = plt.figure()
  html_graph = mpld3.fig_to_html(fig)
  
  return render(request, 'home.html', {'graph': [html_graph]})
  </code></pre>
  
  <p>And inside of home.html:</p>
  
  <pre><code>{% for elem in graph %}
     {{elem|safe}}
  {% endfor %}
  </code></pre>
  
  <p>But the only thing I see are the controls. I also tried it with:</p>
  
  <pre><code>fig, ax = plt.subplot()
  </code></pre>
  
  <p>But this only displays the controls along with the graph, without the scattered points.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in Advance</p>