|
| 1 | +{ |
| 2 | + "data": [ |
| 3 | + {"x": [1, 2, 3, 4], "y": [1, 2, 3, 2], "xaxis": "x", "yaxis": "y"}, |
| 4 | + {"x": [1, 2, 3, 4], "y": [2, 3, 2, 1], "xaxis": "x2", "yaxis": "y2"}, |
| 5 | + {"x": [1, 2, 3, 4], "y": [3, 1, 2, 3], "xaxis": "x3", "yaxis": "y3"}, |
| 6 | + {"x": [1, 2, 3, 4], "y": [1, 3, 2, 2], "xaxis": "x4", "yaxis": "y4"}, |
| 7 | + {"x": [1, 2, 3, 4], "y": [2, 1, 3, 1], "xaxis": "x5", "yaxis": "y5"}, |
| 8 | + {"x": [1, 2, 3, 4], "y": [3, 2, 1, 3], "xaxis": "x6", "yaxis": "y6"}, |
| 9 | + {"x": [1, 2, 3, 4], "y": [1, 2, 2, 3], "xaxis": "x7", "yaxis": "y7"}, |
| 10 | + {"x": [1, 2, 3, 4], "y": [2, 3, 1, 2], "xaxis": "x8", "yaxis": "y8"}, |
| 11 | + {"x": [1, 2, 3, 4], "y": [3, 1, 3, 1], "xaxis": "x9", "yaxis": "y9"}, |
| 12 | + {"x": [1, 2, 3, 4], "y": [1, 2, 3, 2], "xaxis": "x10", "yaxis": "y10"}, |
| 13 | + {"x": [1, 2, 3, 4], "y": [2, 3, 2, 1], "xaxis": "x11", "yaxis": "y11"}, |
| 14 | + {"x": [1, 2, 3, 4], "y": [3, 1, 2, 3], "xaxis": "x12", "yaxis": "y12"} |
| 15 | + ], |
| 16 | + "layout": { |
| 17 | + "title": { |
| 18 | + "text": "Domain-referenced shape clipping with >=10 subplots", |
| 19 | + "subtitle": { |
| 20 | + "text": "No shapes should extend beyond their subplot boundaries" |
| 21 | + } |
| 22 | + }, |
| 23 | + "showlegend": false, |
| 24 | + "width": 800, |
| 25 | + "height": 900, |
| 26 | + "grid": {"rows": 4, "columns": 3, "pattern": "independent"}, |
| 27 | + "xaxis": {"domain": [0.05, 0.28], "range": [1, 4]}, |
| 28 | + "yaxis": {"domain": [0.80, 0.95], "range": [1, 3]}, |
| 29 | + "xaxis2": {"domain": [0.38, 0.61], "range": [1, 4]}, |
| 30 | + "yaxis2": {"domain": [0.80, 0.95], "range": [1, 3]}, |
| 31 | + "xaxis3": {"domain": [0.71, 0.95], "range": [1, 4]}, |
| 32 | + "yaxis3": {"domain": [0.80, 0.95], "range": [1, 3]}, |
| 33 | + "xaxis4": {"domain": [0.05, 0.28], "range": [1, 4]}, |
| 34 | + "yaxis4": {"domain": [0.55, 0.70], "range": [1, 3]}, |
| 35 | + "xaxis5": {"domain": [0.38, 0.61], "range": [1, 4]}, |
| 36 | + "yaxis5": {"domain": [0.55, 0.70], "range": [1, 3]}, |
| 37 | + "xaxis6": {"domain": [0.71, 0.95], "range": [1, 4]}, |
| 38 | + "yaxis6": {"domain": [0.55, 0.70], "range": [1, 3]}, |
| 39 | + "xaxis7": {"domain": [0.05, 0.28], "range": [1, 4]}, |
| 40 | + "yaxis7": {"domain": [0.30, 0.45], "range": [1, 3]}, |
| 41 | + "xaxis8": {"domain": [0.38, 0.61], "range": [1, 4]}, |
| 42 | + "yaxis8": {"domain": [0.30, 0.45], "range": [1, 3]}, |
| 43 | + "xaxis9": {"domain": [0.71, 0.95], "range": [1, 4]}, |
| 44 | + "yaxis9": {"domain": [0.30, 0.45], "range": [1, 3]}, |
| 45 | + "xaxis10": {"domain": [0.05, 0.28], "range": [1, 4]}, |
| 46 | + "yaxis10": {"domain": [0.05, 0.20], "range": [1, 3]}, |
| 47 | + "xaxis11": {"domain": [0.38, 0.61], "range": [1, 4]}, |
| 48 | + "yaxis11": {"domain": [0.05, 0.20], "range": [1, 3]}, |
| 49 | + "xaxis12": {"domain": [0.71, 0.95], "range": [1, 4]}, |
| 50 | + "yaxis12": {"domain": [0.05, 0.20], "range": [1, 3]}, |
| 51 | + "shapes": [ |
| 52 | + { |
| 53 | + "type": "rect", |
| 54 | + "xref": "x", |
| 55 | + "yref": "y domain", |
| 56 | + "x0": 3.5, |
| 57 | + "x1": 6, |
| 58 | + "y0": 0, |
| 59 | + "y1": 1, |
| 60 | + "fillcolor": "rgba(255, 0, 0, 0.3)", |
| 61 | + "line": {"color": "red", "width": 1} |
| 62 | + }, |
| 63 | + { |
| 64 | + "type": "rect", |
| 65 | + "xref": "x9", |
| 66 | + "yref": "y9 domain", |
| 67 | + "x0": 0, |
| 68 | + "x1": 1.5, |
| 69 | + "y0": 0, |
| 70 | + "y1": 1, |
| 71 | + "fillcolor": "rgba(0, 255, 0, 0.3)", |
| 72 | + "line": {"color": "green", "width": 1} |
| 73 | + }, |
| 74 | + { |
| 75 | + "type": "rect", |
| 76 | + "xref": "x10", |
| 77 | + "yref": "y10 domain", |
| 78 | + "x0": 3.5, |
| 79 | + "x1": 6, |
| 80 | + "y0": 0, |
| 81 | + "y1": 1, |
| 82 | + "fillcolor": "rgba(0, 0, 255, 0.3)", |
| 83 | + "line": {"color": "blue", "width": 2} |
| 84 | + }, |
| 85 | + { |
| 86 | + "type": "rect", |
| 87 | + "xref": "x11", |
| 88 | + "yref": "y11 domain", |
| 89 | + "x0": 3.5, |
| 90 | + "x1": 6, |
| 91 | + "y0": 0, |
| 92 | + "y1": 1, |
| 93 | + "fillcolor": "rgba(255, 165, 0, 0.3)", |
| 94 | + "line": {"color": "orange", "width": 1} |
| 95 | + }, |
| 96 | + { |
| 97 | + "type": "rect", |
| 98 | + "xref": "x3 domain", |
| 99 | + "yref": "y3", |
| 100 | + "x0": 0, |
| 101 | + "x1": 1, |
| 102 | + "y0": 0, |
| 103 | + "y1": 1.5, |
| 104 | + "fillcolor": "rgba(215, 192, 203, 0.3)", |
| 105 | + "line": {"color": "brown", "width": 2} |
| 106 | + }, { |
| 107 | + "type": "rect", |
| 108 | + "xref": "x5 domain", |
| 109 | + "yref": "y5", |
| 110 | + "x0": 0, |
| 111 | + "x1": 1, |
| 112 | + "y0": 2.5, |
| 113 | + "y1": 5, |
| 114 | + "fillcolor": "rgba(250, 220, 120, 0.3)", |
| 115 | + "line": {"color": "yellow", "width": 2} |
| 116 | + }, |
| 117 | + { |
| 118 | + "type": "rect", |
| 119 | + "xref": "x10 domain", |
| 120 | + "yref": "y10", |
| 121 | + "x0": 0, |
| 122 | + "x1": 1, |
| 123 | + "y0": 2.5, |
| 124 | + "y1": 5, |
| 125 | + "fillcolor": "rgba(128, 0, 128, 0.3)", |
| 126 | + "line": {"color": "purple", "width": 2} |
| 127 | + }, |
| 128 | + { |
| 129 | + "type": "rect", |
| 130 | + "xref": "x10 domain", |
| 131 | + "yref": "y10", |
| 132 | + "x0": 0.2, |
| 133 | + "x1": 0.8, |
| 134 | + "y0": 0, |
| 135 | + "y1": 1.5, |
| 136 | + "fillcolor": "rgba(0, 128, 0, 0.3)", |
| 137 | + "line": {"color": "darkgreen", "width": 2} |
| 138 | + }, |
| 139 | + { |
| 140 | + "type": "rect", |
| 141 | + "xref": "x12 domain", |
| 142 | + "yref": "y12", |
| 143 | + "x0": 0.2, |
| 144 | + "x1": 0.8, |
| 145 | + "y0": 0, |
| 146 | + "y1": 1.5, |
| 147 | + "fillcolor": "rgba(0, 255, 255, 0.3)", |
| 148 | + "line": {"color": "cyan", "width": 2} |
| 149 | + } |
| 150 | + ] |
| 151 | + } |
| 152 | +} |
0 commit comments