Skip to content

Resolve overplotting with transparency, jitter, or 2D bins

baddistributionsmechanicalWilke 2019 p. 220Cleveland 1994 p. 159Few 2012 p. 209Few 2012 p. 209Few 2012 p. 210Munzner 2014 p. 307Munzner 2014 p. 307Munzner 2014 p. 148

Where do the two dense request clusters peak inside the scatter cloud?

Synthetic benchmark of 400 API requests drawn from two payload-latency regimes.

“Making individual points partially transparent lets dense regions appear darker while sparse areas stay light”

Claus O. Wilke, "Fundamentals of Data Visualization", p. 219.

Also covered in Wilke 2019 (18 Handling Overlapping Points, p. 220), Cleveland 1994 (3.5 Scatterplots and Jittering, p. 159), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 209), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 209), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 210), Munzner 2014 (13 Reduce Items and Attributes, p. 307), Munzner 2014 (13 Reduce Items and Attributes, p. 307), Munzner 2014 (7 Arrange Tables, p. 148).

CVD preview

Before

Four hundred fully opaque markers merge into a solid blue mass where the denser core and secondary cluster cannot be told apart.

Download before Python code

After

Setting marker opacity to 0.28 reveals the dense 280-request cluster near 42 KB and the separate 120-request cluster near 68 KB.

Download after Python code

Values

Latency rises with payload size across 400 requests, with density structure hidden inside the solid cloud.

Two distinct density peaks emerge around (42 KB, 45 ms) and (68 KB, 71 ms).

Values used in both charts
MetricPayload (KB)Latency (ms)
Observations400400
Median45.147.4
10th percentile31.436
90th percentile7174.3