Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17f65d0

Browse files
committed
add inner box and mean line to side-by-side violin mock
1 parent 48758d8 commit 17f65d0

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed
1.79 KB
Loading

test/image/mocks/violin_side-by-side.json

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
},
1717
"data": [
1818
{
19-
"text": "sample length: 32",
2019
"hoveron": "points+kde",
20+
"text": "sample length: 32",
21+
"showmeanline": true,
2122
"legendgroup": "F",
2223
"scalegroup": "F",
2324
"points": "all",
24-
"pointpos": 0.1,
25+
"pointpos": 1,
2526
"jitter": 0,
2627
"scalemode": "count",
28+
"showinnerbox": true,
2729
"marker": {
2830
"line": {
2931
"width": 2,
@@ -79,14 +81,16 @@
7981
"orientation": "h"
8082
},
8183
{
82-
"text": "sample length: 30",
8384
"hoveron": "points+kde",
85+
"text": "sample length: 30",
86+
"showmeanline": true,
8487
"legendgroup": "M",
8588
"scalegroup": "M",
8689
"points": "all",
87-
"pointpos": -0.1,
90+
"pointpos": -0.6,
8891
"jitter": 0,
8992
"scalemode": "count",
93+
"showinnerbox": true,
9094
"marker": {
9195
"line": {
9296
"width": 2,
@@ -140,14 +144,16 @@
140144
"orientation": "h"
141145
},
142146
{
143-
"text": "sample length: 9",
144147
"hoveron": "points+kde",
148+
"text": "sample length: 9",
149+
"showmeanline": true,
145150
"legendgroup": "F",
146151
"scalegroup": "F",
147152
"points": "all",
148-
"pointpos": 0.1,
153+
"pointpos": 0.4,
149154
"jitter": 0,
150155
"scalemode": "count",
156+
"showinnerbox": true,
151157
"marker": {
152158
"line": {
153159
"width": 2,
@@ -180,14 +186,16 @@
180186
"orientation": "h"
181187
},
182188
{
183-
"text": "sample length: 10",
184189
"hoveron": "points+kde",
190+
"text": "sample length: 10",
191+
"showmeanline": true,
185192
"legendgroup": "M",
186193
"scalegroup": "M",
187194
"points": "all",
188-
"pointpos": -0.1,
195+
"pointpos": -0.3,
189196
"jitter": 0,
190197
"scalemode": "count",
198+
"showinnerbox": true,
191199
"marker": {
192200
"line": {
193201
"width": 2,
@@ -221,14 +229,16 @@
221229
"orientation": "h"
222230
},
223231
{
224-
"text": "sample length: 28",
225232
"hoveron": "points+kde",
233+
"text": "sample length: 28",
234+
"showmeanline": true,
226235
"legendgroup": "F",
227236
"scalegroup": "F",
228237
"points": "all",
229-
"pointpos": 0.1,
238+
"pointpos": 0.55,
230239
"jitter": 0,
231240
"scalemode": "count",
241+
"showinnerbox": true,
232242
"marker": {
233243
"line": {
234244
"width": 2,
@@ -280,14 +290,16 @@
280290
"orientation": "h"
281291
},
282292
{
283-
"text": "sample length: 59",
284293
"hoveron": "points+kde",
294+
"text": "sample length: 59",
295+
"showmeanline": true,
285296
"legendgroup": "M",
286297
"scalegroup": "M",
287298
"points": "all",
288-
"pointpos": -0.1,
299+
"pointpos": -1.1,
289300
"jitter": 0,
290301
"scalemode": "count",
302+
"showinnerbox": true,
291303
"marker": {
292304
"line": {
293305
"width": 2,
@@ -370,14 +382,16 @@
370382
"orientation": "h"
371383
},
372384
{
373-
"text": "sample length: 18",
374385
"hoveron": "points+kde",
386+
"text": "sample length: 18",
387+
"showmeanline": true,
375388
"legendgroup": "F",
376389
"scalegroup": "F",
377390
"points": "all",
378-
"pointpos": 0.1,
391+
"pointpos": 0.45,
379392
"jitter": 0,
380393
"scalemode": "count",
394+
"showinnerbox": true,
381395
"marker": {
382396
"line": {
383397
"width": 2,
@@ -419,14 +433,16 @@
419433
"orientation": "h"
420434
},
421435
{
422-
"text": "sample length: 58",
423436
"hoveron": "points+kde",
437+
"text": "sample length: 58",
438+
"showmeanline": true,
424439
"legendgroup": "M",
425440
"scalegroup": "M",
426441
"points": "all",
427-
"pointpos": -0.1,
442+
"pointpos": -0.9,
428443
"jitter": 0,
429444
"scalemode": "count",
445+
"showinnerbox": true,
430446
"marker": {
431447
"line": {
432448
"width": 2,

0 commit comments

Comments
 (0)