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

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

[Octave-bug-tracker] [bug #46993] Incorrect rendering of colorbar during


From: anonymous
Subject: [Octave-bug-tracker] [bug #46993] Incorrect rendering of colorbar during print
Date: Wed, 03 Feb 2016 13:02:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0

Follow-up Comment #2, bug #46993 (project octave):

Here is the code snippet of interest:

c = colormap('jet');
for i = 1:length(nError)
index = ceil(nError(i)*64);
C(i,:) = c(index,:);
end

 scatter3(dynamicData(:,2),dynamicData(:,3),dynamicData(:,4),12,C)
 hc = colorbar();
 labels = (maxError-minError).*[0:5]./5+minError,2;
 for i = 1:numel(labels)
 strs(1,i) = {sprintf("%5.2f", labels(i))};
 end
 set(hc,'yTickLabel',strs)
 set(hc,'Title','Error [mm]')
 print(hf1,'Figure1.png')

Interestingly, I have tried again with different data (different range for the
errorbar) and it performed as expected. 

I also tried:

set (hc, "color", "none")

This also seems to solve the problem.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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