Plot Triangle and Points with Scalable Vector Graphics (SVG)

TRIANGLE_SVG is a C++ library which uses Scalable Vector Graphics (SVG) to create a plot of a triangle and any number of points. Such plots can illustrate quadrature rules or sampling methods for the triangle.


The computer code and data files made available on this web page are distributed under the GNU LGPL license.


TRIANGLE_SVG is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

TRIANGULATION_SVG, a C++ program which creates a Scalable Vector Graphics (SVG) image of a triangulation, which can be displayed by a web browser.


  1. W3C, Scalable Vector Graphics 1.1 (Second Edition), 16 August 2011,

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the C++ source codes.

Last revised on 21 April 2014.