Giter Club home page Giter Club logo

tufte's Introduction

Tufte in Python

See the Jupyter notebook for more details.

A set of four plots based on Edward R. Tufte's designs in The Visual Display of Quantitative Information:

  • bar
  • boxplot
  • line
  • scatter

All of these plots aim to maximize data-ink, the "non-erasable core of a graphic."

bar

The "boxplot" (bplot), for example, removes boxes and caps and simply shows a dot between two lines. The dot represents the median and the lines correspond to the top and bottom 25% of the data. The empty space between the lines is the interquartile range.

bplot

The line and scatter plots make use of Tufte's range-frame concept, which aims to make the frame (axis) lines "effective data-communicating element[s]" by showing the minimum and maximum values in each axis. The default line style uses a circle marker with gaps between line segments.

line

scatter

This is built on top of matplotlib. This means other functions or methods can be used in conjunction with tufte plots.

Note: plots shown for demonstration purposes only, thus no titles or axis labels are used.

tufte's People

Contributors

juanshishido avatar

Stargazers

Daniel Trigo avatar Jonne Sälevä avatar Markus F avatar Eyad Sibai avatar Bryné Hadnott avatar Jan Ole von Hartz avatar Lucas Agustín Vittor avatar Mark Tuddenham avatar  avatar Siegfried Gessulat avatar Stewart Engart avatar Dominik Straub avatar  avatar Aditya Bhargava avatar  avatar  avatar Simone Santoni avatar Johannes Weytjens avatar Elias Dorneles avatar Hongren Gong avatar karl yerkes avatar  avatar Alexander Schaaf avatar [redacted] avatar Leo Lu avatar David Landa avatar Julien Barrier avatar  avatar Petter Strandmark avatar Vasily Korf avatar Josh Hadro avatar Tim Black avatar Martin Dengler avatar  avatar Ian Zhang avatar Rongjie Hong avatar Jake Gysland avatar Harry Mavroforakis avatar Kyle Polich avatar Harrison Cavallero avatar Tom Hummel avatar

Watchers

James Cloos avatar Kyle Polich avatar  avatar  avatar

tufte's Issues

Tick label positioning

In some cases with range_frame(), it is possible for the tick label text to overlap. This should only happen at the extremes of the range. Thus, if an overlap is detected, remove the second or second to last label.

Tick label rounding

With float labels, there can be rounding error. For example, 1.05 rounds to 1.1. The label based on range_frame() will show 1.1, which isn't the actual maximum value.

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.