|
14 | 14 | "contours": {
|
15 | 15 | "coloring": "heatmap"
|
16 | 16 | },
|
17 |
| - "reversescale": true |
| 17 | + "reversescale": true, |
| 18 | + "colorbar": { |
| 19 | + "len": 0.5, |
| 20 | + "y": 1, |
| 21 | + "yanchor": "top", |
| 22 | + "title": {"text": "trace colorscale", "side": "right"} |
| 23 | + } |
| 24 | + }, |
| 25 | + { |
| 26 | + "z": [ |
| 27 | + [ 10, 10.625, 12.5, 15.625, 20 ], |
| 28 | + [ 5.625, 6.25, 8.125, 11.25, 15.625 ], |
| 29 | + [ 2.5, 3.125, 5, 8.125, 12.5 ], |
| 30 | + [ 0.625, 1.25, 3.125, 6.25, 10.625 ], |
| 31 | + [ 0, 0.625, 2.5, 5.625, 10 ] |
| 32 | + ], |
| 33 | + "x": [ -9, -6, -5, -3, -1 ], |
| 34 | + "y": [ 0, 1, 4, 5, 7 ], |
| 35 | + "type": "contour", |
| 36 | + "contours": { |
| 37 | + "coloring": "heatmap" |
| 38 | + }, |
| 39 | + "coloraxis": "coloraxis", |
| 40 | + "xaxis": "x2", |
| 41 | + "yaxis": "y2" |
18 | 42 | }
|
19 | 43 | ],
|
20 | 44 | "layout": {
|
| 45 | + "grid": {"rows": 2, "columns": 1, "pattern": "independent"}, |
21 | 46 | "title": {
|
22 | 47 | "text": "Setting the X and Y Coordinates in a Contour Plot + reverse scale"
|
| 48 | + }, |
| 49 | + "coloraxis": { |
| 50 | + "reversescale": true, |
| 51 | + "colorbar": { |
| 52 | + "len": 0.5, |
| 53 | + "y": 0, |
| 54 | + "yanchor": "bottom", |
| 55 | + "title": {"text": "coloraxis colorscale", "side": "right"} |
| 56 | + } |
23 | 57 | }
|
24 | 58 | }
|
25 | 59 | }
|
0 commit comments