triangle_svg, a C++ code 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 MIT license


triangle_svg is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:


TRIANGULATION_SVG, a C++ code 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:

Last revised on 04 May 2020.