BLT3.0/Linux: multiple axis overlapping
Brought to you by:
ghowlett
The code below produces a graph with two overlapping y-axis on the same side, although the titles are at the correct places.
package require BLT
pack [blt::graph .plot]
.plot axis create y3 -hide no -use y -color red -title Y3 -titlecolor red
.plot axis configure y -title Y
I think the file blt/src/bltGrAxis.c should be patched and in function AxisOffests cases in switch operator should be replaced with:
case MARGIN_TOP:
axisLine = graphPtr->top - offset - pad;
...
case MARGIN_BOTTOM:
axisLine = graphPtr->bottom + offset;
...
case MARGIN_LEFT:
axisLine = graphPtr->left - offset;
...
case MARGIN_RIGHT:
axisLine = graphPtr->right + offset + pad;