[GRASSLIST:8771] Re: Querying display monitor locations as percent
from origin (0,0)?
Michael Barton
michael.barton at asu.edu
Thu Oct 27 01:13:50 EDT 2005
Eric,
I think d.graph does draw in % of screen from one corner or another.
On the other hand, it might be easier to simply save the monitor display to
a png or tiff file (d.out.file) and add a legend manually using Inkscape or
something similar.
Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
Arizona State University
Tempe, AZ 85287-2402
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
> From: "Patton, Eric" <epatton at nrcan.gc.ca>
> Date: Wed, 26 Oct 2005 09:35:31 -0300
> To: Multiple recipients of list <GRASSLIST at baylor.edu>
> Subject: [GRASSLIST:8756] Querying display monitor locations as percent from
> origin (0,0)?
>
> Hi gang,
>
> I'm trying to create a simple legend for sediment grainsize analyses
> (attributes consist of % gravel, % sand, % silt, % clay). I already have
> some really nice looking pie charts created using d.vect.chart, and now I
> want an accompanying legend in the upper-right corner of the monitor for a
> screen capture. Is there a way to query the coordinates of locations on the
> monitor as percentages from the lower-left corner?
>
> I could make a reasonable guess as to where I think the legend should appear
> in display coordinates, but I want to use d.graph to build a little window
> containing all the legend elements; having the exact queried coordinates
> could just be pasted into the d.graph command.
>
> Alternatively......
>
> Is there a better way to create vector legends for d.vect.chart? I couldn't
> find anything in the manual that seemed to cover it.
>
> Thanks!
>
> ~ Eric.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Eric Patton
>
> Technologist, Geo-Spatial Data Services
> Geological Survey of Canada (Atlantic)
> Natural Resources Canada
> Bedford Institute of Oceanography
> Dartmouth, Nova Scotia, Canada B2Y 4A2
>
> Postal address: P.O. Box 1006
> Courier address: 1 Challenger Drive
>
> Telephone: (902)426-7732
> Facsimile: (902)426-4104
> E-mail: epatton at NRCan.gc.ca
>
More information about the grass-user
mailing list