Skip to content

Commit 4117612

Browse files
author
Jon M. Mease
committed
Create parcats_grid_subplots mock with 4 grid-based subplots
This combines the former colorbar and font mocks. And adds a parcats trace with a Latex category label as well.
1 parent eba1b4a commit 4117612

6 files changed

+55
-43
lines changed
-57.4 KB
Binary file not shown.
-28.3 KB
Binary file not shown.
88.3 KB
Loading

test/image/mocks/parcats_colorbar.json

-24
This file was deleted.

test/image/mocks/parcats_fonts.json

-19
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"data": [
3+
{"type": "parcats",
4+
"domain": {"row": 0, "column": 0},
5+
"dimensions":[
6+
{"label": "One", "values": [1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 3, 1, 2, 3, 1, 2, 1, 2, 1, 1]},
7+
{"label": "Two", "values": ["A", "B", "A", "B", "C", "C", "A", "B", "C", "B", "C", "B", "C", "B", "C", "B", "C", "B", "A", "A"]},
8+
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]}],
9+
"bundlecolors": true,
10+
"line": {
11+
"color": [0, 0, 1, 1, 0, 1, 0, 0, 0, 2, 2, 2, 2, 1, 2, 1, 0, 2, 1, 2],
12+
"shape": "linear",
13+
"showscale": true,
14+
"colorscale": "Viridis"
15+
}
16+
},
17+
{"type": "parcats",
18+
"domain": {"row": 0, "column": 1},
19+
"dimensions":[
20+
{"label": "One", "values": [1, 1, 2, 1, 2, 1, 1, 2, 1]},
21+
{"label": "Two", "values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"]},
22+
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}],
23+
"labelfont": {"family": "Rockwell", "size": 20, "color": "gray"},
24+
"tickfont": {"family": "Arial", "size": 10, "color": "firebrick"}
25+
},
26+
{"type": "parcats",
27+
"domain": {"row": 1, "column": 0},
28+
"tickfont": {"color": "black"},
29+
"dimensions":[
30+
{"label": "One", "values": [1, 1, 2, 1, 2, 1, 1, 2, 1]},
31+
{"label": "Two",
32+
"values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"],
33+
"categoryarray": ["A", "B", "C"],
34+
"ticktext": ["$A^2$", "<b>Bold</b><br>and<br><i>Italic</i>", "<a href='http://www.google.com'>Link</a>"]
35+
},
36+
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}]
37+
},
38+
{"type": "parcats",
39+
"domain": {"row": 1, "column": 1},
40+
"dimensions":[
41+
{"label": "One", "values": [1, 1, 2, 1, 2, 1, 1, 2, 1]},
42+
{"label": "Two", "values": ["A", "B", "A", "B", "C", "C", "A", "B", "C"]},
43+
{"label": "Three", "values": [11, 11, 11, 11, 11, 11, 11, 11, 11]}],
44+
"bundlecolors": false,
45+
"line": {
46+
"color": [0, 0, 1, 1, 0, 1, 0, 0, 0],
47+
"shape": "hspline"
48+
}
49+
}
50+
],
51+
"layout": {
52+
"height": 602,
53+
"width": 592,
54+
"grid": {"rows": 2, "columns": 2}}
55+
}

0 commit comments

Comments
 (0)