bugGNU Octave - Bugs: bug #50473, plotting with errorbar: duplicate...

 
 

bug #50473: plotting with errorbar: duplicate legend entries (gnuplot)

Submitted by:  Kusmin <akusmin>
Submitted on:  Mon 06 Mar 2017 11:44:18 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: KusminOpen/Closed: Closed
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 07 Mar 2017 04:31:00 PM UTC, comment #4:

@Ben: Good identification. I grafted cset 22606 back on to stable and that fixes the problem. I also grafted on 22630 which was an addendum to 22606 which fixed legends for hggroup.

This will be a part of the next bug fix release: 4.2.2. But, since this is just an m-file, the original reporter can always just get the file _gnuplot_draw_axes_.m from the Mercurial archive and place the file in their distribution to fix the problem.

Rik <rik5>
Project Administrator
Tue 07 Mar 2017 02:30:24 PM UTC, comment #3:

Should the changeset for bug #49260 have been applied to stable?

"For gnuplot graphics toolkit, show only one key entry for errorbars (bug #49260)"
http://hg.savannah.gnu.org/hgweb/octave/rev/54332b6ddeb6

Ben Abbott <bpabbott>
Project Member
Tue 07 Mar 2017 02:18:53 PM UTC, comment #2:

I checked the default branch and do not see the problem there. I don't see any reason why the default and stable branches would differ for the gnuplot toolkit. Copying _gnuplot_draw_axes_ from default to stable fixes this problem (I haven't tested to see if new problems are created).

Ben Abbott <bpabbott>
Project Member
Tue 07 Mar 2017 12:21:39 AM UTC, comment #1:

Confirmed. Octave 4.0.3 works correctly. The bug appears by version 4.2.0. However, it has already been fixed on the development branch.

Unfortunately, it may be difficult to determine which cset fixed the problem so that it can be backported to 4.2.2. In the mean time, you could always try one of the OpenGL toolkits such as qt or fltk. Or you could build the development version from Mercurial sources. It is generally very stable.

Rik <rik5>
Project Administrator
Mon 06 Mar 2017 11:44:18 PM UTC, original submission:

With gnuplot 5.0.5, the following code plots a graph where with a duplicate number of entries in the legend

a=linspace(1,10,100)
b=sin(a);
myerr=a*0+0.1
h1=errorbar(a,b,myerr)
legend("test");

if h1=plot(a,b) is used, there is just one entry in the legend, as it should.

This problem was not present for octave 4.0.2, and only appeared after installation of octave 4.2.1 without any other changes.
OS: GNU/linux Slackware 14.2, 64 bit.

Kusmin <akusmin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by akusmin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 07 Mar 2017 04:31:00 PM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
      Release4.2.0=>4.2.1
    Tue 07 Mar 2017 12:21:39 AM UTCrik5Item GroupNone=>Regression
      StatusNone=>Confirmed
      Release4.2.1=>4.2.0
      Summaryplotting with errorbar: duplicate legend entries=>plotting with errorbar: duplicate legend entries (gnuplot)

    Back to the top


    Powered by Savane 3.1-cleanup1