owid-grapher icon indicating copy to clipboard operation
owid-grapher copied to clipboard

Scatterplot rounding causes clipped coordinates in log plots

Open larsyencken opened this issue 2 years ago • 1 comments

Reported by @pabloarosado

Problem

In the example plot below, we see that the first four x positions that data points exactly match the rounded values (0.01, 0.02, 0.03, 0.04). This means that the data is being clipped to two significant figures, but this leads to an inaccurate layout for small data points when using a log plots.

Screen Shot 2022-10-04 at 11 09 56

larsyencken avatar Oct 04 '22 09:10 larsyencken

Marking as "nice to have" since it affects only a few log scatter plots, and only some of the data on those plots.

larsyencken avatar Oct 04 '22 11:10 larsyencken

This issue has had no activity within 10 months. It is considered stale and will be closed in 7 days unless it is worked on or tagged as pinned.

github-actions[bot] avatar Dec 27 '23 07:12 github-actions[bot]

Is this fixed @larsyencken

Current link

image

IOt's not getting flattenened off by the looks of it

image

Maybe another log level down qwould be nice: if (vals need iy) { go to 0.001% }

toni-sharpe avatar Jun 12 '24 21:06 toni-sharpe

@toni-sharpe true, this seems to be fixed by now :). Closing this

danyx23 avatar Jun 13 '24 12:06 danyx23