You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curvelinear grids sometimes create axes that contain only two ticks, each of equal value. In these cases, ScalarFormatter's _set_format method will throw a math domain error when it tries to calculate the logarithm of their difference.
As the default tick formatter is mpl_toolkits.axisartist.grid_finder.FormatterPrettyPrint and that formatter uses ScalarFormatter, any curvelinear graph that doesn't specify an alternative formatter has the potential to run into this issue. This includes all polar curvelinear examples.
demo_floating_axis.py throws the error if the plot is panned to create condition noted above, or if line 58 is changed to ax1.set_ylim(-5, 5)
Curvelinear grids sometimes create axes that contain only two ticks, each of equal value. In these cases,
ScalarFormatter
's_set_format
method will throw a math domain error when it tries to calculate the logarithm of their difference.As the default tick formatter is
mpl_toolkits.axisartist.grid_finder.FormatterPrettyPrint
and that formatter usesScalarFormatter
, any curvelinear graph that doesn't specify an alternative formatter has the potential to run into this issue. This includes all polar curvelinear examples.demo_floating_axis.py throws the error if the plot is panned to create condition noted above, or if line 58 is changed to
ax1.set_ylim(-5, 5)
The text was updated successfully, but these errors were encountered: