|
From: Ethan A M. <sf...@us...> - 2014-09-02 20:20:15
|
Is anyone out there comfortable working with lua code?
My ability to understand lua code is practically non-existent.
Therefore I could use some help in fixing a few minor problems with the
lua/tikz terminal in the CVS source for gnuplot.
So far as I know, all of these require modifying the file
.../term/lua/gnuplot-tikz.lua
(1)
The alpha channel in ARGB colors is ignored in term->set_color.
The lua terminal does handle an alpha channel in other code paths,
for instance in gfx.format_color, so clearly it must be possible.
(2)
The linetype LT_NODRAW (defined as -3 in term_api.h) is supposed
to indicate that this line is not drawn at all. When applied to a fill area
it is supposed to indicate that no fill is present (i.e. 100% transparent).
The lua code is treating this the same as LT_BACKGROUND, which is
suppoed to mean "draw this line in the background color".
It is true that if you are drawing directly onto the background these both
come out the same. But if you draw a new line on top of a dark area,
say a previous filled area, then they most certainly are not the same.
(3)
Most terminals support a terminal option "linewidth <x>" that is used
as a multiplier for whatever individual linetypes are used in drawing.
That is, to make all of the lines in a plot twice the normal thickness,
you should be able to say
set term tikz linewidth 2.0
Unfortunately this isn't implemented in the lua/tikz terminal
(4)
This one may not be possible. At any rate it is trickier than the others.
The tikz terminal does not support the "boxed" attribute of text strings.
See for example the final plot in
http://gnuplot.sourceforge.net/demo_cvs/datastrings.html
any help is much appreciated,
Ethan
|