[fpc-pascal] Graphing library

James Richters james.richters at productionautomation.net
Thu Nov 19 14:29:07 CET 2020

Fppdf sounds interesting.  I'm already using AGG-Pas in my project, and I am quite happy with it.  Exporting PDF files from my AGG-Pas buffer would be really nice.   I did a quick search and didn't find any documentation for it, is there a link for this?  Would you happen to have a sample program of how to generate a PDF from my AGG-Pas buffer?


-----Original Message-----
From: fpc-pascal <fpc-pascal-bounces at lists.freepascal.org> On Behalf Of Graeme Geldenhuys via fpc-pascal
Sent: Wednesday, November 18, 2020 4:31 PM
To: fpc-pascal at lists.freepascal.org
Cc: Graeme Geldenhuys <mailinglists at geldenhuys.co.uk>
Subject: Re: [fpc-pascal] Graphing library

On 15/11/2020 8:33 am, Darius Blaszyk via fpc-pascal wrote:
> 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).

You could also use the fppdf code included with FPC and generate PDFs of any size (you don't have to stick to standard paper sizes). Not sure if PDF will suit your needs, but you will end up with a very portable format that scales.

Secondly, you could also use AGG-Pas. It's fully implemented in Object Pascal so is very portable (I've used it on RPi, Windows, Linux, FreeBSD and OSX). It is a anti-alias sub-pixel framework with configurable rendering pipelines. You can use the "raw" API to get the most flexibility, or use the easier 2D unit but reduces functionality and flexibility. The latest code is included with the fpGUI project, but still 100% stand-alone - no dependencies on fpGUI at all. It also comes with a huge about of demos so show off the features.

Original AGG-Pas website. But as I said, the code in fpGUI's repo is newer with multiple bug fixes and improvements.


Both options have no dependencies on graphics libraries or GUI systems, so is perfect for console of server side rendering.


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp _______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list