Skip to content

An expanded data visualization project based upon Python Crash Course third edition

Notifications You must be signed in to change notification settings

nathanieldorn/pcc-datavis

Repository files navigation

A Basic Data Visualization Project with Matplotlib and Plotly

Inspired by the data visualization projects in Python Crash Course, 3rd edition.

To create visuals, remove comments from the desired function calls in main.py. Only one may be run at a time.

Squares

Create either a line or dot plot of the square of numbers.

Line Plot (squared_num_line)

The array, input_values, contains the integers, one through eight, to be squared and plotted. The function call will only display the result.

Dot Plot (squared_num_points)

The array, x_values, represents the integers to be squared and is created using a list comprehension. It's counterpart list, y_values, uses list comprehension to calculate the square. The function call will both display and save a file of the result.

Squares Plot

Random Walks

Creates a scatter plot of a random walk from a starting cartesian position of (0, 0). The plot shades from white to green with both the start and end points highlighted in orange. Each step is randomly chosen within a defined range. When run, the user will be prompted to save the output or not, after which the result will be displayed via pyplot.

Random Walk Plot

Dice Rolling

Creates a histogram of a single die or multiple dice roll of specified size. The size and number of die must be changed within the die.py and roll_dice.py files. Plotly is used to render the histogram as HTML and written to the file dice_histogram_d<# of die sides>.

Die Histogram

About

An expanded data visualization project based upon Python Crash Course third edition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages