Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Clear separation of trainining passes (resolves fixme) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
10fe2857c03c071c380809dec4adf860 |
| User & Date: | jack 2023-05-17 16:07:03 |
Context
|
2024-05-14
| ||
| 08:13 | [wip] minor tweaks, resume development check-in: 19689689ea user: jack tags: master, trunk | |
|
2023-05-17
| ||
| 16:07 | Clear separation of trainining passes (resolves fixme) check-in: 10fe2857c0 user: jack tags: master, trunk | |
| 15:43 | Implement a preliminary version of faceting We can spread the data across multiple renders. Current issues: - theme has a problem with external formatting-items (clim bug?) - resizing and moving charts is broken (ditto) - the number of columns is not configurable at the moment - currently we do two full passes over all layers in a facet check-in: eed0b7585b user: jack tags: master, trunk | |
Changes
Changes to Code/layer.lisp.
| ︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
(aesthetics
dataset
statistical-transformation
position-adjustment)
(:default-initargs :statistical-transformation +stat-identity+
:position-adjustment +position-identity+))
(defun layer-aesthetics (plot layer)
(loop with aesthetics = (append (aesthetics layer) (aesthetics plot))
for (aes src) on aesthetics by #'cddr
unless (member aes keys)
collect aes into keys
and append (list aes src) into result
finally (return result)))
(defun layer-dataset (plot layer)
(or (dataset layer) (dataset plot)))
(defun train-layer (plot facet layer)
(let ((dataset (dataset facet))
(aesthetics (layer-aesthetics plot layer))
(scales (scales plot))
(stat-tr (statistical-transformation layer))
(pos-adj (position-adjustment layer)))
(setf dataset (bind-data aesthetics dataset)
| > > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
(aesthetics
dataset
statistical-transformation
position-adjustment)
(:default-initargs :statistical-transformation +stat-identity+
:position-adjustment +position-identity+))
;;; FIXME replace this call with constructing a mapping function.
(defun layer-aesthetics (plot layer)
(loop with aesthetics = (append (aesthetics layer) (aesthetics plot))
for (aes src) on aesthetics by #'cddr
unless (member aes keys)
collect aes into keys
and append (list aes src) into result
finally (return result)))
(defun layer-dataset (plot layer)
(or (dataset layer) (dataset plot)))
#+ (or) ; obsolete
(defun train-layer (plot facet layer)
(let ((dataset (dataset facet))
(aesthetics (layer-aesthetics plot layer))
(scales (scales plot))
(stat-tr (statistical-transformation layer))
(pos-adj (position-adjustment layer)))
(setf dataset (bind-data aesthetics dataset)
|
| ︙ | ︙ |
Changes to Code/plot.lisp.
| ︙ | ︙ | |||
26 27 28 29 30 31 32 |
;; good for rendering, bad for mutations
(train-layer plot layer))
(train-layer plot layer)))
(defun train-facets (plot)
(dolist (layer (layers plot))
(compute-facets plot layer)
| < < > > > > > > > > | > > | > > | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
;; good for rendering, bad for mutations
(train-layer plot layer))
(train-layer plot layer)))
(defun train-facets (plot)
(dolist (layer (layers plot))
(compute-facets plot layer)
(do-facets (facet plot)
(let* ((dataset (dataset facet))
(scales (scales facet))
(aesthetics (layer-aesthetics plot layer))
(stat-tr (statistical-transformation layer))
(dataset/m (bind-data aesthetics dataset)))
(scale-data scales dataset/m)
(stat-data stat-tr dataset/m)
(train-scales scales dataset/m)
(setf (trained-dataset facet layer) dataset/m)))
(do-facets (facet plot)
(let ((scales (scales facet))
(pos-adj (position-adjustment layer))
(dataset/m (trained-dataset facet layer)))
(map-scales scales dataset/m)
(adjust-data pos-adj layer dataset/m)))))
(defmethod print-object ((plot <polyclot>) stream)
(print-unreadable-object (plot stream :type t :identity nil)
(format stream "~s" (title plot))))
(c:define-presentation-method c:present ((plot <polyclot>)
(type <polyclot>)
|
| ︙ | ︙ |