Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Unwanted margins with spmap


From   Thomas Speidel <[email protected]>
To   [email protected]
Subject   Re: st: Unwanted margins with spmap
Date   Tue, 12 Jun 2007 14:43:46 -0600

I'm not familiar with spmap, but have you tried playing with the title options, e.g.:
..., title("example", size(vhuge) margin(l=0) justification(left))

I had a similar but not identical problem with a time series plot. The problem was the labels on the axis. Although I had suppressed labels along the y-axis, I still had to specify labsize(zero) in order to minimize the margins.

Thomas

Friedrich Huebler wrote:

By default, -spmap- from SSC draws graphs that minimize the blank
space around the map. This can be seen with the first example from the
help file.

. use "Italy-RegionsData.dta", clear
. spmap relig1 using "Italy-RegionsCoordinates.dta", id(id)

When titles are added to the map, margins appear on the left and right
side. I would like to remove these margins.

. spmap relig1 using "Italy-RegionsCoordinates.dta", id(id)
title("Title", size(vhuge)) subtitle("Subtitle", size(vhuge))

Through trial and error, the margins can be reduced with the -graph
display- command. By repeatedly changing the value in the -xsize()-
option, I arrived at a map with no extra blank space on the left and
right side.

. graph display, xsize(3.4)

How can I draw a map with a title that has no added space around the
map, without having to resort to the repeated use of -graph display-?

Friedrich
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index