diff --git a/src/printbox-ext-plot/PrintBox_ext_plot.ml b/src/printbox-ext-plot/PrintBox_ext_plot.ml index 656a452..488fd81 100644 --- a/src/printbox-ext-plot/PrintBox_ext_plot.ml +++ b/src/printbox-ext-plot/PrintBox_ext_plot.ml @@ -2,13 +2,12 @@ open Tyxml module B = PrintBox module H = Html -(* This tests extensions with HTML-specific support (as well as text backend support). *) - type plot_spec = | Scatterplot of { points: (float * float) array; pixel: string; } + | Scatterbag of { points: ((float * float) * string) array } | Line_plot of { points: float array; pixel: string; @@ -18,6 +17,7 @@ type plot_spec = pixel_true: string; pixel_false: string; } + | Map of { callback: float * float -> string } | Line_plot_adaptive of { callback: float -> float; cache: (float, float) Hashtbl.t; @@ -72,8 +72,9 @@ let plot_canvas ?canvas ?(size : (int * int) option) ?(sparse = false) specs |> List.map (function | Scatterplot { points; _ } -> Array.map fst points + | Scatterbag { points } -> Array.map (fun ((x, _), _) -> x) points | Line_plot _ -> [||] - | Boundary_map _ -> [||] + | Map _ | Boundary_map _ -> [||] | Line_plot_adaptive _ -> [||]) |> Array.concat in @@ -81,8 +82,9 @@ let plot_canvas ?canvas ?(size : (int * int) option) ?(sparse = false) specs |> List.map (function | Scatterplot { points; _ } -> Array.map snd points + | Scatterbag { points } -> Array.map (fun ((_, y), _) -> y) points | Line_plot { points; _ } -> points - | Boundary_map _ -> [||] + | Map _ | Boundary_map _ -> [||] | Line_plot_adaptive _ -> [||]) |> Array.concat in @@ -165,17 +167,10 @@ let plot_canvas ?canvas ?(size : (int * int) option) ?(sparse = false) Some Float.(scale_x x, to_int (of_int (dimy - 1) *. (y -. miny) /. spany)) with Invalid_argument _ -> None in - let spread ~i ~dmj px1 px2 = + let spread ~i ~dmj updated = if sparse then (i mod 10 = 0 && dmj mod 10 = 0) - || i mod 10 = 5 - && dmj mod 10 = 0 - && canvas.(dmj).(i - 5) <> px1 - && canvas.(dmj).(i - 5) <> px2 - || i mod 10 = 0 - && dmj mod 10 = 5 - && canvas.(dmj - 5).(i) <> px1 - && canvas.(dmj - 5).(i) <> px2 + || (i mod 10 = 5 && dmj mod 10 = 0 && not updated) else true in @@ -189,13 +184,35 @@ let plot_canvas ?canvas ?(size : (int * int) option) ?(sparse = false) ) else false in + let prerender_scatter points = + Array.iter + (fun (p, pixel) -> + match scale_2d p with + | Some (i, j) -> ignore @@ update ~i ~dmj:(dimy - 1 - j) pixel + | None -> ()) + points + in + let prerender_map callback = + let updated = ref true in + canvas + |> Array.iteri (fun dmj -> + Array.iteri (fun i pix -> + if String.trim pix = "" && spread ~i ~dmj !updated then ( + let x = + Float.(of_int i *. spanx /. of_int (dimx - 1)) +. minx + in + let y = + Float.(of_int (dimy - 1 - dmj) *. spany /. of_int (dimy - 1)) + +. miny + in + updated := update ~i ~dmj (callback (x, y)) + ))) + in specs |> List.iter (function | Scatterplot { points; pixel } -> - Array.map scale_2d points - |> Array.iter (function - | Some (i, j) -> ignore @@ update ~i ~dmj:(dimy - 1 - j) pixel - | None -> ()) + prerender_scatter (Array.map (fun p -> p, pixel) points) + | Scatterbag { points } -> prerender_scatter points | Line_plot { points; pixel } -> let points = Array.map scale_1d points in let npoints = Float.of_int (Array.length points) in @@ -208,27 +225,12 @@ let plot_canvas ?canvas ?(size : (int * int) option) ?(sparse = false) Option.iter (fun j -> ignore @@ update ~i:(rescale_x i) ~dmj:(dimy - 1 - j) pixel)) | Boundary_map { callback; pixel_true; pixel_false } -> - canvas - |> Array.iteri (fun dmj -> - Array.iteri (fun i pix -> - if - String.trim pix = "" - && spread ~i ~dmj pixel_true pixel_false - then ( - let x = - Float.(of_int i *. spanx /. of_int (dimx - 1)) +. minx - in - let y = - Float.( - of_int (dimy - 1 - dmj) *. spany /. of_int (dimy - 1)) - +. miny - in - canvas.(dmj).(i) <- - (if callback (x, y) then - pixel_true - else - pixel_false) - ))) + prerender_map (fun point -> + if callback point then + pixel_true + else + pixel_false) + | Map { callback } -> prerender_map callback | Line_plot_adaptive { callback; cache; pixel } -> let updated = ref true in canvas.(0) diff --git a/src/printbox-ext-plot/PrintBox_ext_plot.mli b/src/printbox-ext-plot/PrintBox_ext_plot.mli index 6eb21e1..712a987 100644 --- a/src/printbox-ext-plot/PrintBox_ext_plot.mli +++ b/src/printbox-ext-plot/PrintBox_ext_plot.mli @@ -7,6 +7,7 @@ type plot_spec = points: (float * float) array; pixel: string; } + | Scatterbag of { points: ((float * float) * string) array } | Line_plot of { points: float array; pixel: string; @@ -16,6 +17,7 @@ type plot_spec = pixel_true: string; pixel_false: string; } + | Map of { callback: float * float -> string } | Line_plot_adaptive of { callback: float -> float; cache: (float, float) Hashtbl.t; diff --git a/test/plotting.expected b/test/plotting.expected index fce24f8..56ec9f8 100644 --- a/test/plotting.expected +++ b/test/plotting.expected @@ -1,50 +1,50 @@ Text output: ┌──┬────────────────────────────────────────────────────────────────────────────────────────────────────┐ -│ 1│# │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ # │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│y │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ │ │ -│ 0│ #│ +│ 1│Y:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;│ +│ │::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;│ +│ │:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;│ +│ │::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;│ +│ │,,,,,,,::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::M:::::::::::::::::::;;;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::;;;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::;;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::;│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::│ +│ │,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::│ +│ │...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::│ +│ │.....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::│ +│ │...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::│ +│y │...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::│ +│ │...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::│ +│ │......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::│ +│ │.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::│ +│ │............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::│ +│ │..............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::│ +│ │................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::│ +│ │..................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::│ +│ │...................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::│ +│ │ ..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::│ +│ │ ......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::│ +│ │ ....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::│ +│ │ ..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::│ +│ │ .................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::│ +│ │ ................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::│ +│ │ ................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::│ +│ │ ...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::│ +│ │ ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::│ +│ │ ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::│ +│ │ ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::│ +│ 0│ ..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::X│ ├──┼────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ │0 1│ │ │ x │ └──┴────────────────────────────────────────────────────────────────────────────────────────────────────┘ HTML output: -
y
1
0
###
0
1
x
+
y
1
0
Y::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;;::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;;;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;;,,::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;;,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;;,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::::;;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::::;;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::::;;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::::;;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::::::::;;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::::;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::M:::::::::::::::;;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::;;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::;;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::::;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::;;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::::,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::::..,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::::..........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::::..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::::.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::::......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::::..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::::.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::::..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::...............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::::................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::.................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::::..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::::....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::.....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::::......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::.......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::::.......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::::.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::........................................,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::::...................................,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::.................................,,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::................................,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::::..............................,,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::..............................,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::.............................,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::............................,,,,,,,,,,,,,,,,,,,,,,,,,::::::::::............................,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::...........................,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::..........................,,,,,,,,,,,,,,,,,,,,,,,,,:::::::::..........................,,,,,,,,,,,,,,,,,,,,,,,,:::::::::..........................,,,,,,,,,,,,,,,,,,,,,,,,:::::::::.........................,,,,,,,,,,,,,,,,,,,,,,,,,::::::::.........................,,,,,,,,,,,,,,,,,,,,,,,,,::::::::.........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::.........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::.........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::........................,,,,,,,,,,,,,,,,,,,,,,,,::::::::X
0
1
x
diff --git a/test/plotting.ml b/test/plotting.ml index 35c9b0d..31e686a 100644 --- a/test/plotting.ml +++ b/test/plotting.ml @@ -12,8 +12,27 @@ let test ~size = size; specs = [ - Scatterplot - { points = [| 0., 1.; 1., 0.; 0.75, 0.75 |]; pixel = "#" }; + Scatterbag + { + points = + [| (0., 1.), "Y"; (1., 0.), "X"; (0.75, 0.75), "M" |]; + }; + Map + { + callback = + (fun (x, y) -> + let s = (x ** 2. +. y ** 2.) ** 0.5 in + if s < 0.3 then + "" + else if s < 0.6 then + "." + else if s < 0.9 then + "," + else if s < 1.2 then + ":" + else + ";"); + }; ]; }) diff --git a/test/plotting_half_moons.expected b/test/plotting_half_moons.expected index 72a1ba8..d39c953 100644 --- a/test/plotting_half_moons.expected +++ b/test/plotting_half_moons.expected @@ -1,50 +1,50 @@ Text output: ┌───────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐ -│ 1.09 │............................#.........................................******************************│ -│ │.............................##.#...##..##..........................********************************│ -│ │......................########.###..#.....#.##.....................*********************************│ -│ │.....................#.#..####.#...#.#..##.#...#.....#...........***********************************│ -│ │..............#....##########.##....####.#...#.##.#.............************************************│ -│ │.............#.#####.###.#.#.#.##....###..##.##..##............*************************************│ -│ │.................#.#.#####.###...####..#..#.##.#.##.##.......***************************************│ -│ │.........#....##..##.#..#..####.###......###..##.####.##.##.****************************************│ -│ │.........#.....#...###.##.##...#.#.#.#...#.....#.##.#####.**#***************************************│ -│ │..........###....#.#####.##.#..........#..#.....#####..###******************************************│ -│ │.......#..#.#..#.#....#.....#................#..##...#.#**#*****************************************│ -│ │......###.###..##.##..........................#....#..###*#*****************************************│ -│ │...#....#.###.##.##..........%.....................##**#*#******************************************│ -│ │......#######....#...................%%..........#.**##*#*###****************************%*****%****│ -│ │.##.##...##.#...##...............%...%............****##*##*###*#***********************************│ -│ │.#.#.#.###.##.##.................%%...%.........********###***##**#*************************%%%*%%**│ -│ │.....#.#..##...................%..%%%%%........*********###*###*#***********************%%***%%%%***│ -│ │#.##.###.#.#................%.%...%.%%%......*********#***#****#**#********************%***%**%*****│ -│ │#####.#...##.................%..%.%.....%...*************#**##*###*##*****************%%%****%%*%*%*│ -│y │#.#.###.#.##.................%%.%.%%%..%...************#*******#*#*#******************%%*%******%*%%│ -│ │##...###..#..................%%..%..%.%..****************##**####****#***************%**%***%*%**%%*│ -│ │##......###..........................%%.%*%********************#*####*******************%%*****%*%%*│ -│ │...#.#.###...................%..%%%%..%**%****************##**#######****************%%%*****%*%****│ -│ │......##.......................%...%.%%%*****************#*#*#******#******************%**%%***%%%**│ -│ │....#..#...........................%*%**%**%****************#******#***************%*%%%%**%%**%****│ -│ │........##.......................%*%%***%*%*******************#**##***************%%***%**%%%*%*****│ -│ │#.#............................%.*%**%**%%****%%*********#**#*****#*#****************%%%*%%*********│ -│ │.#...#.........................*%%%**%%%%%*%*****************#****#**********%*****%%%%*%*%***%*****│ -│ │..............................*******%**%%%***%*%%%*%****#********************%*%**%*%%*%*%%**%*****│ -│ │............................******%*%%%%%*%*%*%*%******%**********************%%**%%*%*%*%****%*****│ -│ │...........................********%***%%%%%*%%%*******%****************%*%%**%*%%%%%*%%************│ -│ │.........................****************%*****%%%%%*%*%*%%**********%*%%%%%%*%**%******************│ -│ │........................************%***%*%%*%*******%**%%**%%*%***%%%%%%%**%*%*%*****%%************│ -│ │.......................***************%**%*%%*%%%****%*%%%*%%***%*%%*%*%*%%%**%%%%%******%**********│ -│ │.....................******************%%%%*%**%*******%%%**%**%%%%*%%***%*%**%%**%*****************│ -│ │....................*************************%**%%**%*%*%*%%*%%***%***%*%%***%%%***%%%**************│ -│ │..................********************************%**%%%**%%%%**%%%%***%%*%%%%%******%**************│ -│ │.................*******************************%%%********%%%%%%*%%*%**%%*%****%*******************│ -│ │...............************************************%*%%*%%%*%%%**%%%%***%%**************************│ -│ -0.794│..............*************************************%******%*****%***%****%%*************************│ +│ 1.09 │............................#.........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.............................##.#...##..##..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │......................########.###..#.....#.##.....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.....................#.#..####.#...#.#..##.#...#.....#...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │..............#....##########.##....####.#...#.##.#.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.............#.#####.###.#.#.#.##....###..##.##..##............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.................#.#.#####.###...####..#..#.##.#.##.##.......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.........#....##..##.#..#..####.###......###..##.####.##.##.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.........#.....#...###.##.##...#.#.#.#...#.....#.##.#####.,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │..........###....#.#####.##.#..........#..#.....#####..###,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.......#..#.#..#.#....#.....#................#..##...#.#,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │......###.###..##.##..........................#....#..###,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │...#....#.###.##.##..........%.....................##,,#,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │......#######....#...................%%..........#.,,##,#,###,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,%,,,,│ +│ │.##.##...##.#...##...............%...%............,,,,##,##,###,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ │.#.#.#.###.##.##.................%%...%.........,,,,,,,,###,,,##,,#,,,,,,,,,,,,,,,,,,,,,,,,,%%%,%%,,│ +│ │.....#.#..##...................%..%%%%%........,,,,,,,,,###,###,#,,,,,,,,,,,,,,,,,,,,,,,%%,,,%%%%,,,│ +│ │#.##.###.#.#................%.%...%.%%%......,,,,,,,,,#,,,#,,,,#,,#,,,,,,,,,,,,,,,,,,,,%,,,%,,%,,,,,│ +│ │#####.#...##.................%..%.%.....%...,,,,,,,,,,,,,#,,##,###,##,,,,,,,,,,,,,,,,,%%%,,,,%%,%,%,│ +│y │#.#.###.#.##.................%%.%.%%%..%...,,,,,,,,,,,,#,,,,,,,#,#,#,,,,,,,,,,,,,,,,,,%%,%,,,,,,%,%%│ +│ │##...###..#..................%%..%..%.%..,,,,,,,,,,,,,,,,##,,####,,,,#,,,,,,,,,,,,,,,%,,%,,,%,%,,%%,│ +│ │##......###..........................%%.%,%,,,,,,,,,,,,,,,,,,,,#,####,,,,,,,,,,,,,,,,,,,%%,,,,,%,%%,│ +│ │...#.#.###...................%..%%%%..%,,%,,,,,,,,,,,,,,,,##,,#######,,,,,,,,,,,,,,,,%%%,,,,,%,%,,,,│ +│ │......##.......................%...%.%%%,,,,,,,,,,,,,,,,,#,#,#,,,,,,#,,,,,,,,,,,,,,,,,,%,,%%,,,%%%,,│ +│ │....#..#...........................%,%,,%,,%,,,,,,,,,,,,,,,,#,,,,,,#,,,,,,,,,,,,,,,%,%%%%,,%%,,%,,,,│ +│ │........##.......................%,%%,,,%,%,,,,,,,,,,,,,,,,,,,#,,##,,,,,,,,,,,,,,,%%,,,%,,%%%,%,,,,,│ +│ │#.#............................%.,%,,%,,%%,,,,%%,,,,,,,,,#,,#,,,,,#,#,,,,,,,,,,,,,,,,%%%,%%,,,,,,,,,│ +│ │.#...#.........................,%%%,,%%%%%,%,,,,,,,,,,,,,,,,,#,,,,#,,,,,,,,,,%,,,,,%%%%,%,%,,,%,,,,,│ +│ │..............................,,,,,,,%,,%%%,,,%,%%%,%,,,,#,,,,,,,,,,,,,,,,,,,,%,%,,%,%%,%,%%,,%,,,,,│ +│ │............................,,,,,,%,%%%%%,%,%,%,%,,,,,,%,,,,,,,,,,,,,,,,,,,,,,%%,,%%,%,%,%,,,,%,,,,,│ +│ │...........................,,,,,,,,%,,,%%%%%,%%%,,,,,,,%,,,,,,,,,,,,,,,,%,%%,,%,%%%%%,%%,,,,,,,,,,,,│ +│ │.........................,,,,,,,,,,,,,,,,%,,,,,%%%%%,%,%,%%,,,,,,,,,,%,%%%%%%,%,,%,,,,,,,,,,,,,,,,,,│ +│ │........................,,,,,,,,,,,,%,,,%,%%,%,,,,,,,%,,%%,,%%,%,,,%%%%%%%,,%,%,%,,,,,%%,,,,,,,,,,,,│ +│ │.......................,,,,,,,,,,,,,,,%,,%,%%,%%%,,,,%,%%%,%%,,,%,%%,%,%,%%%,,%%%%%,,,,,,%,,,,,,,,,,│ +│ │.....................,,,,,,,,,,,,,,,,,,%%%%,%,,%,,,,,,,%%%,,%,,%%%%,%%,,,%,%,,%%,,%,,,,,,,,,,,,,,,,,│ +│ │....................,,,,,,,,,,,,,,,,,,,,,,,,,%,,%%,,%,%,%,%%,%%,,,%,,,%,%%,,,%%%,,,%%%,,,,,,,,,,,,,,│ +│ │..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,%%%,,%%%%,,%%%%,,,%%,%%%%%,,,,,,%,,,,,,,,,,,,,,│ +│ │.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%,,,,,,,,%%%%%%,%%,%,,%%,%,,,,%,,,,,,,,,,,,,,,,,,,│ +│ │...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,%%,%%%,%%%,,%%%%,,,%%,,,,,,,,,,,,,,,,,,,,,,,,,,│ +│ -0.794│..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,%,,,,,%,,,%,,,,%%,,,,,,,,,,,,,,,,,,,,,,,,,│ ├───────┼────────────────────────────────────────────────────────────────────────────────────────────────────┤ │ │-1.25 2.1│ │ │ x │ └───────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘ HTML output: -
y
1.09
-0.794
.......................#.................................************************##........................................................************************#####..................................#.....................*************************########.......................................................*************************######....................#..................................**************************#########......................................................**************************##########.......................#..............................***************************################....................................................****************************#############...................#......#.........#.......#...........****************************##############.....................................#..............*****************************##############...............#...#.............#....................*****************************################....................#.......................#.......******************************############.....................#...............#..............******************************##########....................#...................#......#....*******************************##################.................................................*******************************###############.............#..................#.............#....********************************#################........................................#.......*********************************################...............................................*********************************#########........#...........................#..........#.**********************************########.###..............................................**********************************##########.........#...................................#.***********************************#########.............................................***********************************############......#......................................************************************#####%###.......#....................................*************************************########...........................................*************************************##############..........................................****#**********************************###%#%..........................................**************************************#%####%#####.........................................******#*********************************###########.....#..........................%..........*********#******************************##%##%#.......#.................................***************************************%*%###%#####%..#..........#...........................********#*********************************###%#%%#####...............................%........**************************************%***###%%%%#######%.............................%.........**************************************%****#%%#%%%#%#%%......................................******************************************##%###%%%%###......#...............................***************#****************************#####%#%%%#...#..................................****************#***************************#%%####%##%#%#%#..#...............................%...********************************************#%#%#%####%.#......#.............................********************************************%###%%%#%#%%%#%%%...................................*********************************************#%%###%##%%##%%..................................**********************************************#%%###%%%#%##%#%..................................**********************************************##%%#%#%#%%##...........................%......***********************************************%##%%#%%%##%.......#..........................***********************************************%#%#%.#%##%%%##................................************************************************#%##%###%#................................***********************#*************************%#%#%#%##%##%%#%%...............................***********************#**********************%****%#%%%%%%%......#.......................%.********************#******************************%##%%%%......#........................*****************#*********************************%#%%#%.............................***************************************************%%%#%#%%%.............................%***************************************************%%#%%#%#%#%%............................***************************************%*************%%%%%%%#%...........................%.*************************#***************************%%%%#%#%%#%%%...........................*****************************************************#%#%%##%%%%...........................***********%*%%*****************************************#%%%%%#%%%%%%%%..........................************************#******************************%%%%%#%%%%%%%%%.........................***%**************************#**************************%%%*%%%%%%%%.........................**********************#*********************%**%**********%%%%%%%........................*****************************************************%***%%%%%%%%%%%%%........................********************************************************%%%%%%%%%%%%.......................*****************************************%%****************%%%%%%%%%%%.......................**********************%***********************%************%%%%%%%%%%%%%%......................**********************************************************%%%%%%%%.....................***************************%********************************%%%%%%%%%.....................********************%***************************************%%%%%%*%%%%%%%%%%....................******************************************%******************%%%%%%%%%%%%%%%%%%%%%....................********************************************%****************%%%%%%%%%%%...................*********************************************%%****************%%%%%%%%%%%...................**************************%************%***********************%%%%%%%%%%%%%%%%%%%..................**************************************************************%%%%%%%%%%%%%.................**************************************************%*************%%%%%%%%%%%%%.................**********************************************%*****************%%%%%%%%%................*******************************%*********************************%%%%%%%%%%%%%%%%................***************************%**************************%***********%%%%%%%%%...............***********************************%******************************%%%%%%%%%%%%%%...............*************************************%********%********************%%%%%%%%%%..............*********************************************%*********************%%%%%%%%..............******************************************************************%%%%%%%%.............*******************************************************************%%%%%%%%%%%%%............********************************************************************%%%%............********************************************************************%%
-1.25
2.1
x
+
y
1.09
-0.794
.......................#.................................,,,,,,,,,,,,,,,,,,,,,,,,##........................................................,,,,,,,,,,,,,,,,,,,,,,,,#####..................................#.....................,,,,,,,,,,,,,,,,,,,,,,,,,########.......................................................,,,,,,,,,,,,,,,,,,,,,,,,,######....................#..................................,,,,,,,,,,,,,,,,,,,,,,,,,,#########......................................................,,,,,,,,,,,,,,,,,,,,,,,,,,##########.......................#..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,################....................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,#############...................#......#.........#.......#...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,##############.....................................#..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##############...............#...#.............#....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,################....................#.......................#.......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,############.....................#...............#..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##########....................#...................#......#....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##################.................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,###############.............#..................#.............#....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#################........................................#.......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,################...............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#########........#..........................#..........#.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,###########..............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##########.........#...................................#.,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#########.............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,############......#......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#####%###.......#....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,########...........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##############..........................................,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,###%#%..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%####%#####.........................................,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,###########.....#..........................%..........,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%##%#.......#.................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,%###%#####%..#..........#...........................,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,###%#%%#####...............................%........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,###%%%%#######%.............................%.........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,#%%#%%%#%#%%......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%###%%%%###......#...............................,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,#####%#%%%#...#..................................,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%####%##%#%#%#..#...............................%...,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%#%####%.#......#.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%###%%%#%#%%%#%%%...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%###%##%%##%%..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%###%%%#%##%#%..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%%#%#%#%%##...........................%......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%%#%%%##%.......#.........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#%#%##%%%##................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%##%###%#................................,,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,%#%#%#%##%##%%#%%...............................,,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,%,,,,%#%%%%%%%......#.......................%.,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%%%%......#........................,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#%.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%#%#%%%.............................%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%#%#%#%%............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,%%%%%%%#%...........................%.,,,,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%#%#%%#%%%...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%%##%%%%...........................,,,,,,,,,,,%,%%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%%%%#%%%%%%%%..........................,,,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%#%%%%%%%%%.........................,,,%,,,,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%.........................,,,,,,,,,,,,,,,,,,,,,,#,,,,,,,,,,,,,,,,,,,,,%,,%,,,,,,,,,,%%%%%%%........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,%%%%%%%%%%%%%........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%.......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%,,,,,,,,,,,,,,,,%%%%%%%%%%%.......................,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,%%%%%%%%%%%%%%......................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%.....................,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%.....................,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%%%%....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%%%%%%%%%....................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,%%%%%%%%%%%...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%,,,,,,,,,,,,,,,,%%%%%%%%%%%...................,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%%%%%%%..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,%%%%%%%%%%%%%.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,%%%%%%%%%................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%%%%................,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,%%%%%%%%%...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%%...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,%,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,%%%%%%%%..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%.............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%%%%%%%%%%............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%%............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%
-1.25
2.1
x
diff --git a/test/plotting_half_moons.ml b/test/plotting_half_moons.ml index 65dcfc3..038c104 100644 --- a/test/plotting_half_moons.ml +++ b/test/plotting_half_moons.ml @@ -44,7 +44,7 @@ let test = [ Scatterplot { points = points1; pixel = "#" }; Scatterplot { points = points2; pixel = "%" }; - Boundary_map { pixel_false = "."; pixel_true = "*"; callback }; + Boundary_map { pixel_false = "."; pixel_true = ","; callback }; ]; }) diff --git a/test/plotting_linear.expected b/test/plotting_linear.expected index 22ac13a..2da3252 100644 --- a/test/plotting_linear.expected +++ b/test/plotting_linear.expected @@ -46,5 +46,5 @@ Text output: └──┴────────────────────────────────────────────────────────────────────────────────────────────────────┘ HTML output: -
y
0.99
0
................................................................................%...............................................................................,%..............................................................................,%,.............................................................................,%,,,............................................................................,,%,,...........................................................................,,%,,,,..........................................................................,,,%,,,%.........................................................................,,,,,,,%........................................................................,,,,,,,,%.......................................................................,,,,,,,,,%......................................................................,,,,,,,,,,%.....................................................................,,,,,,,,,,,%....................................................................,,,,,,,,,,,,##%#...................................................................,,,,,,,,,,,,,##%#..................................................................,,,,,,,,,,,#,,,#%##.................................................................,,,,,,,,,,,,,,,#%##................................................................,,,,,,,,,,,,,,,,#%##...............................................................,,,,,,,,,#,,,,,,,,%###..............................................................,,,,,,,,%,,,,,,,,,,#,##%.............................................................,,,,,,,,,,,,,,,,,,,##%#............................................................,,,,,,,,,,,,,,,,,,,,##%...........................................................,,,,,,,#,,,,,,,,,,,,,,#%#..........................................................,,,,,,#,,,,,,,,,,,,,,,,#%,#.........................................................,,,,,,,,,,,,,,,,,,,,,,,#%##........................................................,,,,,,,,,,,%,,,,,,,,,,,,,###%.......................................................,,,,,,,,,,,,,,,,,,,,,,,,,##%......................................................,,,,,#,,,,,,,,,,,,,,,,,,,,,#%#.....................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,#%##....................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##...................................................,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,##%#..................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%##................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%...............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%#..............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%............................................,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#,%#...........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%.........................................,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.......................................,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,##%......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.....................................,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#,%#....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%................................,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#...............................,#,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#............................,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#,%#...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%.........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#........................,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%.......................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#,%......................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#,%.....................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#,%....................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#,%#...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#................,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#.............,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%,%#............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#%...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..........,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%,%#.........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#........,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%,%#.......,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#%.....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#%....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%#%...,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%%#..,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%%%#%.,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%#%%%%%%%%#%%%%%%
0
1
x
+
y
0.99
0
................................................................................%...............................................................................,%..............................................................................,%,.............................................................................,%,............................................................................,,%,,...........................................................................,,%,,..........................................................................,,,%,,,%.........................................................................,,,,,,,%........................................................................,,,,,,,,%.......................................................................,,,,,,,,,%......................................................................,,,,,,,,,,%.....................................................................,,,,,,,,,,,%....................................................................,,,,,,,,,,,,##%#...................................................................,,,,,,,,,,,,,##%#..................................................................,,,,,,,,,,,#,,,#%##.................................................................,,,,,,,,,,,,,,,#%##................................................................,,,,,,,,,,,,,,,,#%##...............................................................,,,,,,,,,#,,,,,,,,%###..............................................................,,,,,,,,%,,,,,,,,,###%.............................................................,,,,,,,,,,,,,,,,,,,##%#............................................................,,,,,,,,,,,,,,,,,,,,##%...........................................................,,,,,,,#,,,,,,,,,,,,,,#%#..........................................................,,,,,,#,,,,,,,,,,,,,,,#%#.........................................................,,,,,,,,,,,,,,,,,,,,,,,#%##........................................................,,,,,,,,,,,%,,,,,,,,,,,,,###%.......................................................,,,,,,,,,,,,,,,,,,,,,,,,,##%......................................................,,,,,#,,,,,,,,,,,,,,,,,,,,,#%#.....................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,#%##....................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##...................................................,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,##%#..................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%##................................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%...............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%#..............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.............................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%............................................,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#...........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#..........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%.........................................,,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#........................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.......................................,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,##%......................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.....................................,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#....................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#...................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%..................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#.................................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%................................,#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#...............................,#,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#..............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%##%.............................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#............................,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#...........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%..........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%.........................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#........................,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,##%.......................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%......................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%.....................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%....................#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#...................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#.................,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#................,,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%#%...............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#.............,,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%#............,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#%...........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%#..........,,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%#.........,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#........,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,#%%#.......,,,,,,,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#......,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#%.....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%#%%#%....,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%#%...,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%%#..,,,,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%#%%%%#%.,,,,,,,,%,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,%%%#%%%%%%%%#%%%%%%
0
1
x