Menu

#701 Lua term: Alpha channel, linewidth option, support for lt nodraw

Version 6
closed-accepted
nobody
None
5
2025-07-21
2014-09-22
No

This patch fixes some minor issues with the lua tikz terminal:

  • Add general support for alpha channel to support linecolor rgb '#ff000000'.
  • Add a linewidth terminal option.
  • Support lt nodraw.
1 Attachments

Discussion

  • Ethan Merritt

    Ethan Merritt - 2014-09-23
    • status: open --> closed-accepted
     
  • Christoph Bersch

    Hi,

    I forgot to handle nodraw for points. The attached patch fixes this.

    Best,
    christoph

     
  • Ethan Merritt

    Ethan Merritt - 2014-10-28

    I'm not sure that's correct.
    I don't have time to test tonight, but I think that
    plot $FOO with linespoints lt NODRAW
    is supposed to draw the points but not the line, and if I'm reading this right the patch will cause it to not draw the points either.

    But I'm blanking on the use case for this. It was something recent....
    Drat. I'll have to look back through recent bug reports.

     
  • Christoph Bersch

    I haven't thought that points and lines might behave differently with respect to the selected linetype. Is this supposed to be handled in every terminal implementation, or shouldn't the case of plot x linespoints lt nodraw be handled separately in the calling code?

    In any case, the current implementation of

    plot x with points lt -2
    

    in the lua tikz terminal throws an error. I had the LT_NODRAW skip the whole plotting stuff, which currently isn't done. But at this point no color is set, which gives an error.

    I've also seen, that lt -2 and lt nodraw behaves differently when used together with the points plotting style. With lt nodraw a linetype is selected which depends on the actual position in the plot command. I'll report that as a separate bug.

     

Log in to post a comment.

MongoDB Logo MongoDB