File: docdraw.mac

package info (click to toggle)
maxima-sage 5.45.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 113,788 kB
  • sloc: lisp: 440,833; fortran: 14,665; perl: 14,369; tcl: 10,997; sh: 4,475; makefile: 2,520; ansic: 447; python: 262; xml: 59; awk: 37; sed: 17
file content (7 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
wxitornot(fun) ::= buildq([fun:fun, wxfun:concat('wx,fun), docfun:concat(doc,fun), doc_fun:concat(doc_,fun), name:gensym("name_"), x:gensym("args_")],
  block(
    docfun(name,[x]) := if wxplot_size # 'wxplot_size then apply('wxfun,x) else
    ( print("Test:",name), apply('fun,x), if demo=true then (print("Press <enter> to continue."), readline(stdin) )),
    alias(doc_fun,docfun))) ;

map(wxitornot,[draw2d,draw3d,draw,julia,mandelbrot,plot2d,plot,plot3d]);