IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40106 for trunk


Ignore:
Timestamp:
Aug 7, 2017, 9:31:17 AM (9 years ago)
Author:
eugene
Message:

add plot types for histogram bars (solid, outline, outfill)

Location:
trunk/Ohana/src/libkapa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libkapa/include/kapa.h

    r39926 r40106  
    3838// retain historical numerical definitions:
    3939typedef enum {
    40   KAPA_PLOT_INVALID_MIN = -1,
    41   KAPA_PLOT_CONNECT     =  0,
    42   KAPA_PLOT_HISTOGRAM   =  1,
    43   KAPA_PLOT_POINTS      =  2,
    44   KAPA_PLOT_INVALID_MAX =  3,
     40  KAPA_PLOT_INVALID_MIN  = -1,
     41  KAPA_PLOT_CONNECT      =  0,
     42  KAPA_PLOT_HISTOGRAM    =  1,
     43  KAPA_PLOT_BARS_SOLID   =  2,
     44  KAPA_PLOT_BARS_OUTLINE =  3,
     45  KAPA_PLOT_BARS_OUTFILL =  4,
     46  KAPA_PLOT_POINTS       =  5,
     47  KAPA_PLOT_INVALID_MAX  =  6,
    4548} KapaPlotStyle;
    4649
  • trunk/Ohana/src/libkapa/src/KapaStyles.c

    r39926 r40106  
    4646  if (!strcasecmp (string,  "line"))      return KAPA_PLOT_CONNECT;
    4747  if (!strcasecmp (string,  "histogram")) return KAPA_PLOT_HISTOGRAM;
     48
     49  if (!strcasecmp (string,  "bars"))  return KAPA_PLOT_BARS_SOLID;
     50  if (!strcasecmp (string,  "obars")) return KAPA_PLOT_BARS_OUTLINE;
     51  if (!strcasecmp (string,  "fbars")) return KAPA_PLOT_BARS_OUTFILL;
     52  if (!strcasecmp (string,  "bars_outline")) return KAPA_PLOT_BARS_OUTLINE;
     53  if (!strcasecmp (string,  "bars_outfill")) return KAPA_PLOT_BARS_OUTFILL;
     54  if (!strcasecmp (string,  "outline")) return KAPA_PLOT_BARS_OUTLINE;
     55  if (!strcasecmp (string,  "outfill")) return KAPA_PLOT_BARS_OUTFILL;
    4856
    4957  if (strlen(string) > 2) {
Note: See TracChangeset for help on using the changeset viewer.