1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #!/bin/bash
- TARGETS=("demo1" "demo2" "demo3")
- demo3() {
- # http://plplot.org/docbook-manual/plplot-html-5.15.0/devices.html#specifying-devices
- PYTHONPATH=./src PLPLOT_DEV="tk" ./build/demo3
- }
- demo2() {
- PYTHONPATH=./src ./build/demo2
- }
- demo1() {
- python3 src/demo1_get-price.py
- }
- # determine target from argument
- if [[ " ${TARGETS[@]} " =~ " $1 " ]]; then
- "$1"
- else
- echo "Available targets: ${TARGETS[*]}"
- echo "Usage: $0 [target]"
- fi
- # Plotting Options:
- # -----------------
- # < 1> xwin X-Window (Xlib)
- # < 2> tk Tcl/TK Window
- # < 3> ps PostScript File (monochrome)
- # < 4> psc PostScript File (color)
- # < 5> xfig Fig file
- # < 6> null Null device
- # < 7> ntk New tk driver
- # < 8> tkwin New tk driver
- # < 9> mem User-supplied memory device
- # <10> svg Scalable Vector Graphics (SVG 1.1)
- # <11> pdf Portable Document Format PDF
- # <12> xcairo Cairo X Windows Driver
- # <13> pdfcairo Cairo PDF Driver
- # <14> pscairo Cairo PS Driver
- # <15> epscairo Cairo EPS Driver
- # <16> svgcairo Cairo SVG Driver
- # <17> pngcairo Cairo PNG Driver
- # <18> memcairo Cairo Memory Driver
- # <19> extcairo Cairo External Context Driver
|