charts: update some comments
parent
4b416f1a5a
commit
fecae1bda6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue