Changeset 2295 in Sophya


Ignore:
Timestamp:
Dec 10, 2002, 3:01:45 PM (23 years ago)
Author:
ansari
Message:

Amelioration options/flags axes - Reza 12/10/02

Location:
trunk/SophyaPI/PI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piaxes.cc

    r2216 r2295  
    154154
    155155    // Longueur des ticks
    156    
     156    if (flags&kTicks) flags |= kExtTicks;
    157157    double extXMajTickLen = flags&kExtTicks ? xMajTickLen : 0;
    158158    double intXMajTickLen = flags&kIntTicks ? xMajTickLen : 0;
  • trunk/SophyaPI/PI/pieldrw.cc

    r2264 r2295  
    529529    else if (opts == "fineaxes")
    530530      SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks);
    531     else if ((opts == "grid") || (opts == "fineaxesgrid"))
     531    else if (opts == "fineaxesgrid")
    532532      SetAxesFlags(kBoxAxes | kTicks | kLabels | kMinTicks | kMajTicks | kGridOn);
    533533    else if (opts == "centeredaxes")
     
    541541    else if (opts == "axesnone")
    542542      SetAxesFlags(kAxesNone);
     543    else if (opts == "labels")
     544      SetAxesFlags(GetAxesFlags() | kLabels);
     545    else if (opts == "nolabels")
     546      SetAxesFlags(GetAxesFlags() & ~kLabels);
     547    else if (opts == "ticks")
     548      SetAxesFlags(GetAxesFlags() | kTicks);
     549    else if (opts == "noticks")
     550      SetAxesFlags(GetAxesFlags() & ~kTicks);
     551    else if (opts == "minorticks")
     552      SetAxesFlags(GetAxesFlags() | kMinTicks);
     553    else if (opts == "nominorticks")
     554      SetAxesFlags(GetAxesFlags() & ~kMinTicks);
     555    else if (opts == "extticks")
     556      SetAxesFlags(GetAxesFlags() | kExtTicks);
     557    else if (opts == "intticks")
     558      SetAxesFlags(GetAxesFlags() | kIntTicks);
     559    else if (opts == "grid")
     560      SetAxesFlags(GetAxesFlags() | kGridOn);
     561    else if (opts == "nogrid")
     562      SetAxesFlags(GetAxesFlags() & ~kGridOn);
    543563    else if (opts == "autofontsize")
    544564      SetAxesAutoFontSize(true);
Note: See TracChangeset for help on using the changeset viewer.