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);
134 dogrid = this_curve -> show_grid[
ax];
135 x_shift = this_curve -> labels_shift_x[
ax];
136 y_shift = this_curve -> labels_shift_y[
ax];
139 if (this_curve -> ticks_io[
ax] == 1)
141 amint = this_curve -> mint_size[
ax];
142 amajt = this_curve -> majt_size[
ax];
146 amint = - this_curve -> mint_size[
ax];
147 amajt = - this_curve -> majt_size[
ax];
150 labpos = this_curve -> labels_pos[
ax];
165 show_frame (cr, this_curve -> frame_type, this_curve -> frame_dash,
resol,
166 this_curve -> frame_thickness, this_curve -> frame_pos[0], this_curve -> frame_pos[1], this_curve -> frame_color);
170 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_curve -> labels_font[0]));
172 if (this_curve ->
scale[0] == 0)
182 cairo_move_to (cr,
x_min +
XDRAW / 2.0 + this_curve -> axis_title_x[0],
y_min + this_curve -> axis_title_y[0]);
183 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_curve -> axis_title_font[0]));
184 pango_layout_set_markup (
layout, this_curve -> axis_title[0], -1);
186 pango_cairo_update_layout (cr,
layout);
187 pango_cairo_show_layout (cr,
layout);
193 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_curve -> labels_font[1]));
195 if (this_curve ->
scale[1] == 0)
203 cairo_move_to (cr,
x_min - this_curve -> axis_title_x[1],
y_min +
YDRAW/2 - this_curve -> axis_title_y[1]);
204 pango_layout_set_font_description (
layout, pango_font_description_from_string (this_curve -> axis_title_font[1]));
205 pango_layout_set_markup (
layout, this_curve -> axis_title[1], -1);
206 cairo_rotate (cr, -
pi/2.0);
207 pango_cairo_update_layout (cr,
layout);
208 pango_cairo_show_layout (cr,
layout);
210 cairo_rotate (cr,
pi/2.0);
211 pango_cairo_update_layout (cr,
layout);
void setup_xaxis_log(cairo_t *cr, Curve *this_curve, 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