Menu

tikz term and dashtype strangeness?

gnutron
2014-10-02
2014-10-02
  • gnutron

    gnutron - 2014-10-02

    I am having a strange problem with dashtypes. If I use the tikz term (and then process the output with pdflatex to make a nice pdf) I see that the dashtype command makes not only the line dashed, but also the error bar on the data point (which I don't want dashed). If I use the pngcairo terminal the problem goes away. Am I doing something stupid?

    Code (using gnuplot 5.0rc2:

    set term tikz size 5in,7in
    set output "new.tex"

    set term pngcairo enhanced

    set output 'test.png'

    set multiplot layout 2,1
    set lmargin at screen 0.15
    set rmargin at screen 0.85
    set bmargin at screen 0.51
    set tmargin at screen 0.85

    unset label
    set xrange [-10:10]
    set xtics format ''

    set style line 1 lc rgb 'red'
    set style line 2 lc rgb 'blue' pt 7 ps 2
    set style line 3 dt 2 lc rgb 'dark-violet'

    plot \ x ls 1,\ x**2 ls 2

    set lmargin at screen 0.15
    set rmargin at screen 0.85
    set bmargin at screen 0.15
    set tmargin at screen 0.49

    set format x
    set yrange [-1:1]

    plot \ x**3 ls 3,\ '-' u 1:2:3 w yerr ls 2
    0 0 0.3
    e
    unset multiplot

     

    Last edit: gnutron 2014-10-02
  • Ethan Merritt

    Ethan Merritt - 2014-10-02

    Thank you for testing the -rc versions, and thanks for reporting a problem.
    It would not surprise me that there are glitches in the dashed line processing, which after all is brand new.

    When I run your script through gnuplot_5.0.rc2 as built here I don't get any dashed lines. I attach the output. But your script doesn't request any dashed lines, so that is to be expected. Did you intend to show a script that requested dashed lines?

     
  • gnutron

    gnutron - 2014-10-02

    Mmm, I get the x**3 line to be dashed (as requested in this script with the ls 3, where set style line 3 has a dt 2 in it... then the error bar on the data point is also (unfortunately) dashed as well. I can attach my .tex files in the morning if that will help. Thanks!

     
  • Ethan Merritt

    Ethan Merritt - 2014-10-02

    Huh. I'm not currently seeing any dashed lines at all from tikz in -rc2, which probably means I messed up the installation somehow.

    But I can reproduce your problem in current CVS, so I'll take it from there.
    Thanks for the bug report.

    I will move this to the bug tracker.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.