Menu

#1516 dotted line in gnuplot v5 libgd

closed-fixed
nobody
None
5
2015-03-23
2014-11-20
Anonymous
No

Hello,
reopen #1516
Does not work for me in 5.0
see comments in the old ticket.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2014-11-20

    I can't reproduce this problem here. It is true that the libgd terminals do not support dashed lines in general, but the LT_AXIS (lt 0) linetype is still drawn as dots. I attach the output I get here from -rc3 for
    set term gif
    set output 'test.gif'
    test

    What version of libgd are you using?

     
  • Ethan Merritt

    Ethan Merritt - 2014-11-21

    Looking deeper, I see that although the program itself can draw dotted lines in the libgd terminals (e.g. "test" or "set yzeroaxis"), it is unreasonably hard to assign this same style to a line in a plot.

    I think that was intentional, since it comes out really really ugly, but maybe a better option is possible.

    The same bug/difficulty affects the qt terminal even though its dotted lines are not ugly at all. So I'll look for a fix that catches both terminals.

    thanks for testing

     
  • aloisius

    aloisius - 2014-11-21

    the default grid is indeed dotted but it is not possible to use this style:

    ~~~~~

    set term gif
    set output'|display gif:-'
    set grid
    plot sin(x) # --> dotted grid
    set grid lt 0
    replot # --> solid grid

    ~~~~

     
  • Ethan Merritt

    Ethan Merritt - 2014-11-21

    Fixed in cvs for 5.0 and 5.1. The fix will be included in the 5.0 release.

    This fix also includes a preliminary re-working of the dotted line code in the libgd terminals, making is less ugly when used for lines that are not purely horizontal or vertical.

     
  • Ethan Merritt

    Ethan Merritt - 2014-11-21
    • status: open --> pending-fixed
     
  • Ethan Merritt

    Ethan Merritt - 2014-12-03
    • status: pending-fixed --> closed-fixed
     
  • aloisius

    aloisius - 2015-01-09

    in 5.0 the dotted grid is only plotted once

    set term gif
    set output'|display gif:-'
    set grid lt 0
    plot sin(x)     #  -->  dotted grid 
    replot          #  -->   no grid
    

    the first call of the test command shows a dotted grid
    the second one shows no grid. attached is the result of the second test
    this happens for libgd 2.0.35 and 2.1 on CentOS 6.3

     
  • aloisius

    aloisius - 2015-01-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,9 +1,4 @@
     Hello,
    -
    -in v4.6 the test command shows a grey dotted line as line style 0  in a gif terminal  using libgd. 
    -in v5.rc3 there is no dotted line style any more. 
    -the new dashtype feature does not support libgd. 
    -Is there any other possibility to draw a dotted line in libgd?
    -i still like the old libgd because its the only native gif terminal.
    -Therefore i whould appreciate the possibility to have the dotted line back in v5.
    
    - 
    +reopen #1516  
    +Does not work for me in 5.0
    +see comments in the old ticket.  
    
    • status: closed-fixed --> open
     
  • Ethan Merritt

    Ethan Merritt - 2015-01-11

    Fixed in cvs for 5.0 and 5.1

     
  • Ethan Merritt

    Ethan Merritt - 2015-01-11
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB