Giter Site home page Giter Site logo

ptpx-2022's Introduction

ptpx-2022

Hello! Maybe you received one of my postcards for the pen plotter postcard exchange or possibly just a casual observer. Either way here is a little explanation about the concept and data behind the plot.

The pen plotter postcard exchange (ptpx) set up by Paul is a fantastic initiative connecting people around the world over the joy of creating and sharing. Although I've been eyeing up a plotter for years I have only recently begun the journey so still new around these parts - this was great motivation, highly recommend!

Concept and Background

Every 10 years after the census in the US, voting district lines are redrawn. In 2022, I had the fortunate position of working on a project with some incredibly kind and smart colleagues presenting what those new boundaries would look like and how the voters of the new district voted in the presidential election of 2020.

This plot is a data visualization of the actual 2022 midterm election results of the US House of Representatives under those new districts. There are two versions of the plot

Dark mode (red and blue) - Digital from Processing

Light mode (pink and light blue) - Digital from Processing

How to read

  1. There are 435 districts, each square represents one district
  2. The color of each square's lines represent the winning political party (Democrat = blue/light blue, Republican = red/pink)
  3. The angle of the slope of the lines in the square match up to the margin of victory. A 2% margin of victory will be a fairly flat slope. A straight vertical line is a blow out of 90% margin (in some instances where there was no opponent it is actually 100% but I have allowed for a 90 max for visual purposes)
  4. The space between the lines in a square varies to make each square lighter or darker so when viewed as a whole it gives the impression of the American flag. By sampling this modified flag image (wrong number of stars and stripes) for the location of each square in the grid and adjusting the line spacing.
  5. The order is alphabetical by state from top left to bottom right. For example, Alabama has 7 districts starting in the top left (6 R and 1 D), Then Alaska's single district (D), Arizona and so on up to Wyoming's single district in the bottom right.

How it's made

  1. Data from US House election results
  2. Processing script, borrowed heavily from this tutorial to read data, draw the lines cropped within the squares.
  3. The fantastic Python vpype and vsketch libraries to lay out to the postcard size, write on postcards, etc
  4. Axidraw A3 pen plotter from Evil Mad Scientist
  5. Staedtler triplus fineliner pens ~0.3mm
  6. Winsor & Newton watercolour postcards (was originally planning on using watercolour pens for a different type of plot)

The prints

ptpx-2022's People

Contributors

codecreative avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.