Giter Site home page Giter Site logo

data_visualization's Introduction

Data_Visualization

Project two from 'Python Crash Course' by Eric Matthes

This project involves data visualization. I tend to use chart and graph interchangeably in my description below.

Exercise 15-10, practicing with both libraries: Try using matplotlib to make a die-rolling visualization, and use Pygal to make the visualization for a random walk. I'm calling the matplotlib exercise 15-10a and the Pygal problem 15-10b. I've included my notes for how to lay out 15-10a, as well as the graph and the die class that Eric Matthes demonstrated in the book.

For 15-10b, I could not get a random walk chart to 'go' in Pygal, so I created an xy chart that would go!

One error I kept running into was a memory error that would prevent any graph I tried to render from going. I learned that this error could be due to having a 32 bit version of Python on an operating system that is 64 bit. Sure enough, once I uninstalled the 32 bit version of Python 3.5.2 from both of my computers and installed the 64 bit version, the memory error removed itself.

Then I had a new error: 'This XML file does not appear to have any style information associated with it. The document tree is shown below.' This was due to how I was trying to set up my chart height and width, which I attempted to do like this: xy_chart = pygal.XY(height=10, width=6)

Once I changed things to this: HEIGHT = 600 WIDTH = 600 xy_chart = pygal.XY(height=HEIGHT, width=WIDTH)

Voila! I got a chart.

In chapter 16, I'm downloading data sets and creating charts and graphs from the data. The first part of chapter 16 involves working with csv files, graphing out high and low temperatures for different citiess. In ch_16_ex_16-1, I downloaded weather info for San Francisco, CA for 2014 in a csv file and converted some of the data into a chart(graph) that shows high and low temperatures.

In ch_16_ex_16_2, I integrated two previous charts (Sitka, AK and Death Valley, CA) I did during the book exercises in an attempt to directly compare/contrast the temperature ranges.

data_visualization's People

Contributors

buttermilkcake avatar

Watchers

James Cloos 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.