view GEMBASSY-1.0.3/include/gplot.h @ 1:84a17b3fad1f draft

Uploaded
author ktnyt
date Fri, 26 Jun 2015 05:20:29 -0400
parents 8300eb051bea
children
line wrap: on
line source

#ifndef GPLOT_H
#define GPLOT_H

#include "emboss.h"

/* @datastatic gPlotParams*****************************************************
**
** gPlot plotting parameters
**
** @attr data [float**] Data used to plot
** @attr setNum [size_t] Number of data sets
** @attr typeNum [size_t] Number of data types
** @attr dataNum [size_t] Number of data in set
** @attr height [ajint] Height of graph - To be supported
** @attr width [ajint] Width of graph - To be supported
** @attr title [AjPStr] Graph title
** @attr xlab [AjPStr] Label for X axis
** @attr ylab [AjPStr] Label for Y axis
** @attr names [AjPPStr] name of each data type
** @@
******************************************************************************/

typedef struct gPlotStruct
{
  float **data;
  size_t  setNum;
  size_t  typeNum;
  size_t  dataNum;
  /*ajint   width  Not supported yet! ;*/
  /*ajint   height Not supported yet! ;*/
  AjPStr  title;
  AjPStr  xlab;
  AjPStr  ylab;
  AjPPStr names;
} gPlotParams;

/*
** Prototype Definitions
*/

AjBool gPlotFilebuff(AjPFilebuff buff, AjPGraph graphs, gPlotParams *gpp);
AjBool gPlotData(AjPGraph graphs, gPlotParams *gpp);
AjBool gPlotFlip(gPlotParams *gpp);

#endif