Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Getting Started with Haskell Data Analysis

You're reading from  Getting Started with Haskell Data Analysis

Product type Book
Published in Oct 2018
Publisher Packt
ISBN-13 9781789802863
Pages 160 pages
Edition 1st Edition
Languages
Author (1):
James Church James Church
Profile icon James Church

Line plots of a single variable

In this section, we'll focus on an introduction to EasyPlot. So, we're going to be installing the gnuplot command-line tool and the EasyPlot Haskell library. EasyPlot is just a Haskell wrapper for gnuplot. It allows us to interact with the gnuplotting utility from within Haskell and our IHaskell environment. We need data, and for that we're going to be pulling data from Yahoo Finance. I like Yahoo Finance because I can obtain the full history of any publicly traded company; and in this section, we're going to end with our first plot. Let's go to our Terminal, but first we need to install gnuplot. The command is as follows:

Now, let's do a cabal update and then cabal install EasyPlot, as shown in the following example:

If you didn't get any error messages, that means you're ready to go. Now we need data;...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}