title: How to position legends inside a plot in Plotly
body: <p>I have got this code from Plotly page. I need to make the background transparent and the axis highlighted. And also the legends positioned inside the plot.</p>
  
  <pre><code>import plotly.graph_objects as go
  
  fig = go.Figure()
  
  fig.add_trace(go.Scatter(
      x=[1, 2, 3, 4, 5],
      y=[1, 2, 3, 4, 5],
      name="Increasing"
  ))
  
  fig.add_trace(go.Scatter(
      x=[1, 2, 3, 4, 5],
      y=[5, 4, 3, 2, 1],
      name="Decreasing"
  ))
  
  fig.update_layout(legend_title='&lt;b&gt; Trend &lt;/b&gt;')
  fig.show()
  </code></pre>
  
  <p>The code above shows the output below:</p>
  
  <p><a href="https://i.stack.imgur.com/oqj9H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oqj9H.png" alt="enter image description here"></a></p>
  
  <p>My expected output:</p>
  
  <p><a href="https://i.stack.imgur.com/oU9Eq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oU9Eq.png" alt="enter image description here"></a></p>
  
  <p>Hoow can i convert the first image to get the features of the second image?</p>