John Benediktsson
f75743ecf7
compiler.units: fix modify-code-heap example.
...
Make sure ``foo`` has the same stack effect as the quotation that is
set on ``foo`` with ``modify-code-heap``. The symbol had a stack
effect of ( -- x ) since it pushes itself when it is called. The
quotation in the example had stack effect ( -- ).
2017-05-05 08:38:49 -07:00
John Benediktsson
1898c2bb3a
sequences: fix example for unless-empty.
2017-05-03 18:24:14 -07:00
John Benediktsson
4982bcce27
binary-search: improve example for search.
...
(But use prettyprint, the help.lint.checks patch wasn't ready)
2017-05-03 18:23:05 -07:00
John Benediktsson
7f38fd5ae9
Revert "binary-search: improve example for search."
...
This reverts commit aac6780285
.
2017-05-03 18:21:31 -07:00
John Benediktsson
e1b7d5db1f
Revert "help.lint.checks: prettyprints the examples stack automatically."
...
This reverts commit 1f4bcc2d56
.
2017-05-03 18:21:25 -07:00
John Benediktsson
aac6780285
binary-search: improve example for search.
2017-05-03 18:16:38 -07:00
John Benediktsson
1f4bcc2d56
help.lint.checks: prettyprints the examples stack automatically.
...
This allows us to not have to "USE: prettyprint" and "." in the examples.
Much cleaner this way!
2017-05-03 18:15:36 -07:00
John Benediktsson
0fd663e25d
editors.emacs: add an emacsclient-args on request.
2017-05-03 18:14:28 -07:00
John Benediktsson
0f52366466
math: fix stack effect for unless-zero and when-zero.
2017-05-03 18:13:37 -07:00
Alexander Iljin
e44104c8d2
calendar.format: restore the deleted duration>hm
...
It was replaced with duration>hms, but the version without the seconds is
also useful.
2017-04-25 15:38:51 -04:00
Alexander Iljin
717a49c365
ui.gadgets.charts.lines: add a division by zero test for calc-line-slope
2017-04-17 13:54:51 -07:00
Alexander Iljin
07f35d95ac
ui.gadgets.charts.axes: replace boolean property with subclasses
...
The vertical? property of the axis tuple was replaced with two subclasses:
vertical-axis and horizontal-axis.
2017-04-17 13:54:51 -07:00
Alexander Iljin
c91d7dbcb9
ui.gadgets.charts.lines: make black the default line color
...
Prevent crash if the color slot is empty.
2017-04-17 13:54:51 -07:00
Alexander Iljin
90a7ce9120
ui.gadgets.charts.utils: move some common code to the new vocab
2017-04-17 13:54:51 -07:00
Alexander Iljin
90087cebc1
ui.gadgets.charts.[axes|demos]: add simple axis drawing
2017-04-17 13:54:51 -07:00
Alexander Iljin
dd3fcfdadf
ui.gadgets.charts.axes: initial import
2017-04-17 13:54:51 -07:00
Alexander Iljin
a050823f29
Move charts* to ui.gadgets.charts* in the resource:extra root
2017-04-17 13:54:51 -07:00
Alexander Iljin
ecbb04d3fb
charts.demo: add a red cosine wave to the demo chart
2017-04-17 13:54:51 -07:00
Alexander Iljin
ce403e1f75
charts.lines: fix edge cases for fix-left-chunk and fix-right-chunk
2017-04-17 13:54:51 -07:00
Alexander Iljin
42e0224258
charts.lines: add a test for y-in-bounds?
2017-04-17 13:54:51 -07:00
Alexander Iljin
59f35e4d97
charts.demos: add demo vocab
2017-04-17 13:54:51 -07:00
Alexander Iljin
c2f8572393
charts: add optional axes slot
2017-04-17 13:54:51 -07:00
Alexander Iljin
0c9cb2f0a7
charts.lines-docs: add documentation
2017-04-17 13:54:51 -07:00
Alexander Iljin
df3d0ec8a5
charts.lines: add clip-data tests, fix implementation of left-cut-x
2017-04-17 13:54:51 -07:00
Alexander Iljin
6fee00014f
charts.lines: update some names
...
left-cut -> left-cut-x, min -> xmin; right-cut -> right-cut-x, max -> xmax.
2017-04-17 13:54:51 -07:00
Alexander Iljin
b0ec86be44
charts.lines: use x and y instead of first and second
2017-04-17 13:54:51 -07:00
Alexander Iljin
4fda623f51
charts.lines: fix some comments
2017-04-17 13:54:51 -07:00
Alexander Iljin
6aa7aad5b1
charts.lines: remove middle and its tests
2017-04-17 13:54:51 -07:00
John Benediktsson
3e6a6c189c
charts.lines: some cleanup
2017-04-17 13:54:51 -07:00
Alexander Iljin
41f520d606
charts: scale the chart to the gadget size
2017-04-17 13:54:51 -07:00
Alexander Iljin
88b1770cca
charts: add BSD license headers
2017-04-17 13:54:51 -07:00
Alexander Iljin
8658ec83fc
charts.lines: add scale-chunks
2017-04-17 13:54:51 -07:00
Alexander Iljin
22413dfa58
charts: add chart-dim
2017-04-17 13:54:51 -07:00
Alexander Iljin
664922ca21
charts.lines: add scale
2017-04-17 13:54:51 -07:00
Alexander Iljin
467bc37137
charts.lines: add flip-y-axis
2017-04-17 13:54:51 -07:00
Alexander Iljin
be999902fd
charts.lines: more tests for drawable-chunks
2017-04-17 13:54:51 -07:00
Alexander Iljin
79da6e1442
charts.lines: add tests for fix-right-chunk, fix implementation
2017-04-17 13:54:51 -07:00
Alexander Iljin
37ec09dd7a
charts.lines: add tests for fix-left-chunk, fix implementation
2017-04-17 13:54:51 -07:00
Alexander Iljin
cfd271aa88
charts.lines: add tests for 2-point-chunk
2017-04-17 13:54:51 -07:00
Alexander Iljin
29a8b9285b
charts.lines: add tests for drawable-chunks
2017-04-17 13:54:50 -07:00
Alexander Iljin
f366f1f790
charts.lines: make each2* output the last element
2017-04-17 13:54:50 -07:00
Alexander Iljin
5a3ae9099d
charts.lines: implement (drawable-chunks)
2017-04-17 13:54:50 -07:00
Alexander Iljin
8a87a8077e
charts.lines: reduce the amount of data copying in draw-lines
2017-04-17 13:54:50 -07:00
Alexander Iljin
5c0fa9c94e
charts.lines: add fix-left-chunk and fix-right-chunk
2017-04-17 13:54:50 -07:00
Alexander Iljin
48304ce5b5
charts.lines: add 2-point-chunk
2017-04-17 13:54:50 -07:00
Alexander Iljin
e11cf1a60b
charts.lines: add x and y aliases
2017-04-17 13:54:50 -07:00
Alexander Iljin
e645990eed
charts.lines: add calc-x
2017-04-17 13:54:50 -07:00
Alexander Iljin
d3e671565f
charts.lines: add extra points where necessary for drawing
2017-04-17 13:54:50 -07:00
Alexander Iljin
ff0c2fdf32
charts.lines: drop slices that are out of y range in drawable-chunks
2017-04-17 13:54:50 -07:00
Alexander Iljin
cb2fbac778
charts.lines: preliminary implementation of drawable-chunks
2017-04-17 13:54:50 -07:00