-
Recent Posts
- Unfinished Projects: One last programming lesson from my dad
- How advertising ruined the rickroll
- Ever’s First Starship
- The CyberConstitution Class
- Processing a long list efficiently in Python
- The education community needs a better online discussion tool
- Ninety Days on Github
- Github streak days 31-60: What I’ve learned
- What I’ve learned from my first 30-day GitHub streak
- How IPython Notebook and Github have changed the way I teach Python
Archives
Categories
Meta
Monthly Archives: December 2012
Balloon Ninja: Releasing balloons
Back to Tutorial Contents Showing a balloon In the previous section we created an empty game window, and gave the window a background color. Now let’s add a balloon to the screen. First we need to describe what a balloon is. … Continue reading
Balloon Ninja: Creating a screen
Back to Tutorial Contents In this first section of the Balloon Ninja tutorial, we will install Pygame and create an empty screen. Installing Pygame If you are using ubuntu, you can install pygame in one line: Creating a screen Here is … Continue reading
Balloon Ninja: A Simple Pygame Tutorial
Introduction If you are learning to program in Python, writing your own game is a great way to immerse yourself in the language. Writing a game pushes you to understand the core parts of the language such as data structures … Continue reading
Python or Ruby: 6 Months on Hacker News
I teach high school math and science, and over the last couple years I have started to teach an Introduction to Programming class. This past spring I decided to reassess whether I should continue to base this class in Python. … Continue reading
Matplotlib Basemap Tutorial: Interesting datasets to explore
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In this tutorial, we have learned how to make a simple map and plot points on that map. We have learned how to pull those points from a large dataset. Now … Continue reading
Posted in programming
Tagged datasets, lat lon, matplotlib, matplotlib.basemap, phsgeek, python
6 Comments
Matplotlib Basemap Tutorial: Plotting global earthquake activity
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In the last section of the tutorial, we learned how to plot single points on our maps, and how to plot sets of points on our maps. We will use both … Continue reading
Posted in programming
Tagged data visualization, matplotlib, matplotlib.basemap, phsgeek, python
2 Comments
Matplotlib Basemap Tutorial: Plotting points on a simple map
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. In this part of the tutorial, we will see how to plot points on a map. We will start out by plotting some communities on Baranof Island in southeast Alaska. Here … Continue reading
Matplotlib Basemap Tutorial: Making a simple map
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. Now that you have matplotlib and basemap installed, let’s try to make a simple map of the world. This tutorial is adapted from the Scipy Cookbook. Open your favorite text editor, … Continue reading
Matplotlib Basemap Tutorial: Installing matplotlib and Basemap
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. Python’s matplotlib package is an amazing resource, and the Basemap toolkit extends matplotlib’s capabilities to mapping applications. Installing these packages is straightforward using Ubuntu’s package management system, but these packages may not work … Continue reading
Mapping Global Earthquake Activity: A matplotlib Basemap tutorial
Update: This tutorial has been updated and moved to http://introtopython.org/visualization_earthquakes.html. Introduction If you are a python programmer, you have probably heard of matplotlib. It’s a wonderful tool for data visualization work, but it can be confusing to work with at first. … Continue reading
Posted in programming
Tagged matplotlib, matplotlib.basemap, phsgeek, python, tutorial
Leave a comment