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

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

[Octave-bug-tracker] [bug #48982] line drawing not compatible with gnupl


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #48982] line drawing not compatible with gnuplot version 4.4.0
Date: Fri, 2 Sep 2016 21:38:00 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

URL:
  <http://savannah.gnu.org/bugs/?48982>

                 Summary: line drawing not compatible with gnuplot version
4.4.0
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Fri 02 Sep 2016 09:37:58 PM GMT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

On the discussion list was noted that:

graphics_toolkit ('gnuplot');
plot (1:10, '--');
print -dpng 'test.png';

produces only a blank page with gnuplot version 4.4.0.  I have confirmed
this.

I used

drawnow ('x11', "/dev/null", "foo-4.6.6.gp"); ## for gnuplot 4.6.6

and

drawnow ('x11', "/dev/null", "foo-4.4.0.gp"); ## for gnuplot 4.4.0

to create gnuplot command files.  The files differ as:

INTENDED FOR GNUPLOT 4.4.0

set style line 9 default;
set style line 9 linecolor rgb "#0000ff" linewidth 0.500000;
[...snip...]
unset colorbox;
plot "-";
Inf Inf
e
unset obj 1;


INTENDED FOR GNUPLOT 4.6.6

set linetype 9 default;
set linetype 9 linecolor rgb "#0000ff" linetype 2 linewidth 0.500000;
[...snip...]
unset colorbox;
plot "-" binary format='%float64' record=10 using ($1):($2) axes x1y1 title ""
with lines linetype 9 \
;
[...string of binary data...]
unset obj 1;


Octave gnuplot scripts are choosing to not plot any lines because of the age
of gnuplot.  But, if I change the code intended for gnuplot 4.4.0 so the plot
command looks like:


unset colorbox;
plot "-" binary format='%float64' record=10 using ($1):($2) axes x1y1 title ""
with lines linestyle 9 \
;
[...string of binary data...]
unset obj 1;


(i.e., "linetype 9" replaced by the older "linestyle 9") the code run through
gnuplot 4.4.0 is dashed blue lines, as expected.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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