lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thursday, October 19, 2006, 6:06:54 AM, Sandro C. Goncales wrote:

> Philippe Lhoste wrote:
>> Lua-GD - Lua bindings for the gd library <http://lua-gd.luaforge.net/>
>> seems of interest too... (untested)
>>

> Lua-GD is good, but for creation of a simple chart can be too complicate
> and very well draw ;) .

You might find the ezplot library useful:
http://staff.washington.edu/fox/ezp/
It is a charting and plotting layer on top of GD. The license is
the Apache License, Version 2.0. Of course, you will need to make a
Lua binding.

Two observations: (1) the link on the page to the source is wrong; it
should be http://staff.washington.edu/fox/ezp/ezp-1.1.tar.gz  (2) it
compiles with lots of warnings, though the code "works as advertised."

I have been happy with DISLIN. http://www.dislin.de/ I have 50 lines
of C code to bind Lua to (a small subset of) DISLIN, and can e.g.,
generate bar graphs with:

require "ldislin"
dislin.qplbar {0.5,1,2,4,8,16,8,4,2,1,0.5}

Regards,

e

-- 
Doug Currie
Londonderry, NH