0
我看不出如何定位跨PANEL1,是Panel2,·Panel3中新panel4右側繪製我的y軸:如何在佈局的右側創建繪製圖表Y軸的面板?
plot: [
pen green line 5x404 5x440 pen gold fill-pen 0.255.0 box 3x424 7x418 line 10x396 10x422 pen gold fill-pen 0.255.0 box 8x418 12x402 line 15x397 15x436 pen gold fill-pen 255.0.0 box 13x401 17x435 line 20x429 20x447 pen gold fill-pen 255.0.0 box 18x434 22x446 line 25x441 25x464 pen gold fill-pen 255.0.0 box 23x446 27x463 line 30x445 30x493 pen gold fill-pen 255.0.0 box 28x461 32x482 line 35x470 35x504 pen gold fill-pen 255.0.0 box 33x481 37x492 line 40x466 40x498 pen gold fill-pen 0.255.0 box 38x491 42x477
]
grid: [1100 600]
step-grid: 5
max-n-points: (grid/1/step-grid) - 1
x-axis-border: 20
Y-margin: 10
X0: 5
grid-color: coal
main: layout/size [
origin 0x0
space 1x1
panel1: box 1100x580 black effect reduce [
'line-pattern 4 4
'grid 30x30 0x0 (grid-color)
'draw plot
]
panel2: box 1100x0 black
panel3: box 1100x20 black
;answer thanks to Graham
across
at 1100x0
panel4: box 40x600 black effect [draw [pen coal line 0x0 0x580]]
] 1140x600
view main
謝謝它的工作!更新代碼:跨 at 1100x0 panel4:盒子40x600黑色效果[畫[筆煤線0x0 0x580]] – 2010-09-07 16:05:24
現在就可以編寫教程了! – 2010-09-07 16:06:35
橫向爲你自動水平放置東西,所以你不需要'at。 'at'將繞過自動佈局。 '需要跨越第一個盒子。 – 2010-09-07 23:40:36