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

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

[Octave-bug-tracker] [bug #61696] Error in the range showed by colobar c


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #61696] Error in the range showed by colobar command
Date: Tue, 21 Dec 2021 04:38:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0

Follow-up Comment #3, bug #61696 (project octave):

If I replace the the original example by the following simpler script, I get
consistent behavior, i.e. the color axis (returned by caxis) is the same
before and after colorbar :


col = 0.5 * (1 + rand (1,100));
x = rand (1,100);
y = rand (1,100);
scatter (x, y, 8, col, "filled")
colormap (jet)
printf ("color limits BEFORE colorbar: %s", disp (caxis))
colorbar
printf ("color limits AFTER colorbar: %s", disp (caxis))


But with the original example, for which the color axis should have
approximately the same extent, I get [0 1] before calling colorbar, and
[0.5034 1] after. What I find strange is the initial [0 1], not the scaled
one.

In any event, if you want to have a fixed color axis, see the `caxis` command.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61696>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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