-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upcoming scales 1.4.0 release #6172
Comments
I found the dev version of scales breaks most of the visual tests by a subtle difference of diff --git a/tests/testthat/_snaps/aes/alpha-set-in-alpha.svg b/tests/testthat/_snaps/aes/alpha-set-in-alpha.svg
index 218cedbd2..1e08edd47 100644
--- a/tests/testthat/_snaps/aes/alpha-set-in-alpha.svg
+++ b/tests/testthat/_snaps/aes/alpha-set-in-alpha.svg
@@ -31,11 +31,11 @@
<rect x='45.03' y='22.78' width='669.49' height='522.33' style='stroke-width: 1.07; stroke: #333333;' />
</g>
<g clip-path='url(#cpMC4wMHw3MjAuMDB8MC4wMHw1NzYuMDA=)'>
-<text x='40.10' y='548.14' text-anchor='end' style='font-size: 8.80px; fill: #4D4D4D; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>0.950</text>
-<text x='40.10' y='417.56' text-anchor='end' style='font-size: 8.80px; fill: #4D4D4D; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>0.975</text>
-<text x='40.10' y='286.98' text-anchor='end' style='font-size: 8.80px; fill: #4D4D4D; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.000</text>
-<text x='40.10' y='156.39' text-anchor='end' style='font-size: 8.80px; fill: #4D4D4D; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.025</text>
-<text x='40.10' y='25.81' text-anchor='end' style='font-size: 8.80px; fill: #4D4D4D; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.050</text>
+<text x='40.10' y='548.14' text-anchor='end' style='font-size: 8.80px; fill: #4E4E4E; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>0.950</text>
+<text x='40.10' y='417.56' text-anchor='end' style='font-size: 8.80px; fill: #4E4E4E; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>0.975</text>
+<text x='40.10' y='286.98' text-anchor='end' style='font-size: 8.80px; fill: #4E4E4E; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.000</text>
+<text x='40.10' y='156.39' text-anchor='end' style='font-size: 8.80px; fill: #4E4E4E; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.025</text>
+<text x='40.10' y='25.81' text-anchor='end' style='font-size: 8.80px; fill: #4E4E4E; font-family: sans;' textLength='22.02px' lengthAdjust='spacingAndGlyphs'>1.050</text>
<polyline points='42.29,545.11 45.03,545.11 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
<polyline points='42.29,414.53 45.03,414.53 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
<polyline points='42.29,283.95 45.03,283.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' /> |
Yeah this is anticipated in the 'Tweak |
Ah, thanks for the details! I didn't notice that bullet is about this and there's a plan. Great. |
The upcoming release of scales (r-lib/scales#474) prompts a few tasks on ggplot2's side.
breaks_exp()
intotransform_exp()
(Use snapshot expectations for transformation breaks #6171)ggplot2/R/utilities.R
Lines 792 to 808 in b29b831
col_mix()
calls to continue to produce the same hex codes, because the shim has agrDevices::rgb()
backend whilescales::col_mix()
is based on {farver}, producing tiny differences.palette
flexibility #6112)The text was updated successfully, but these errors were encountered: