* Well, the groundwork has been laid, but now I can't see my data anymore.
[scdataviz] / graph.h
diff --git a/graph.h b/graph.h
index cbdfe5d..31d441f 100644 (file)
--- a/graph.h
+++ b/graph.h
@@ -53,11 +53,12 @@ struct graph_line {
 };
 
 struct graph_axis {
-  double start;
-  double step;
-  int xminor;
+  double major_start;
+  double major_step;
+  int major;
+  int minor;
   int subminor;
-  GString title;
+  GString *title;
 };
 
 typedef struct _Graph {
@@ -96,6 +97,10 @@ void graph_add_linear_connectors(Graph* graph);
 void graph_bezier_linear_to_cubic(double x0, double x3, double *x1, double *x2);
 /*Provide x0, x1, x2.  x1 and x2 will be set appropriately.*/
 void graph_bezier_quadratic_to_cubic(double x0, double x3, double *x1, double *x2);
+void graph_set_xaxis(Graph *g, struct graph_axis *axis);
+void graph_set_yaxis(Graph *g, struct graph_axis *axis);
+int graph_autoset_xaxis(Graph *g, GString *title);
+int graph_autoset_yaxis(Graph *g, GString *title);