bugGNU Octave - Bugs: bug #39542, Wrong legend label when plotting...

 
 

bug #39542: Wrong legend label when plotting matrix vs. vector

Submitted by:  Falk Tannhäuser <fata>
Submitted on:  Sun 21 Jul 2013 10:27:51 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.6.4Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 17 Aug 2013 01:38:21 AM UTC, comment #2:

Thanks for the patch, it makes things much easier. I applied it in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/53f1d5bb58bc). I also added you to the list of contributors to Octave. I applied it to the development branch so you won't see the change until the 3.8.0 release, or you can build from Mercurial sources.

Rik <rik5>
Project Administrator
Wed 24 Jul 2013 08:06:29 PM UTC, comment #1:

It seems the problem is in the _plt_key_() function called by _plt_() which is called by plot(). I think the line /usr/share/octave/3.6.4/m/plot/private/__plt__.m:150 should read "key = options(i).key;" instead of "key = options.key;". I append a suggested patch, to be applied by the command

patch -d/ -p0 < fata_39542.patch

(file #28653)

Falk Tannhäuser <fata>
Sun 21 Jul 2013 10:27:51 AM UTC, original submission:

I'm using Octave 3.6.4 with Gnuplot 4.6 patchlevel 3 under Cygwin (Windows XP SP 3). With the following code:
I obtain function plots with point style and colour as expected (red "x" / green "+"). However, the legend label is "cos(t)" for both, rather than the expected "cos(t)" for the red "x" / "sin(t)" for the green "+" plot. Only the first label title is taken into account and is being repeated for the remaining labels.

Falk Tannhäuser <fata>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28653:  fata_39542.patch added by fata (369B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by fata (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 17 Aug 2013 01:38:21 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 24 Jul 2013 08:06:28 PM UTCfataAttached File-=>Added fata_39542.patch, #28653

    Back to the top


    Powered by Savane 3.1-cleanup1