72 label (cr,
cxy[0] + u + v, 0, 0, this_proj);
77 label (cr,
cxy[0] + u + v, 0, 1, this_proj);
82 label (cr,
cxy[0] + u + v, 0, 0, this_proj);
85 label (cr,
cxy[0] + u + v, 0, 1, this_proj);
119 cairo_set_line_width (cr,
GRIDSIZE);
123 prep_frame (cr, this_proj -> curves[rid][cid] -> frame_dash,
124 this_proj -> curves[rid][cid] -> frame_thickness,
125 this_proj -> curves[rid][cid] -> frame_color);
127 if (fmod(u+v,
mticks) != 0.0)
191 if (
cxy[0] >= pow(10, i))
205 for ( l = 0 ; l <
xlog ; l = l + 1 )
207 v = pow (10, l-
dxlog);
211 cairo_set_line_width (cr,
GRIDSIZE);
216 prep_frame (cr, this_proj -> curves[rid][cid] -> frame_dash,
217 this_proj -> curves[rid][cid] -> frame_thickness,
218 this_proj -> curves[rid][cid] -> frame_color);
225 label (cr, v, 0, 0, this_proj);
230 label (cr, v, 0, 1, this_proj);
235 label (cr, v, 0, 0, this_proj);
238 label (cr, v, 0, 1, this_proj);
258 for ( k = 2 ; k < 10 ; k = k + 1 )
263 cairo_set_line_width (cr,
GRIDSIZE);
268 prep_frame (cr, this_proj -> curves[rid][cid] -> frame_dash,
269 this_proj -> curves[rid][cid] -> frame_thickness,
270 this_proj -> curves[rid][cid] -> frame_color);
void label(cairo_t *cr, double val, int axe, int p, project *this_proj)
draw axis label
void setup_xaxis_log(cairo_t *cr, project *this_proj, int rid, int cid, gboolean draw_it)
setup x axis using a log scale
void setup_xaxis_linear(cairo_t *cr, project *this_proj, int rid, int cid)
setup x axis using a linear scale