Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Julia

You're reading from  Mastering Julia

Product type Book
Published in Jul 2015
Publisher
ISBN-13 9781783553310
Pages 410 pages
Edition 1st Edition
Languages

Basic graphics in Julia


We have already encountered some graphics in the previous chapters of this book, both text plots and two-dimensional graphics using modules such as ASCIIPlots and Winston. In this section, we are going to look a little further into these and similar packages.

Text plotting

In Chapter 1, The Julia Environment, we had seen some simple graphics using the ASCII plots package.

This has largely been replaced with a second package, the TextPlots package. While it does not provide sophisticated visualization, it is worth a look as it is very lightweight and loads quickly, being independent of any graphic libraries or drivers.

The basic call uses a function of a single variable together with an optional range of values for that variable.

The range can be specified in the x0:x1 form or as separate arguments (,,,.x0,x1). If no range is provided, then a default of -10:10 is used.

It is possible to define more than one function, but the display can be confusing.

Consider the following...

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 €14.99/month. Cancel anytime}