Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Force Log Scale on Axis with Small Range of Data

I’ve noticed that plotly will ignore the layout option for a logarithmic axis if the data along that axis is contained within a single decade. For example, if I try to plot data that spans about 1.6 - 2.4 on the y-axis, the plot refuses to display log scaling on the y-axis. However, if I enter everything in the same except taking the data to the sixth power (so that it now spans from about 16 - 190), the log scaling appears on the y-axis.

Is there any way to override this behavior and force plotly to use a log scale every time?