title: Bokeh auto-scaling axes, after adding secondary y-axis
body: <p>I am trying to plot two sets of graphs on one figure with a secondary y-axis. I can't get both of them to do auto-scaling according to the data. </p>
  
  <p>I can't set the ranges because I am tabbing 10 figures and the code will be used for different sources whose ranges will vary. Also, currently, I have one range set to specific values but I would like to have them both set to auto-scaling.</p>
  
  <p>The dataframe looks like:</p>
  
  <p>Wavelength         340    440    550    ...    340std    440std
  2017-07-01 14:40   2.05   3.02   2.14   ...    0.002     0.00054
  ....</p>
  
  <pre><code>
  TOOLS = "pan,wheel_zoom,box_zoom,reset,save"
  p = figure(tools=TOOLS, x_axis_type='datetime',plot_height=400, 
             plot_width=700,
             outline_line_color = 'gray',
             y_axis_label = 'Radiance[W/m^2.sr.nm]',
             y_range = DataRange1d()
            )
  # Setting the second y axis range name and range
  p.extra_y_ranges = {"foo": Range1d(start=0, end=0.000006)}
  
  # Adding the second axis to the plot.  
  p.add_layout(LinearAxis(y_range_name="foo"), 'right')
  
  p.line(x='Time', y='340.0', line_color="darkcyan", line_width=1, 
         source=source)
  p.line(x='Time',y='340.0std', line_color = 'red', line_width=1, 
         y_range_name="foo", source=source)
  
  one = Panel(child=row(p), title='wavelength_one')
  tabs = Tabs(tabs = [one,two,three,four,five,six])
  
  show(tabs)
  
  </code></pre>
  
  <p>The current output looks as follows:
  <a href="https://i.stack.imgur.com/Etxtk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Etxtk.png" alt="Output Screenshot"></a></p>