#1185 cairolatex + color

closed-fixed
nobody
None
5
2015-03-23
2012-10-16
Leo Butler
No

Hi, I am seeing an issue the cairolatex terminal. After the first object
circle is placed on the canvas, the fillcolor is ignored and set to the
default (black). This does not happen for the pdfcairo terminal.

I have attached a script and its output files that demonstrate the issue.

I am using
gnuplot --version
gnuplot 4.6 patchlevel 0
from debian testing.

Discussion

  • Leo Butler

    Leo Butler - 2012-10-16

    tar file with gnuplot script to exhibit bug, plus its output

     
  • Ethan Merritt

    Ethan Merritt - 2012-10-17

    FWIW this problem is not visible here in either 4.6.1 or 4.7

    I see two entries in the ChangeLog since 4.6.0 that might be relevant

    2012-08-03
    * term/pslatex.trm (EPSLATEX_set_color): Some cairolatex set_color
    requests were being incorrectly ignored.
    Bug #3553940
    2012-05-07
    * term/cairo.trm term/pslatex.trm: Fix 'set term cairolatex pdf mono'
    Bug-Debian: http://bugs.debian.org/668339

    On the other hand, I get the correct fill colors from 4.6.0 also so I'm not entirely sure what is going on.

     
  • Leo Butler

    Leo Butler - 2012-10-18

    Hi, I have built gnuplot 4.7.0 from cvs sources and I can confirm that this bug does appear to be fixed there.

     
  • Ethan Merritt

    Ethan Merritt - 2012-10-18
    • status: open --> closed-out-of-date
     
  • Ethan Merritt

    Ethan Merritt - 2012-10-18

    OK, good. Let's close the tracker item.

     
  • Jeremy

    Jeremy - 2013-04-10

    So I am having a similar issue, plotting some points using the cairolatex terminal and it is ignoring the line style I have set previously. In my case I want a black point and am getting a red one.

    I saw Leo's post, tried his script, and got the same results on 4.6.2. I built 4.7 from cvs and still get the same incorrect results.

     
  • Jeremy

    Jeremy - 2013-04-10

    I should have mentioned this is only a problem when I am using lc rgb "black" in my line style. For the other line styles with other colors there is no problem. Additionally, when I plot using a title this is not an issue, but when using notitle I get a red point instead of black point.

     
  • Ethan Merritt

    Ethan Merritt - 2013-04-10

    It would help if you provided the exact sequence of commands that is failing for you. Or are you saying that Leo's original script fails for you in the exact opposite way as the original report? (he wanted red and got black - you want black and are getting red???)

     
  • Ethan Merritt

    Ethan Merritt - 2013-04-10

    Never mind. I see that both 4.6.2 and current CVS indeed do odd things for Leo's original test case. One red dot, two black dots. Weird.

     
  • Ethan Merritt

    Ethan Merritt - 2013-04-10
    • status: closed-out-of-date --> open
    • Group: --> 5.0
     
  • Jeremy

    Jeremy - 2013-04-10

    right, here's some more info:

    I set this style at the beginning
    set style line 8 lt 1 lc rgb "black" lw 3 pt 3

    Then later try
    "plotfile" using 1:9 notitle with points ls 8
    or
    "plotfile" using 1:9 title "" with points ls 8
    produces a red point instead of a black one.

    However,
    "plotfile" using 1:9 title "$$" with points ls 8
    produces the correct black point.

    good luck!

     
  • Jeremy

    Jeremy - 2013-04-10

    right, here's some more info:

    I set this style at the beginning
    set style line 8 lt 1 lc rgb "black" lw 3 pt 3

    Then later try
    "plotfile" using 1:9 notitle with points ls 8
    or
    "plotfile" using 1:9 title "" with points ls 8
    produces a red point instead of a black one.

    However,
    "plotfile" using 1:9 title "$$" with points ls 8
    produces the correct black point.

    good luck!

     
  • Ethan Merritt

    Ethan Merritt - 2013-04-24
    • status: open --> closed-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2013-04-24

    Fixed in 4.6.3 and 4.7

     

Log in to post a comment.