Skip to content

Instantly share code, notes, and snippets.

@StoneLabs
Created September 14, 2021 13:14
Show Gist options
  • Save StoneLabs/297ff13f628fa25eae42f3ee238c1242 to your computer and use it in GitHub Desktop.
Save StoneLabs/297ff13f628fa25eae42f3ee238c1242 to your computer and use it in GitHub Desktop.
Units over time
TextGrid[VALS =
Cases[Apply[
Flatten[{#1, {"StandardYear", "Value",
"StandardUncertainty"} /. #2}] &,
Entity["PhysicalConstant", "GravitationalConstant"][
"ValueAssociation"], {1}], {source_, y_Integer,
rest__} :> {source, DateObject[{y}], rest}],
Sequence[Dividers -> All,
Background -> {Automatic, {{LightBlue, None}}}]]
hvals = Callout[{#2,
Around[#3 - Quantity["GravitationalConstant"], #4]}, #1] & @@@
VALS;
DateListPlot[Sort@hvals,
PlotLabel ->
"Deviation from " <> ToString[Quantity["GravitationalConstant"]],
FrameLabel -> {Automatic, Automatic}]
@StoneLabs
Copy link
Author

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment