Home > Uncategorized > Instructions for tkintermap31.py

Instructions for tkintermap31.py

October 28, 2010 Leave a comment Go to comments

tkintermap31 is written in Python 3.1.  If seems to work fine on Windows XP machines running Python 3.1.  This is a first draft.

To run this, you need:

The SVG file from Wikimedia, here (My copy obtained 26 Aug 2010)
The processed data file from FlowingData.com, saved as a .csv file  (My copy obtained 26 Aug 2010)
Correct 3 errors in the SVG file.  tkintermap31 will not run correctly without these corrections:
1) Line   189: In “Yukon-Koyukuk, AL”, change “AL” to “AK”
2) Line  7108: Change “NO” to “MO”
3) Line 15095: Change “WIO” to “WI”
You might want to check that the file names are the same as appear near the top of tkintermap31.py.

When you run the program (if it works) here is what should happen: You’ll see a map of the US, colored in a red-ish color scheme (like in FlowingData.com’s maps).  There should be 3 listboxes on the right, allowing you to choose the data set you want represented, the month within that data set, and the states you would like to select (no need to select any).

Instructions:

Selecting counties:

1) click on a single county to select it
2) control-click on a single county to add it to the selection
3) click and drag mouse to select a rectangle of counties (all counties that _intersect_ the rectangle are selected)
4) select one or more states from the “Select states” menu by clicking, control-clicking, shift-clicking, etc.

Selected counties will be outlined in black.
You cannot individually de-select counties or rectangles of counties.
4) does not work in combination with 1)-3)

Zoom:

If one or more counties are selected, pressing “z” or “Z” will zoom in on the selected counties.

Un-Zoom:

If zoomed, pressing control-z or control-Z will return you to the full map.
(Be patient, it takes a while to draw the map.)

Resizing:

If you have resized the window, and want the map resized as well, press “r” or “R”.
(Again, be patient if resizing the full map.)

Errors:

If you find any errors, typos, whatever, please let me know.

About these ads
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: