line color only draws if the symbol is in the region bounds, not if it
is in the NULL bands at the sides of the xmon. Fill color draws
regardless of display region.
I have written two new fancy compass symbols, one looks good on the
screen, the other looks good for postscript. (due to width=0 in the
xmon, or width=too_thick in ps.map)
# display mon (draw border on top)
echo "symbol extra/compass_xmon 60 10 90 black grey" | d.graph
# postscript (draw border behind)
ps.map out=test.ps << EOF
point 10% 82%
symbol extra/compass_ps
size 90
end
EOF
# possible xmon compromise (draw thick border behind)
echo -e "width 4\nsymbol extra/compass_ps 200 50 50 black grey" | d.graph
The current extra/compass looks terrible in ps.map output.
line color only draws if the symbol is in the region bounds, not if it
is in the NULL bands at the sides of the xmon. Fill color draws
regardless of display region.
D_symbol() uses R_polygon_abs() for the fill and D_{move,cont}_abs()
for the outline. The latter clip against the clip window, which
defaults to the map window (as set by D_do_conversions()) unless
explicitly set with D_set_clip_window().
Hamish wrote:
> interesting observation:
> echo "symbol extra/compass 60 10 90 black grey" | d.graph
>
> line color only draws if the symbol is in the region bounds, not if it
> is in the NULL bands at the sides of the xmon. Fill color draws
> regardless of display region.
Glynn wrote:
D_symbol() uses R_polygon_abs() for the fill and D_{move,cont}_abs()
for the outline. The latter clip against the clip window, which
defaults to the map window (as set by D_do_conversions()) unless
explicitly set with D_set_clip_window().
ah, ok. Changed D_symbol() to use R_{move,cont}_abs()
In 6.3 also added a new fn: D_set_clip_window_to_screen_window()
and a new symbol: extra/fancy_compass