plot issues [changeset for log format of axes]
Ben Abbott
bpabbott at mac.com
Thu Jun 4 02:56:00 CDT 2009
On Jun 4, 2009, at 2:53 AM, Petr Mikulik wrote:
>>>>> b=logspace(1,10,24); a=repmat(b,10,1);
>>>>> imagesc(a); h=colorbar;
>>>>> set(h, 'YScale', 'log');
>>>>> There is just a visual difference: Matlab puts tic labels 10^0,
>>>>> 10^1,
>>>>> 10^2, ... while gnuplot puts 1, 10, 100, ..., 100000, 1e+6, 1e
>>>>> +7, ...
>>>>
>>>> I like the Matlab format as well. Presently, it is left to
>>>> gnuplot to
>>>> handle
>>>> the formating.
>>>
>>> Please add the following gnuplot command if the terminal is
>>> enhanced:
>>> set format cb "10^{%T}"
>>
>> My understanding is that Octave's color bar is just an instance of
>> an axes
>> (meaning we don't use the gnuplot color-box, but create our own).
>>
>> Can an axes be formated in a similar way? ... if so, how?
>
> These commands are very similar:
> set format y "10^{%T}"
> or
> set format y2 "10^{%T}"
>
> ---
> Petr Mikulik
Petr / others,
For both colorbars as well as log/semilogy plots, this produces the
proper result for me.
Please verify this works as expected for you as well.
Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset.patch
Type: application/octet-stream
Size: 5833 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090604/3b38f39a/attachment.obj
-------------- next part --------------
More information about the Bug-octave
mailing list