This is necessary now that margins are non-zero. A small function to map to plotly's plot domain.