Statalist The Stata Listserver


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

st: Unwanted margins with spmap


From   "Friedrich Huebler" <[email protected]>
To   [email protected]
Subject   st: Unwanted margins with spmap
Date   Tue, 12 Jun 2007 16:25:22 -0400

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/



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