diff --git a/bins/inbreeding/plot.nu b/bins/inbreeding/plot.nu index cd2bcddf0ca12001e3268e33d4a1161202c17b52..189b09fd833b608e4f6a1a1dd57a065404a2f9c3 100644 --- a/bins/inbreeding/plot.nu +++ b/bins/inbreeding/plot.nu @@ -98,8 +98,8 @@ export def main [ | reject strategy | save --force /tmp/graphs.json - let x_min = open /tmp/graphs.json | get points.0.x | math min - let x_max = open /tmp/graphs.json | get points.0.x | math max + let x_min = open /tmp/graphs.json | get points | flatten | get x | math min + let x_max = open /tmp/graphs.json | get points | flatten | get x | math max let args = [ --json-data-file /tmp/graphs.json