<div dir="ltr"><div dir="ltr">Hi Bernd and leledumbo,</div><div dir="ltr"><br></div><div>Thanks for your responses. For now, I have settled on GNUplot. This tool creates very nice plots and allows to export in a variety of formats (vector and raster). I have written a wrapper that creates a script as Bernd mentioned and runs the GNUplot tool from the command-line. The wrapper has a simple API that allows to toggle settings and add series as required. If interested then please let me know and I will share. In time I would like to add a native vector output to this plotting library. I had a brief look at SVG and that should be possible.</div><div><br></div><div>Kind regards, Darius</div><div dir="ltr"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 15, 2020 at 11:25 PM Bernd Oppolzer via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>Hi, <br>
    </p>
    <p>I don't know if this can help you, but in the 1980s I worked with
      a library called GKS (graphic kernel system) <br>
      which I used to build such graphics like the following example: <br>
      <a href="http://bernd-oppolzer.de/fdynsb.pdf" target="_blank">http://bernd-oppolzer.de/fdynsb.pdf</a></p>
    <p>This programs that did this were written in Pascal at that time.
      <br>
    </p>
    <p>It still works today for me (the customer still uses this
      software), <br>
      although is it C today, and GKS is not available any more. <br>
      What I did: the original GKS calls are written to files (some sort
      of GKS metafile, but not the <br>
      original 1980s format), and then this file format is read by a C
      program GOUTHPGL, <br>
      which translates this (proprietary) format to HPGL. The HPGL files
      are either sent to <br>
      HP plotters or translated to PDF using public domain software; see
      the file above. <br>
      (GOUTHGPL was a Pascal program in the 1990s, too). <br>
    </p>
    <p>IMO, you could easily write the "GKS metafile format" with
      Pascal; <br>
      in fact, it is simply is a sort of logfile of the GKS calls.  <br>
    </p>
    <p>Here is an old paper about the GKS system:
<a href="http://nsucgcourse.github.io/lectures/Lecture01/Materials/Graphical%20Kernel%20System.pdf" target="_blank">http://nsucgcourse.github.io/lectures/Lecture01/Materials/Graphical%20Kernel%20System.pdf</a></p>
    <p>The translator GOUTHGPL supports only a small subset of GKS; see
      again the example picture above. <br>
    </p>
    <p>If you are interested for more details, you could contact me
      offline. <br>
    </p>
    <p>Kind regards</p>
    <p>Bernd <br>
    </p>
    <p><br>
    </p>
    <div>Am 15.11.2020 um 09:33 schrieb Darius
      Blaszyk via fpc-pascal:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>Hi,</div>
        <div><br>
        </div>
        <div>I am looking for a simple to use non-visual graphing
          library to produce x-y plots in a  raster file format (similar
          to how pyplot works). Rather than developing something from
          scratch or writing a wrapper to GNU plot (additional
          dependency), I was hoping something like this already would
          exist that I could build upon.</div>
        <div><br>
        </div>
        <div>Thank you for any tips!</div>
        <div><br>
        </div>
        <div>Rgds, Darius<br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a>
</pre>
    </blockquote>
    <div><br>
    </div>
  </div>

_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>