Changeset 881


Ignore:
Timestamp:
Nov 24, 2009, 12:19:52 PM (11 years ago)
Author:
Jari Häkkinen
Message:

Addresses #402. Improved alligment of legend line and text.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Graph.cc

    r878 r881  
    105105    PLFLT dx=0.01*xrange;
    106106    PLFLT x=4*dx+xmin+length;
    107     PLFLT y=(1.-0.05*plots_)*ymax;
     107    PLFLT yrange=(ymax-ymin);
     108    PLFLT dy=0.001*yrange;
     109    PLFLT y=(1.-0.05*plots_)*yrange;
    108110    pls_.col0(1);
    109     pls_.join(x-dx, y, x-dx-length, y);
     111    pls_.join(x-dx, y-3*dy, x-dx-length, y-3*dy);
    110112    pls_.col0(2);
    111113    pls_.ptex(x, y, 0, 0, 0, legend.c_str());
Note: See TracChangeset for help on using the changeset viewer.