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

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

[Octave-bug-tracker] [bug #34397] patch object does not implement indexe


From: Rik
Subject: [Octave-bug-tracker] [bug #34397] patch object does not implement indexed color assignments
Date: Mon, 26 Sep 2011 20:59:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0

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

                 Summary: patch object does not implement indexed color
assignments
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 26 Sep 2011 01:59:27 PM PDT
                Category: Plotting
                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:

Sample code to observe the problem


close all;
patch([1 1 2],[1 2 2], 0.9);
# Produces a blue triangular patch
h = get (gca, "children");
get (h, 'facecolor')
 ans = flat
get (h, 'facevertexcdata')
 ans =  0.90000
get (h, 'cdatamapping')
 ans = scaled


In the default colormap this should be 0.9 * 64 = 58.  The patch object does
work with RGB triplets.


RGB = jet()(58,:)
 RGB = 0.88095   0.00000   0.00000
set (h, 'facevertexcdata', RGB);
# Changes color to a shade of red


More information about the graphics properties and how they are supposed to be
implemented can be found here
(http://www.mathworks.com/help/techdoc/ref/patch_props.html)




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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