title: Beginning An Axis Range at a Particular Value in Plotly
body: <p>I'm creating an horizontal bar chart in plotly where the numeric values are going to be percent values between -1 and 1.</p>
  <p>As a default plotly centers these values at 0, but ideally I'd like to have the x axis begin at the baseline model score that's used to generate the values.</p>
  <p>Here's a quick example:</p>
  <pre><code>import plotly.graph_objects as go
  data = {
      'y': ['black', 'blue', 'orange', 'brown'],
      'x': [0.25, 0.18, -.1, -.06]
  }
  fig = go.Figure()
  fig.add_trace(go.Bar(x=data['x'], y=data['y'], orientation='h'))
  </code></pre>
  <p>This produces the following image:</p>
  <p><a href="https://i.stack.imgur.com/hQEuN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hQEuN.png" alt="enter image description here" /></a></p>
  <p>Looks good, but I'd like to be able to specify that the axis center itself around 0.38 (or something similar), and the extend out from there in the same way it is now.</p>
  <p>Thank you for your help.</p>