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: Kai Habel
Subject: [Octave-bug-tracker] [bug #34397] patch object does not implement indexed color assignments
Date: Tue, 27 Sep 2011 08:31:16 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

Follow-up Comment #1, bug #34397 (project octave):

Rik,

for a scaled cdatamapping the color is choosen relative to the clim property
of the current axis object. For your example clim should be set to [-0.1 1.9]
and therefore the color should be jet()(32,:).

It seems we set the clim property not correctly, because in 3.2.4 it is set to
[0.9 1.9] and gives the color: jet()(1,:) or [0 0 0.5]

To get an index color assigment you have to set the cdatamapping to direct and
provide the actual index.

p = patch([1 1 2],[1 2 2], 58, "cdatamapping","direct");

This works as expected.

Kai

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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