[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48982] line drawing not compatible with gnupl
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0 |
Date: |
Fri, 2 Sep 2016 21:53:59 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #1, bug #48982 (project octave):
Probably have to step through the code with the debugger. According the the
information in __gnuplot_has_feature__, 'linetype' should be used only for 4.6
and above.
In __gnuplot_draw_axes__ I see lots of constructs like this
if (__gnuplot_has_feature__ ("linetype"))
scmd = "linetype";
else
scmd = "linestyle";
endif
I suppose it's possible that somewhere an instance of this was missed and it
needs something like that above.
The other possibility is that the gnuplot_linetype routine is wrong.
function [lt] = gnuplot_linetype (obj)
if (isfield (obj, "linestyle"))
if (__gnuplot_has_feature__ ("dashtype"))
opt = "dashtype";
switch (obj.linestyle)
case "-"
lt = "solid";
case "--"
lt = "'_ '";
case ":"
lt = "'. '";
case "-."
lt = "'-. '";
case "none"
lt = "";
otherwise
lt = "";
endswitch
elseif (__gnuplot_has_feature__ ("linetype"))
opt = "linetype";
switch (obj.linestyle)
case "-"
lt = "1";
case "--"
lt = "2";
case ":"
lt = "3";
case "-."
lt = "6";
case "none"
lt = "";
otherwise
lt = "";
endswitch
else
lt = "";
endif
if (! isempty (lt))
lt = sprintf ("%s %s", opt, lt);
endif
else
lt = "";
endif
"dashtype" is available only with 5.0. "linetype" is available only with 4.6
and above. For gnuplot 4.4, both of these would be false and linetype (lt)
would be set to "".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48982>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Dan Sebald, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0,
Rik <=
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Dan Sebald, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Rik, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Rik, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Dan Sebald, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Rik, 2016/09/02
- [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0, Mike Miller, 2016/09/03