<11> pngcairo Cairo PNG Driver works, but it’s what I’m trying to avoid.
I was hoping one of these would pop up a graphical window to instantly view the plot?
<12> memcairo Cairo memory driver crashed with:
*** PLPLOT ERROR, IMMEDIATE EXIT ***
Must call plsmem first to set user plotting area!
Program aborted
Different library Oplot (oplot.Oplot) looks like what I want, but was not able to install its dependency ocamlsdl-0.9.1 which seems some ancient dead lib on sourceforge.
(I’d be fine using another lib if Owl doesn’t do this and another exists)
it is indeed old, but in principle quite stable. It requires the (old) SDL1.2 library. Do you have it on your system? (for instance libsdl1.2-dev on ubuntu)
brew info sdl
Warning: Use sdl12-compat instead of deprecated sdl
==> sdl12-compat: stable 1.2.60 (bottled), HEAD
SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes
brew info sdl12-compat
==> sdl12-compat: stable 1.2.60 (bottled), HEAD
SDL 1.2 compatibility layer that uses SDL 2.0 behind the scenes
opam install ocamlsdl gives:
# checking for sdl-config... /opt/homebrew/bin/sdl-config
# checking for SDL - version >= 1.2.0... no
# *** Could not run SDL test program, checking why...
# *** The test program failed to compile or link. See the file config.log for the
# *** exact error that occured. This usually means SDL was incorrectly installed
# *** or that you have moved SDL since it was installed. In the latter case, you
# *** may want to edit the sdl-config script: /opt/homebrew/bin/sdl-config
# configure: error: *** SDL version 1.2.0 not found!