Posted on February 20, 2024 by Andrzej Dubaj
in
Random
I’ve been using Gnuplot a little bit before discovering R. However, as I recently found myself answering some Gnuplot-related questions on stackoverflow.com and stats.stackexchange.com, I decided to reinstall my old gnuplot which was by far and large broken: no mouse support, no aqua terminal, etc.
I wanted aqua support because it has a nice rendering and export to PDF is made easy thanks to the Quartz device. I already have Aquaterm installed on my Airbook, but it is well known that it is only available in 32-bit mode. This means that we need to build Gnuplot for 32-bit (aka, i386) architecture, although I found some webpages showing that we can patch Aquaterm to run in 64-bit mode. Anyway, let’s go for an i386 architecture. I don’t really care because this is what I’m actually running most of the time.
As we also want tikz and lua support (for exporting to Latex), we need liblua. I already have Lua 5.1, but it was built for 64-bit architecture. So, I downloaded it again and recompile it, following the standard instructions. Note that the default is an x86_64 binary whereas I need to have an i386 build too. I used this modified Makefile (replace the default src/Makefile by this one after having removes the suffix). Also, we need to have a dylib library, and not the default liblua.a that is generated by the Makefile. In short, in the source directory:
Then, in the CVS directory for Gnuplot:
After the make process, we should get:
Finally, let’s consider those commands:
My site is free of ads and trackers. Was this post helpful to you? Why not
You can disable the ads below with Adblock Plus for your browser. Disqus is great for comments/feedback but I had no idea it came with these gaudy ads.