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

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

[Octave-bug-tracker] [bug #42311] colorbar incorrect after setting log s


From: Thomas Weber
Subject: [Octave-bug-tracker] [bug #42311] colorbar incorrect after setting log scale
Date: Mon, 12 May 2014 22:04:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20140429 Firefox/24.0 Iceweasel/24.5.0

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

Thanks Pantxo for the workaround, but I don't need it. It is not my own code
that is causing the problem, but rather the testsuite of matlab2tikz[1]. The
following function can be found among their tests[2]:

function [description, extraOpts] = colorbarLogplot()
switch getEnvironment()
      case 'MATLAB'
          imagesc([1 10 100]);
      case 'Octave'
          % TODO find out what to do for octave here
          description = 'Logscaled colorbar -- unavailable in Octave.';
          extraOpts = {};
          return;
      otherwise
          error( 'Unknown environment. Need MATLAB(R) or Octave.' )
  end
  set(colorbar(), 'YScale', 'log');

  description = 'Logscaled colorbar.';
  extraOpts = {};
end

So, it seems that Matlab can handle a logscaled colorbar. I don't know if the
values are correct, but right now I care more about getting the testsuite to
run fully on Octave - that's why I am reporting issues I find during these
tests.

[1] https://github.com/nschloe/matlab2tikz
[2] https://github.com/nschloe/matlab2tikz/blob/master/test/testfunctions.m


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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