[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch(...) swallows tick marks
From: |
Matthias Brennwald |
Subject: |
Re: patch(...) swallows tick marks |
Date: |
Fri, 14 Dec 2007 09:37:23 +0100 |
On Thu, 2007-12-13 at 12:03 -0600, address@hidden wrote:
> | On 12/12/07, kahacjde <address@hidden> 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.
>
> I made the following change.
>
> Thanks,
>
> jwe
Great! Thanks for this! However, I don't know how to apply the patch. I
can't download the current version from CVS, either (the port seems to
be blocked in our company network). I therefore downloaded the tar.gz
archive of Octave 2.9.19 via FTP and the patchfile ("layerpatch.ksh")
and then tried to apply the patch. However, I have never patched
anything before, and I can't make this work. Here's what I tried:
********************************************************
address@hidden:~$ cd ~/Desktop
address@hidden:~/Desktop$ cp layerpatch.ksh octave-2.9.19
address@hidden:~/Desktop$ cd octave-2.9.19/
address@hidden:~/Desktop/octave-2.9.19$ patch < layerpatch.ksh
can't find file to patch at input line 23
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|scripts/ChangeLog:
|
|2007-12-12 John W. Eaton <address@hidden>
|
| * plot/__go_draw_axes__.m: Handle the axes layer property.
|
|
|src/ChangeLog:
|
|2007-12-12 John W. Eaton <address@hidden>
|
| * graphics.h.in (class axes) Add the layer property.
| * graphics.cc (class axes) Ditto.
|
|
|Index: scripts/plot/__go_draw_axes__.m
|===================================================================
|RCS file: /cvs/octave/scripts/plot/__go_draw_axes__.m,v
|retrieving revision 1.92
|diff -u -u -r1.92 __go_draw_axes__.m
|--- scripts/plot/__go_draw_axes__.m 11 Dec 2007 21:25:53 -0000
1.92
|+++ scripts/plot/__go_draw_axes__.m 12 Dec 2007 18:43:39 -0000
--------------------------
File to patch:
********************************************************
I thought the patchfile contains the information about which files need
to be patched, right? What am I doing wrong?
Matthias