I am interested in using bokeh to build an app to help my astrophysics group visualize our data. Bokeh is pretty awesome, I’ve been getting the hang of it over the past few days and tuned in for the webinar last afternoon.
I wanted to know if it is possible to invert the axis on a scatter plot. for example, my plot has the x range 12-16 by default, but I would like the axis to go from 16-12. Unfortunately, this is conventional for some astrophysical quantities, and plots are presented this way traditionally.
I’ve tried setting the xrange by hand with a command like this
scatter(x, y, x_range=Range1d(start=16, end=12)
and although the axis look right, the data does not show up (it usually does if the xrange keyword argument is omitted).
I also tried using the figure(xrange=Range1d(start=16, end=12)) method suggested on the user guide page on the bokeh home page, but got an error message saying figure does not expect any arguments. Do you have any suggestions? Or if there is no quick fix, a work around will do.
I hope I am not taking up too much of your time asking a resolved question-I checked around on the user guide, stackoverflow and general google searches, but was unable to find a solution.
SMARTS Data Manager
Yale University, Department of Astronomy