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

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

[Octave-bug-tracker] [bug #40747] Colorbar labelling


From: Alexander Klein
Subject: [Octave-bug-tracker] [bug #40747] Colorbar labelling
Date: Fri, 29 Nov 2013 12:17:20 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.10 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.10

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

                 Summary: Colorbar labelling 
                 Project: GNU Octave
            Submitted by: matalex
            Submitted on: Fr 29 Nov 2013 12:17:19 GMT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Alexander Klein
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

While trying to plot topographical maps of significance-levels, I noticed that
there are cases where the labelling of the colour bar and what actually
appears in the plot don't match very well, especially when using a small
number of colours.

Here is a simple test case:


clf();colormap(jet(8));dat=1./hilb(5);[XX,YY]=meshgrid(1:0.25:5);res=interp2(dat,XX,YY,"nearest"),contourf(XX,YY,res,[1:10]);colorbar()


Judging from the colourbar, only the blocks containing 1 and 2 should be
assigned the same colour (dark blue), but in the image, the blocks containing
2 and 3 as well as those containing 7 and 8 are assigned the same colours, and
the block containing 9 is assigned the wrong colour.

This behaviour is reproducible with 3.6.3 on Fedora, 3.6.4 on Lubuntu, and
3.6.1 on OSX.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fr 29 Nov 2013 12:17:19 GMT  Name: Buggy graphics.png  Size: 14kB   By:
matalex

<http://savannah.gnu.org/bugs/download.php?file_id=29735>

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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