Hi,
I would like to know bokeh’s default behaviour for setting the y_range when plotting a line, when ‘y_range’ is not given as an argument when creating the figure.
In the documentation (Plotting with basic glyphs — Bokeh 2.4.2 Documentation) I read “Bokeh attempts to automatically set the data bounds of plots to fit snugly around the data”, but how does it do that?
I want to implement/copy/mimic this behaviour when I add an y-axis with “extra_y_ranges” to a figure.
So far I searched the documentation, google and stackoverflow with no success. Also I tried the go through the source of bokeh to find out myself, also without any luck.
Any help is very much appriciated.

