plot issues [changeset for log format of axes]
Ben Abbott
bpabbott at mac.com
Thu Jun 4 09:14:42 CDT 2009
On Jun 4, 2009, at 10:04 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.
>
> Yes, it works well.
Ok, I've pushed it.
Ben
More information about the Bug-octave
mailing list