tics of log color axis

John W. Eaton jwe at octave.org
Tue May 26 13:16:12 CDT 2009


On 24-May-2009, Petr Mikulik wrote:

| I have noticed two problems related to log color axis. These bugs are in 
| Octave 3.1.55 (while in Octave 3.0.x it does not work "at all"):
| 
| A. Wrong tic labels in figure 2:
|   figure(1)
|   imagesc(1./hilb(99)); h=colorbar;
|   figure(2)
|   imagesc(1./hilb(99)); h=colorbar; set(h,'yscale','log');

I'm not sure why this is happening.  I've extracted the commands from
the gnuplot stream that generate the colorbar and attached them
below.  If you can tell me what we should be sending to gnuplot to get
the correct behavior, I might be able to fix Octave to generate the
correct set of commands.

| B. Yet another wrong tic labels:
|   imagesc(log10(1./hilb(99))); h=colorbar;
|   TL = get(h, 'YTick');
| %  set(h, 'YTickLabel', sprintf('10^%g|', TL));
|   set(h, 'YTickLabel', sprintf('10^{%g}|', TL));

This feature is not implemented yet.  You can use a cell array
of strings for the labels instead, or perhaps someone will implement
the split feature in the code that handles the tick labels.

jwe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.gp
Type: application/octet-stream
Size: 2928 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090526/4947febc/attachment.obj 


More information about the Bug-octave mailing list