|
| 1 | +{ |
| 2 | + "data": [{ |
| 3 | + "type": "scatter", |
| 4 | + "y": ["E", "F", "G", "H"], |
| 5 | + "x": ["A", "B", "C", "D"] |
| 6 | + }, { |
| 7 | + "type": "image", |
| 8 | + "zmax": [1, 1, 1], |
| 9 | + "x0": "B", |
| 10 | + "y0": "F", |
| 11 | + "z": [ |
| 12 | + [[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]], |
| 13 | + [[0, 1, 0], [0, 0, 1], [1, 0, 0], [0, 0, 0]], |
| 14 | + [[1, 0, 0], [1, 0, 0], [0, 0, 1], [0, 0, 0]] |
| 15 | + ] |
| 16 | + }, { |
| 17 | + "type": "image", |
| 18 | + "zmax": [1, 1, 1], |
| 19 | + "xaxis": "x2", |
| 20 | + "yaxis": "y2", |
| 21 | + "z": [ |
| 22 | + [[1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 0]], |
| 23 | + [[0, 1, 0], [0, 0, 1], [1, 0, 0], [0, 0, 0]], |
| 24 | + [[1, 0, 0], [1, 0, 0], [0, 0, 1], [0, 0, 0]] |
| 25 | + ] |
| 26 | +}], |
| 27 | + "layout": { |
| 28 | + "width": 400, "height": 600, "title": {"text": "Image on categorical and log axes"}, |
| 29 | + "grid": {"rows": 2, "columns": 1, "pattern": "independent"}, |
| 30 | + "xaxis2": {"type": "log"}, |
| 31 | + "yaxis2": {"type": "log"} |
| 32 | + } |
| 33 | +} |
0 commit comments