New 'get_*_domain' function. This properly handles the map from mpl to plotly for mpl axes.