patch(...) swallows tick marks

David Bateman adb014 at gmail.com
Wed Dec 12 07:29:14 CST 2007


Michael Goffioul wrote:
> On 12/12/07, kahacjde <kai.habel at gmx.de> wrote:
>>
>> Matthias Brennwald (bwm) wrote:
>>> Dear all
>>>
>>> If I plot a patch that extends to the axes of a plot, the tick marks get
>>> covered by the patch. A simple example to illustrate this effect is:
>>>
>>> ------------------
>>> clf
>>> patch ([5.5 10 10 5.5],[1 1 10 10],'r'); hold on
>>> plot(1:10)
>>> ------------------
>>>
>>> Is there a way to make the tick marks visible again?
>>>
>>> (I have Octave 2.9.18 with gnuplot 4.2)
>>>
>>> Matthias
>>>
>> Hello,
>>
>> with matlab I see the same behavior - the patch is plotted above the grid
>> and tick marks.
> 
> In Matlab, you would do a
> 
> set(gca, 'Layer', 'top')
> 
> to see the tick marks again (only in 2D mode). This is supported in JHandles
> plot backend.


This is why I only wish you were working on the Octave core objects
classes, with the data transfer to java layered on top... You know more
about how the graphics handles are supposed to work than anyone on the
Octave lists.

D.


More information about the Help-octave mailing list