94 cairo_move_to (cd, x1, y2);
95 cairo_line_to (cd, x2, y2);
96 cairo_line_to (cd, x2, y1);
97 cairo_line_to (cd, x1, y1);
98 cairo_line_to (cd, x1, y2);
101 cairo_move_to (cd, x1, y2);
102 cairo_line_to (cd, x1, y1);
103 cairo_line_to (cd, x2, y1);
104 cairo_line_to (cd, x2, y2);
107 cairo_move_to (cd, x1, y2);
108 cairo_line_to (cd, x1, y1);
109 cairo_line_to (cd, x2, y1);
112 cairo_move_to (cd, x2, y2);
113 cairo_line_to (cd, x2, y1);
114 cairo_line_to (cd, x1, y1);
117 cairo_move_to (cd, x1, y1);
118 cairo_line_to (cd, x2, y1);
137 x_shift = this_proj -> curves[rid][cid] -> labels_shift_x[
ax];
138 y_shift = this_proj -> curves[rid][cid] -> labels_shift_y[
ax];
140 nticks = this_proj -> curves[rid][cid] -> mint[
ax];
141 if (this_proj -> curves[rid][cid] -> ticks_io[
ax] == 1)
143 amint = this_proj -> curves[rid][cid] -> mint_size[
ax];
144 amajt = this_proj -> curves[rid][cid] -> majt_size[
ax];
148 amint = - this_proj -> curves[rid][cid] -> mint_size[
ax];
149 amajt = - this_proj -> curves[rid][cid] -> majt_size[
ax];
151 tickpos = this_proj -> curves[rid][cid] -> ticks_pos[
ax];
152 labpos = this_proj -> curves[rid][cid] -> labels_pos[
ax];
168 this_proj -> curves[rid][cid] -> frame_type,
169 this_proj -> curves[rid][cid] -> frame_dash,
171 this_proj -> curves[rid][cid] -> frame_thickness,
172 this_proj -> curves[rid][cid] -> frame_pos[0],
173 this_proj -> curves[rid][cid] -> frame_pos[1],
174 this_proj -> curves[rid][cid] -> frame_color);
179 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_proj -> curves[rid][cid] -> labels_font[0]));
181 if (this_proj -> curves[rid][cid] ->
scale[0] == 0)
192 x_min +
XDRAW / 2.0 + this_proj -> curves[rid][cid] -> axis_title_x[0],
193 y_min + this_proj -> curves[rid][cid] -> axis_title_y[0]);
194 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_proj -> curves[rid][cid] ->
axis_title_font[0]));
195 pango_layout_set_text (
layout, this_proj -> curves[rid][cid] ->
axis_title[0], -1);
196 pango_cairo_update_layout (cr,
layout);
197 pango_cairo_show_layout (cr,
layout);
203 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_proj -> curves[rid][cid] -> labels_font[1]));
205 if (this_proj -> curves[rid][cid] ->
scale[1] == 0)
214 x_min - this_proj -> curves[rid][cid] -> axis_title_x[1],
215 y_min +
YDRAW/2 - this_proj -> curves[rid][cid] -> axis_title_y[1]);
216 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_proj -> curves[rid][cid] ->
axis_title_font[1]));
217 pango_layout_set_text (
layout, this_proj -> curves[rid][cid] ->
axis_title[1], -1);
218 cairo_rotate (cr, -
pi/2.0);
219 pango_cairo_update_layout (cr,
layout);
220 pango_cairo_show_layout (cr,
layout);
222 cairo_rotate (cr,
pi/2.0);
223 pango_cairo_update_layout (cr,
layout);
void setup_yaxis_log(cairo_t *cr, project *this_proj, int rid, int cid, gboolean draw_it)
setup y axis using a log scale
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 show_frame(cairo_t *cd, int tf, int da, int res[2], double ti, double x[2], double y[2], ColRGBA dcol)
draw frame