How can d.graph input be added to the command history? Is this something
that needs to be added to the d.graph C module?
Michael
______________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
USA
How can d.graph input be added to the command history?
the input (piped from stdin) is written to a temporary file and the
command history is changed so that the command line references that
input file instead of expecting input from stdin. The .tmp file is
persistent until you quit GRASS at which time it is cleared (possible
problem with server installs, but d.text already does this eg).
Is this something that needs to be added to the d.graph C module?
step 1) for that is merge the bugfixes and updates from d.mapgraph into
d.graph (malloc -> G_malloc, ...), otherwise they are essentially the
same exact code. I would prefer a better C programmer than me did this.
step 2) add -m flag to d.graph to indicate input coordinates are map
units, not percentage of frame. I'm happy to do this part.
We should avoid duplicating the effort of modifying both modules for the
same feature or allow one module to go off on a tangent which would make
the merge that much harder in the future.
This sounds like a very reasonable plan. When they are merged, it would be
nice if the combined one could also draw a circle as well as a box and line.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
From: Hamish <hamish_nospam@yahoo.com>
Date: Mon, 19 Sep 2005 14:14:55 +1200
To: Michael Barton <michael.barton@asu.edu>
Cc: <grass-bugs@intevation.de>, <grass5@grass.itc.it>
Subject: Re: [GRASS5] [bug #3592] (grass) d.vect.thematic: cannot export
legend with d.out.png
How can d.graph input be added to the command history?
the input (piped from stdin) is written to a temporary file and the
command history is changed so that the command line references that
input file instead of expecting input from stdin. The .tmp file is
persistent until you quit GRASS at which time it is cleared (possible
problem with server installs, but d.text already does this eg).
Is this something that needs to be added to the d.graph C module?
step 1) for that is merge the bugfixes and updates from d.mapgraph into
d.graph (malloc -> G_malloc, ...), otherwise they are essentially the
same exact code. I would prefer a better C programmer than me did this.
step 2) add -m flag to d.graph to indicate input coordinates are map
units, not percentage of frame. I'm happy to do this part.
We should avoid duplicating the effort of modifying both modules for the
same feature or allow one module to go off on a tangent which would make
the merge that much harder in the future.
This sounds like a very reasonable plan. When they are merged, it
would be nice if the combined one could also draw a circle as well as
a box and line.
with a D_symbol() library function d.graph could draw icons too...