title: How to force Plot.ly Python to use a given yaxis range?
body: <p>As you can see below, I manually define the range for each yaxis as well as setting the autorange option to be False.</p>
  
  <p>However, if you graph this, you will still find the yaxis1 range is 0 to 20 rather than 0 to 25. As a result, one of the bars sticks out of the chart.</p>
  
  <p><em>How do I make it so that I can be certain every value will be contained within the yaxis range?</em></p>
  
  <p><strong>Edit:</strong> Additionally, the top grid line in the second row is not showing. If I rescale slightly, it will appear again. So the issue seems to be purely graphical. Any ideas are appreciated.</p>
  
  <pre><code>from plotly import tools
  fig = tools.make_subplots(rows=2, cols=2, subplot_titles=['A', 'B'], shared_xaxes=False, shared_yaxes=True)
  
  data = [[10, 4, 15, 20.5], [3, 12, 22.2], [6.5, 12, 26.2], [18, 4.2, 22.2]]
  traces = [go.Bar(x=['Type A', 'Type B', 'Type C'], y=d) for d in data]
  
  fig.append_trace(traces[0], 1, 1)
  fig.append_trace(traces[1], 1, 2)
  fig.append_trace(traces[2], 2, 1)
  fig.append_trace(traces[3], 2, 2)
  
  fig['layout']['yaxis1'].update(title='', range=[0, 25], autorange=False)
  fig['layout']['yaxis2'].update(title='', range=[0, 30], autorange=False)
  
  py.iplot(fig)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Lxtl3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Lxtl3.png" alt="Produced Chart with incorrect axis"></a></p>