From fecae1bda692a5b33248316c57369fd4b33a9424 Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Sat, 7 Jan 2017 01:36:30 +0300 Subject: [PATCH] charts: update some comments --- charts.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts.factor b/charts.factor index 1c9bc369f2..2771024ab1 100644 --- a/charts.factor +++ b/charts.factor @@ -7,13 +7,13 @@ TUPLE: chart < gadget ; M: chart pref-dim* drop { 300 300 } ; -! Return the bottom-left and top-right corners of the visible area. +! Return the x and y ranges of the visible area. : chart-axes ( chart -- seq ) drop { { 0 300 } { 0 300 } } ; ! There are several things to do to present data on the screen. ! Map the data coordinates to the screen coordinates. -! Cut off data outside the presentation window. +! Cut off data outside the presentation window. When cutting off vertically, split the line into segments and add new points if necessary. Return an array of line segments. ! Remove redundant points from the drawing pass. ! chart new line new COLOR: blue >>color { { 0 100 } { 100 0 } { 100 50 } { 150 50 } { 200 100 } } >>data add-gadget gadget.