Skip to content

Commit 5a329da

Browse files
committed
Add text labels to baselines
1 parent 7f8cb5d commit 5a329da

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed
1.86 KB
Loading
123 Bytes
Loading

test/image/mocks/zzz_smith_basic.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
"type": "scattersmith",
2828
"re": [0, 0.1, 0.5, 1, 2, 3, 4, 5, 10, 0.1, 0.5, 10],
2929
"im": [0, 0.1, 0.5, 1, 2, 3, 4, 5, 10, -0.1, -0.5, -10],
30-
"mode": "lines+markers",
30+
"mode": "markers+text",
3131
"marker": {
3232
"symbol": "x",
3333
"color": "green"
3434
},
3535
"line": {
3636
"color": "chartreuse"
3737
},
38+
"texttemplate": "value: (%{re}, %{im})",
3839
"subplot": "smith4"
3940
}
4041
],

test/image/mocks/zzz_smith_line.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
{
44
"re": [0, 0.3, 1, 2, 3, 5, 10],
55
"im": [0, 0.3, 1, 2, 3, 5, 10],
6-
"mode": "lines+markers",
6+
"mode": "markers+text",
77
"name": "Curved",
88
"line": {
99
"color": "peru",
1010
"shape": "spline"
1111
},
12+
"text": "smith",
1213
"type": "scattersmith"
1314
},
1415
{

0 commit comments

Comments
 (0)