Menu

#148 BLT3.0/Linux: multiple axis overlapping

open
nobody
None
5
2010-03-22
2010-03-22
Anonymous
No

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;

Discussion


Log in to post a comment.