Talking about wx monitors, d.rast.leg does not really place legend next to
a raster map because GRASS_FRAME is not used at all. So it basically draws
legend and then raster map over it, so you can just change the order and
that should fix it but you will still have overlapping raster and legend.

Anna


On Wed, May 21, 2014 at 1:46 AM, Markus Neteler <[email protected]> wrote:

> Hi,
>
> could d.rast.leg somehow leverage below "library" code? At time it is
> suboptimal in placing the legend next to a raster map while being
> generally very handy for cmd line junkies...
>
> thanks
> Markus
>
> On Wed, May 21, 2014 at 5:07 AM,  <[email protected]> wrote:
> > Author: annakrat
> > Date: 2014-05-20 20:07:17 -0700 (Tue, 20 May 2014)
> > New Revision: 60385
> >
> > Modified:
> >    grass/branches/releasebranch_7_0/gui/wxpython/mapwin/decorations.py
> > Log:
> > wxGUI/legend: change default legend position so that legend histogram is
> not cut off (merge from trunk, r60384)
> >
> > Modified:
> grass/branches/releasebranch_7_0/gui/wxpython/mapwin/decorations.py
> > ===================================================================
> > --- grass/branches/releasebranch_7_0/gui/wxpython/mapwin/decorations.py
> 2014-05-21 03:06:27 UTC (rev 60384)
> > +++ grass/branches/releasebranch_7_0/gui/wxpython/mapwin/decorations.py
> 2014-05-21 03:07:17 UTC (rev 60385)
> > @@ -211,7 +211,7 @@
> >          self._id = 0
> >          self._name = 'legend'
> >          # TODO: synchronize with d.legend?
> > -        self._defaultAt = 'at=5,50,2,5'
> > +        self._defaultAt = 'at=5,50,7,10'
> >          self._cmd = ['d.legend', self._defaultAt]
> >
> >      def GetPlacement(self, screensize):
> >
> > _______________________________________________
> > grass-commit mailing list
> > [email protected]
> > http://lists.osgeo.org/mailman/listinfo/grass-commit
> _______________________________________________
> grass-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to