Re: [RFC/PATCH] graph API: Use horizontal lines for more compact graphs
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 21, 2009, 08:13 UTC
- Message-ID
- <alpine.DEB.1.00.0904211010410.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <b2e43f8f0904201923hd97f3e3v66addf59daa3956f@mail.gmail.com>
Hi,
On Mon, 20 Apr 2009, Allan Caffee wrote:
Show 13 quoted lines
> On Mon, Apr 20, 2009 at 8:56 PM, Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: > > > On Mon, 20 Apr 2009, Allan Caffee wrote: > > > >> + for (j = (target * 2)+3; j < (i - 2); j += 2) > > > > This (target*2)+3 is a bit too magical for me to understand. But > > maybe I am just too tired? > > It is a little magical. Here target is an index into > graph->new_columns so we double that to get the actual location of the > edge in the string for this line.
Ah. So how about /* * The variable target is the index of the graph * column, and therefore target*2+3 is the actual * screen column of the first horizontal line. */
Hmm?
Ciao, Dscho