octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46886] linetype not respected across Gnuplot


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #46886] linetype not respected across Gnuplot terminals
Date: Wed, 13 Jan 2016 20:19:50 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9

Follow-up Comment #2, bug #46886 (project octave):

Presently, the gnuplot linestyles are used and matched up to Octave/Matlab
lifestyles. Below is a code snippet from __gnuplot_draw_axes__


1815   if (isfield (obj, "linestyle"))
1816     switch (obj.linestyle)
1817       case "-"
1818         lt = "1";
1819       case "--"
1820         lt = "2";
1821       case ":"
1822         lt = "3";
1823       case "-."
1824         lt = "6";
1825       case "none"
1826         lt = "";
1827       otherwise
1828         lt = "";
1829     endswitch 


The "lt" variable refers to gnuplot's line style index number


     set style line <index> default
     set style line <index> {{linetype  | lt} <line_type> | <colorspec>}
                            {{linecolor | lc} <colorspec>}
                            {{linewidth | lw} <line_width>}
                            {{pointtype | pt} <point_type>}
                            {{pointsize | ps} <point_size>}
                            {palette}
     unset style line
     show style line


You'll notice that gnuplot's line style does not allow the dash/dot sequence
to be modified. In addition, each of gnuplot's terminals can have different
dash/dot sequences for their line styles (i.e. no required consistency).

With the new "dash type", it is now possible to ensure the line styles are
consistent across all terminals. I've attached four test pngs using the
terminals aqua, qt, wxt, and x11. These were produced using gnuplot 5.0.2 with
a patch to permit user defined dash types when using AquaTerm.

(file #36017, file #36018, file #36019, file #36020)
    _______________________________________________________

Additional Item Attachment:

File name: aqua.png                       Size:96 KB
File name: wxt.png                        Size:98 KB
File name: qt.png                         Size:119 KB
File name: x11.png                        Size:38 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46886>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]