Graphing data, Python Programming

Write a program that will take price data for stocks and print it graphically to the screen. Your program should begin by asking the user for the file name. It should then create a graphics window and plot the date versus price. You may assume that the file has the following format:


where the first line describes the columns and each subsequent line of the file describes the stock price on a given day, separated by commas. Note that the historical data (from Nasdaq) lists the information in reverse chronological order, while graphs of financial data always start with the oldest date first. Your graph should have the oldest date on the left, progressing to the newest date on the right.

Hint: You may assume that the price of any stock is positive and below $1000, so, the y-coordinates of your window should between 0 and 1000. You may also assume that you are graphing data from one year. There are at most 52 weeks * 5 business days/week = 260 days per year, so your x-coordinates should range from 0 to 260 (or a bit extra to make it look nice).
Posted Date: 3/26/2013 3:27:48 PM | Location :

Related Discussions:- Graphing data, Assignment Help, Ask Question on Graphing data, Get Answer, Expert's Help, Graphing data Discussions

Write discussion on Graphing data
Your posts are moderated
Related Questions
Procedures in Firrst-class objects In Python, unlike  many  other  languages, methods are behave in much  the same way as num­ bers:  they  can be stored as values  of variabl

For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

Your task is to construct a translator from the subset of Python in Project 3 intocontinuation-passing style (CPS). Of course, the expected way of accomplishing this is to trans

how to use re.sub to seperate distint words and phrases when translating text from English to Spanish or vis versa in python programming

Simple expressions A cornerstone of a programming language is the  ability  to compute expressions.  We will start here  with  arithmetic expressions, just to take the  concep

how to make a python programme for van der waals equation of state with surface discontinouty

The goal of this exercise is to write a \business phrase" generator, which each time it is called produces lines of business speak, such as: It's time that we became uber-effici

Task (Anagrams) Write a function that checks whether two words are anagrams. Two words are anagrams if they contain the same letters. Fore example, silent and listen are anagrams.

how to calculate angle between 2 moving line in 2d space

For and While   If we want  to do some operation or set of operations various  times, we can handle the process  in several  different types.  The most straightforward types