[GRASS-dev] Re: not quite there on fonts

Michael Barton michael.barton at asu.edu
Sun May 13 11:53:28 EDT 2007


I'll play around with these. But maybe one of you can check to see if
d.histogram will actually accept some kind of background color change or if
it is hardcoded to white--so I don't waste a lot of time messing with this
in situation where it won't work.

Michael


On 5/13/07 4:24 AM, "Hamish" <hamish_nospam at yahoo.com> wrote:

> Michael Barton wrote:
>> This because all d.* commands (i.e., those that can be run
>> non-interactively) are treated conceptually by the TclTk GUI in the
>> same way they are treated in an xmon, as something that shows up in a
>> graphics window. A profile is the one exception, since I had to
>> rebuild that completely in TclTk (as d.profile is an interactive
>> module that can't be displayed in a TclTk canvas.
>> 
>> However, you'll be interested to learn that I've already done
>> histogramming in exactly the way you suggest for the new wxPython GUI.
>> It seemed to me also that it makes more sense to treat a histogram in
>> a way that is visually different from a map. So it appears in its own
>> window. I'd like to set the background, but it seems that it won't
>> take any background color (I've tried various ways to do this,
>> including GRASS_BACKGROUNDCOLOR and nothing changes the white
>> background).
> 
> I think custom GUI windows are the way to go for non-overlay graphics,
> but if you really want full screen non-map graphics in a standard GIS
> display window, some ideas/guesses how to set the background color:
> 
> * set GRASS_TRANSPARENT var to be TRUE, then use wxPy to color the
> canvas before loading the g.pnmcomp image.
> 
> * as the first layer use d.graph to create a filled polygon from 0-100%
> 
> 
> Hamish

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list