Module diskchef.tests.plotting.test_2d
Functions
def test_temperature_range()
-
Expand source code
def test_temperature_range(): """Test that if the colorbar range is small, the different tick formatter is used""" phys = WilliamsBest2014( r_min=10 * u.au, r_max=100 * u.au, midplane_temperature_1au=100 * u.K, atmosphere_temperature_1au=120 * u.K, ) plot = phys.plot_temperatures() # plt.show() assert isinstance(plot.cbar_formatter, LogFormatterMathtext)
Test that if the colorbar range is small, the different tick formatter is used