gtk / cairo-chart

SSH Git

To clone this repository:

git clone git@git.backbone.ws:gtk/cairo-chart.git

To push to this repository:

# Add a new remote
git remote add origin git@git.backbone.ws:gtk/cairo-chart.git

# Push the master branch to the newly added origin, and configure
# this remote and branch as the default:
git push -u origin master

# From now on you can push master to the "origin" remote with:
git push

Commit: #678c60d

Parent: #c7a185b

In progress...

avatar Kolan Sh 13 days ago

Summary

980 980 }
981 981 }
982 982
983 protected virtual void cut_line (Point a, Point b, out Point c, out Point d) {
984 c = a;
985 d = b;
986 }
987
983 988 protected virtual void draw_series () {
984 989 for (int si = 0; si < series.length; ++si) {
985 990 var s = series[si];
1013 1013 for (int i = 1; i < points.length; ++i)
1014 1014 context.line_to (get_scr_x(s, points[i].x), get_scr_y(s, points[i].y));
1015 1015 context.stroke();
1016 for (int i = 0; i < points.length; ++i)
1017 draw_marker_at_pos(s.marker_type, get_scr_x(s, points[i].x), get_scr_y(s, points[i].y));
1016 for (int i = 0; i < points.length; ++i) {
1017 var x = get_scr_x(s, points[i].x);
1018 var y = get_scr_y(s, points[i].y);
1019 if (point_in_square (Point (x, y), plot_area_x_min, plot_area_x_max, plot_area_y_min, plot_area_y_max))
1020 draw_marker_at_pos(s.marker_type, x, y);
1021 }
1018 1022 }
1019 1023 }
1020 1024

Comments