Creating a Flowchart with TikZ and LaTeX

In this post I’ll discuss how to make simple flowcharts in LaTeX using TikZ. Probably the best collection of TikZ examples can be found at TeXample.net, but there are other helpful examples like these two PDFs, here and here. In case you’re wondering, TikZ is a recursive acronym “TikZ ist kein Zeichenprogramm,” a reminder (in German) that it is not an interactive drawing program.

Continue reading Creating a Flowchart with TikZ and LaTeX

Adding Data Points to Shapefiles

In this post I’ll discuss how to plot data points on a shapefile. In a previous post I discussed how to install basemap using pip, the package manager for Python. Since basemap is an extension of matplotlib, we have a lot of familiar plotting functions and options at our disposal. Of particular importance is the ability to use projection data in plotting the shapefile, and plotting the data points.

Continue reading Adding Data Points to Shapefiles

echo versus printf

Quick Note: When you’re bash scripting and you need to pipe some text into some process, you can use echo with the -n flag to suppress the echo‘s complimentary endline , or you can use printf, but using printf is more portable. Some machines implement echo differently and don’t support the -n flag. I found this advice and a longer explanation at this message board.

Viewing Shapefiles Using Basemap in Python

I heard about a new (to me) tool for viewing shapefiles on this site. It required the installation of basemap which is a part of matplotlib, but the installation turned out to be a little tricky. I found a solution at the blog, I Lessen Data, which pointed me to another interesting post on mapping, So You’d Like to Make a Map Using Python.

Continue reading Viewing Shapefiles Using Basemap in Python