Is the Quicklisp version of the Common Lisp library plot incomplete? #46
1. Quick-plot doesn't compilea) Dated Quicklisp version?In the ; caught ERROR:
; READ error during COMPILE-FILE: Symbol "MERGE-PLISTS" not found in the VEGA package. Line: 25, Column: 41, File-Position: 954 Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /home/.../quick-plot/qplot.lisp" {1001090653}>b) Also incomplete Github version?And in the ; caught ERROR: ; READ error during COMPILE-FILE: Symbol "MAKE-PLOT-FROM-SPEC" not found in the VEGA package. Line: 28, Column: 40, File-Position: 1073 Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /home/.../quick-plot/qplot.lisp" {10048F0B73}>So this crucial function in (defun qplot (name data &rest layers)
"Quick plot for iterative REPL exploration. Merges LAYERS into a Vega-Lite spec, constructs a plot object, and returns it.
EXAMPLE:
(qplot 'cars vgcars
`(:title \"HP vs MPG\")
(scatter-plot :horsepower :miles-per-gallon :filled t)
(labs :x \"Horsepower\" :y \"MPG\"))
NAME is passed through to VEGA:MAKE-PLOT-FROM-SPEC as the plot name. The
returned plot is not registered, displayed, or bound globally. Use PLOT:PLOT
explicitly to display it.
Bind QPLOT::*QPLOT-DEBUG* to T to see the merged spec before the plot object
is returned."
(let* ((spec (apply #'vega:merge-plists ; <---
`(:data (:values ,data))
layers))
(plot (vega:make-plot-from-spec spec :name name))) ; <---
(when *qplot-debug*
(pprint spec))
plot))2. By the way: README.md should be updated?In the README.md of the Lisp-Stat Github repository, the following line should be integrated in the list of clone instructions: git clone https://github.com/Lisp-Stat/stat-generics.gitOtherwise: CL-USER> (asdf:clear-source-registry)
; No value
CL-USER> (asdf:load-system :lisp-stat)
; Evaluation aborted on Component #:STAT-GENERICS not found, required by
; #<SYSTEM "statistics/streaming">. |
Replies: 1 comment 1 reply
|
Thanks for this. Good catch on the Note that the documentation hasn't caught up with the code and the best way to understand the new functionality in |
Thanks for this.
quick-plotis deprecated and its functionality has been folded into the mainplotsystem. I updated the README to explain that and marked the repository as 'archived'.Good catch on the
lisp-stat/READMEerror. I've corrected that too.Note that the documentation hasn't caught up with the code and the best way to understand the new functionality in
plotis by using the quickplot examples but theplotpackage instead ofqplot. Updating this page shouldn't be that difficult. I'll add this as an issue to the documentation and plot pages in case someone in the community wants to update before I get to it (my new day job has me flat-chat at the moment).