On Monday, 27 January 2014 at 12:46:43 UTC, terchestor wrote:
((snipped))
Does anyone using PLplot can tell if it's worth using it or is there any alternative?

Well, this thread is a 1.5 years old but i was looking around for info on plplot also, and it is possible to use it with d, at least on ubuntu 15.04.

Nevertheless, David's package that John and Jordi referred to should also be investigated.

But just in case somebody else is searching for how to use plplot with d, this is how you can do it on ubuntu 15.04, assuming you already have gcd installed:

(1) get the package:
       sudo apt-get install libplplot-d libplplot-dev plplot-doc
(2) copy one of the d demo programs from
       http://plplot.sourceforge.net/examples.php
    (I did the first one, so i know it works at least for one.)
To get to the source code, you click on the picture and then choose 'D'.

    I named the copied file for the first demo 'irwin_line_demo.d'
(3) write a makefile along these lines:
irwin_line_demo : irwin_line_demo.o
        gdc -o $@ $^ -lplplotdmdd -lplplotd

irwin_line_demo.o : irwin_line_demo.d
        gdc -c -Wall $^ -I/usr/include/plplot

No doubt this might be simplified and made more systematic using pkg-config or other tools, and absolutely David's plot2kill should be considered before settling on a solution.

Reply via email to