IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27713


Ignore:
Timestamp:
Apr 20, 2010, 10:10:43 AM (16 years ago)
Author:
eugene
Message:

plotting improvements

Location:
branches/eam_branches/Ohana.20100407/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/Ohana.20100407/src/kapa2/doc/mark.issues.txt

    r27693 r27713  
    11
     2
     3* need consistency of graph defaults : axis, tick, labels should come from kapa
     4* clear should erase current plot
    25
    36-> The "plot" command needs to be fixed so that boundaries of contours do
  • branches/eam_branches/Ohana.20100407/src/kapa2/src/Graphs.c

    r27693 r27713  
    2222    graph[0].axis[i].pad = NAN;
    2323  }   
     24  graph[0].data.ticktextPad = NAN;
     25  graph[0].data.labelPad = NAN;
     26  graph[0].data.padXm = NAN;
     27  graph[0].data.padXp = NAN;
     28  graph[0].data.padYm = NAN;
     29  graph[0].data.padYp = NAN;
     30
    2431  for (i = 0; i < 8; i++) {
    2532    strcpy (graph[0].label[i].text, "");
  • branches/eam_branches/Ohana.20100407/src/kapa2/src/SetGraphData.c

    r27693 r27713  
    1414  if (section->graph == NULL) {
    1515    section->graph = InitGraph ();
     16    fprintf (stderr, "pad: %f %f %f\n", section->graph->axis[0].pad, section->graph->axis[0].labelPad, section->graph->axis[0].ticktextPad);
    1617    SetSectionSizes (section);
     18    fprintf (stderr, "pad: %f %f %f\n", section->graph->axis[0].pad, section->graph->axis[0].labelPad, section->graph->axis[0].ticktextPad);
    1719  }
    1820  graph = section->graph;
     21  fprintf (stderr, "pad: %f %f %f\n", section->graph->axis[0].pad, section->graph->axis[0].labelPad, section->graph->axis[0].ticktextPad);
    1922 
    2023  // get graph data from client
     
    3639                  &graph[0].data.padYm,
    3740                  &graph[0].data.padYp);
     41
     42  for (i = 0; i < 4; i++) {
     43    graph[0].axis[i].ticktextPad = graph[0].data.ticktextPad;
     44    graph[0].axis[i].labelPad = graph[0].data.labelPad;
     45  }   
     46  graph[0].axis[0].pad = graph[0].data.padXm;
     47  graph[0].axis[1].pad = graph[0].data.padYm;
     48  graph[0].axis[2].pad = graph[0].data.padXp;
     49  graph[0].axis[3].pad = graph[0].data.padYp;
    3850
    3951  KiiScanMessage (sock, "%lf %lf %lf %lf",
  • branches/eam_branches/Ohana.20100407/src/libkapa/src/IOfuncs.c

    r27588 r27713  
    11# include <kapa_internal.h>
    2 # define DEBUG 0
     2# define DEBUG 1
    33
    44/** these function expect to operate with a BLOCKing socket **/
  • branches/eam_branches/Ohana.20100407/src/opihi/cmd.data/box.c

    r27693 r27713  
    4040  }
    4141
    42   // strcpy (graphmode.ticks, "2222");
     42  // XXX need to get the current values from kapa
     43  strcpy (graphmode.ticks, "2222");
    4344  if ((N = get_argument (argc, argv, "-ticks"))) {
    4445    remove_argument (N, &argc, argv);
     
    5152  }
    5253 
    53   // strcpy (graphmode.labels, "2222");
     54  strcpy (graphmode.labels, "2222");
    5455  if ((N = get_argument (argc, argv, "-labels"))) {
    5556    remove_argument (N, &argc, argv);
     
    6263  }
    6364
    64   // strcpy (graphmode.axis, "2222");
     65  strcpy (graphmode.axis, "2222");
    6566  if ((N = get_argument (argc, argv, "-axis"))) {
    6667    remove_argument (N, &argc, argv);
Note: See TracChangeset for help on using the changeset viewer.