Skip to content
Snippets Groups Projects
Commit 8853e01b authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

fix colors and markers for elliptic curves in plots (dragoon/komodo!157)

## results
![setup](/uploads/1f3a383689d3c8fd5a3f1331deabdec0/setup.png)
![commit](/uploads/bcf3bfdd991725abb97cbe4f8890840b/commit.png)
![inverse](/uploads/35316c887c6b2347baa86c4db119f762/inverse.png)
![mul](/uploads/262c27e99d7f2b5c8fb45761607a8717/mul.png)
![transpose](/uploads/2378460cb687d0a9320a24a840ed2eef/transpose.png)
parent 35f94037
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,29 @@ export def main [data: path, --save: path] {
| group-by name --to-table
| reject items.name
| rename --column { group: "name", items: "points" }
| insert style.color {|it|
match $it.name {
"BLS12-381" => "tab:blue"
"PALLAS" => "tab:green"
"BN254" => "tab:orange"
"CP6-782" => "tab:olive"
"ED-MNT4-298" => "tab:pink"
"MNT4-753" => "tab:red"
_ => "tab:grey"
}
}
| insert style.line.marker.shape {|it|
match $it.name {
"BLS12-381" => "s"
"PALLAS" => "o"
"BN254" => "^"
"CP6-782" => "*"
"ED-MNT4-298" => "X"
"MNT4-753" => "d"
_ => null
}
}
| insert style.line.marker.size { 10 }
| sort-by name
let options = [
......
......@@ -21,6 +21,29 @@ export def main [data: path, --save: path] {
| group-by name --to-table
| reject items.name
| rename --column { group: "name", items: "points" }
| insert style.color {|it|
match $it.name {
"BLS12-381" => "tab:blue"
"PALLAS" => "tab:green"
"BN254" => "tab:orange"
"CP6-782" => "tab:olive"
"ED-MNT4-298" => "tab:pink"
"MNT4-753" => "tab:red"
_ => "tab:grey"
}
}
| insert style.line.marker.shape {|it|
match $it.name {
"BLS12-381" => "s"
"PALLAS" => "o"
"BN254" => "^"
"CP6-782" => "*"
"ED-MNT4-298" => "X"
"MNT4-753" => "d"
_ => null
}
}
| insert style.line.marker.size { 10 }
| sort-by name
let options = [
......
......@@ -63,6 +63,29 @@ for graph in [
| rename --column { n: "x", mean: "y", stddev: "e" }
| group-by name --to-table
| rename --column { group: "name", items: "points" }
| insert style.color {|it|
match $it.name {
"BLS12-381" => "tab:blue"
"PALLAS" => "tab:green"
"BN254" => "tab:orange"
"CP6-782" => "tab:olive"
"ED-MNT4-298" => "tab:pink"
"MNT4-753" => "tab:red"
_ => "tab:grey"
}
}
| insert style.line.marker.shape {|it|
match $it.name {
"BLS12-381" => "s"
"PALLAS" => "o"
"BN254" => "^"
"CP6-782" => "*"
"ED-MNT4-298" => "X"
"MNT4-753" => "d"
_ => null
}
}
| insert style.line.marker.size { 10 }
gplt plot ...[
--title $graph.title
--x-label "n"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment