Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mathematica data visualization

You're reading from   Mathematica data visualization Create and prototype interactive data visualizations using Mathematica

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781783282999
Length 146 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Nazmus Saquib Nazmus Saquib
Author Profile Icon Nazmus Saquib
Nazmus Saquib
Arrow right icon
View More author details
Toc

Data importing and basic plots

Equipped with a crash course on the Mathematica programming language, we can really start having some fun with data. The rest of the chapter will teach us how to load simple datasets and plot some values. We will learn about a few different kinds of plots and the methods of styling and customizing them.

Importing data into Mathematica

Mathematica provides a very rich data importing and exporting suite. The two commonly used functions to load data into a worksheet are Import and ReadList. In this section, we will use Import to load a dataset into Mathematica and plot it. We will style our plot, and explore some features of plotting functions that are useful.

SetDirectory[] and NotebookDirectory[]

To load our dataset, we need to tell Mathematica where to look for it. The structure of the code and data provided in the accompanying book's website follow the same pattern for every chapter. Under each chapter folder, there is a folder called data. The folder chapter2...

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 $19.99/month. Cancel anytime
Banner background image