title: Unable to remove legend box [python]
body: <p>So I need to make this plot in python. I wish to remove my legend's border. However, when I tried the different solutions other posters made, they were unable to work with mine. Please help.</p>
  
  <p><strong>This doesn't work:</strong></p>
  
  <pre><code>plt.legend({'z$\sim$0.35', 'z$\sim$0.1','z$\sim$1.55'})
  plt.legend(frameon=False)
  </code></pre>
  
  <hr>
  
  <pre><code>plt.legend({'z$\sim$0.35', 'z$\sim$0.1','z$\sim$1.55'})
  plt.legend.get_frame().set_linewidth(0.0)
  </code></pre>
  
  <hr>
  
  <pre><code>plt.legend({'z$\sim$0.35', 'z$\sim$0.1','z$\sim$1.55'}, 'Box', 'off')
  </code></pre>
  
  <p>Additionally, when I plotted, I imported two different files and graphed them with a line and with circles respectively. How could I put a line or a circle within the legend key?</p>
  
  <p>The plot:</p>
  
  <p><a href="https://i.stack.imgur.com/Axl8g.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Axl8g.png" alt="enter image description here"></a></p>