comparison src/pt-plot.h @ 872:fb24794ef0e2

[project @ 1994-11-04 00:59:24 by jwe]
author jwe
date Fri, 04 Nov 1994 00:59:24 +0000
parents 07e689d6e7e5
children e8a677c3f042
comparison
equal deleted inserted replaced
871:1a137429b26e 872:fb24794ef0e2
39 class subplot; 39 class subplot;
40 class subplot_list; 40 class subplot_list;
41 41
42 #include <SLList.h> 42 #include <SLList.h>
43 43
44 #include "dColVector.h"
45
46 #include "idx-vector.h"
44 #include "tree-cmd.h" 47 #include "tree-cmd.h"
45 #include "tree-expr.h" 48 #include "tree-expr.h"
46 49
47 class 50 class
48 tree_plot_command : public tree_command 51 tree_plot_command : public tree_command
115 118
116 subplot_using *set_format (tree_expression *fmt); 119 subplot_using *set_format (tree_expression *fmt);
117 120
118 subplot_using *add_qualifier (tree_expression *t); 121 subplot_using *add_qualifier (tree_expression *t);
119 122
123 int eval (int ndim, int n_max);
124
125 ColumnVector values (int ndim, int n_max = 0);
126
120 int print (int ndim, int n_max, ostrstream& plot_buf); 127 int print (int ndim, int n_max, ostrstream& plot_buf);
121 128
122 void print_code (ostream& os); 129 void print_code (ostream& os);
123 130
124 private: 131 private:
125 int qualifier_count; 132 int qualifier_count;
126 tree_expression *x[4]; 133 tree_expression *x[4];
127 tree_expression *scanf_fmt; 134 tree_expression *scanf_fmt;
135 int have_values;
136 ColumnVector val;
128 }; 137 };
129 138
130 class 139 class
131 subplot_style : public tree_print_code 140 subplot_style : public tree_print_code
132 { 141 {
138 147
139 ~subplot_style (void); 148 ~subplot_style (void);
140 149
141 int print (ostrstream& plot_buf); 150 int print (ostrstream& plot_buf);
142 151
152 int errorbars (void);
153
143 void print_code (ostream& os); 154 void print_code (ostream& os);
144 155
145 private: 156 private:
146 char *style; 157 char *style;
147 tree_expression *linetype; 158 tree_expression *linetype;
187 198
188 void set_data (tree_expression *data) 199 void set_data (tree_expression *data)
189 { plot_data = data; } 200 { plot_data = data; }
190 201
191 int print (int ndim, ostrstream& plot_buf); 202 int print (int ndim, ostrstream& plot_buf);
203
204 tree_constant extract_plot_data (int ndim, tree_constant& data);
205
206 int handle_plot_data (int ndim, ostrstream& plot_buf);
192 207
193 void print_code (ostream& os); 208 void print_code (ostream& os);
194 209
195 private: 210 private:
196 tree_expression *plot_data; 211 tree_expression *plot_data;