Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (8 votes)
66 views

Full Matplotlib For Python Developers Effective Techniques For Data Visualization With Python 2nd Edition Yim PDF All Chapters

Effective

Uploaded by

rebbiejiaoni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (8 votes)
66 views

Full Matplotlib For Python Developers Effective Techniques For Data Visualization With Python 2nd Edition Yim PDF All Chapters

Effective

Uploaded by

rebbiejiaoni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

Download the full version of the textbook now at textbookfull.

com

Matplotlib for Python Developers Effective


techniques for data visualization with Python
2nd Edition Yim

https://textbookfull.com/product/matplotlib-for-
python-developers-effective-techniques-for-data-
visualization-with-python-2nd-edition-yim/

Explore and download more textbook at https://textbookfull.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Python Data Analytics with Pandas, NumPy and Matplotlib,


2nd Edition Fabio Nelli

https://textbookfull.com/product/python-data-analytics-with-pandas-
numpy-and-matplotlib-2nd-edition-fabio-nelli/

textbookfull.com

Python Data Analytics: With Pandas, NumPy, and Matplotlib


Nelli

https://textbookfull.com/product/python-data-analytics-with-pandas-
numpy-and-matplotlib-nelli/

textbookfull.com

Practical Python Data Visualization: A Fast Track Approach


To Learning Data Visualization With Python Ashwin Pajankar

https://textbookfull.com/product/practical-python-data-visualization-
a-fast-track-approach-to-learning-data-visualization-with-python-
ashwin-pajankar/
textbookfull.com

Agents and Data Mining Interaction 10th International


Workshop ADMI 2014 Paris France May 5 9 2014 Revised
Selected Papers 1st Edition Longbing Cao
https://textbookfull.com/product/agents-and-data-mining-
interaction-10th-international-workshop-admi-2014-paris-france-
may-5-9-2014-revised-selected-papers-1st-edition-longbing-cao/
textbookfull.com
Supply Chain Management Strategy Planning and Operation 6e
Indian Subcontinent Edition Sunil Chopra

https://textbookfull.com/product/supply-chain-management-strategy-
planning-and-operation-6e-indian-subcontinent-edition-sunil-chopra/

textbookfull.com

Screened Stages: On Theatre in Film 1st Edition Joseph

https://textbookfull.com/product/screened-stages-on-theatre-in-
film-1st-edition-joseph/

textbookfull.com

Introductory Solid State Physics with MATLAB Applications


1st Edition Javier E. Hasbun (Author)

https://textbookfull.com/product/introductory-solid-state-physics-
with-matlab-applications-1st-edition-javier-e-hasbun-author/

textbookfull.com

Barasi s Human Nutrition 3rd ed A Health Perspective 3rd


Edition Mary E. Barasi

https://textbookfull.com/product/barasi-s-human-nutrition-3rd-ed-a-
health-perspective-3rd-edition-mary-e-barasi/

textbookfull.com

An Assessment Framework for Compliance with International


Space Law and Norms: Promoting Equitable Access and Use of
Space for Emerging Actors David Lindgren
https://textbookfull.com/product/an-assessment-framework-for-
compliance-with-international-space-law-and-norms-promoting-equitable-
access-and-use-of-space-for-emerging-actors-david-lindgren/
textbookfull.com
The schematic state race transnationalism and the politics
of the census First Paperback Edition Thompson

https://textbookfull.com/product/the-schematic-state-race-
transnationalism-and-the-politics-of-the-census-first-paperback-
edition-thompson/
textbookfull.com
Matplotlib for Python Developers
Second Edition

Effective techniques for data visualization with Python


Aldrin Yim
Claire Chung
Allen Yu

BIRMINGHAM - MUMBAI
Matplotlib for Python
Developers Second Edition
Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the publisher,
except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express
or implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held
liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and
products mentioned in this book by the appropriate use of capitals. However, Packt Publishing
cannot guarantee the accuracy of this information.

Commissioning Editor: Amey Varangaonkar


Acquisition Editor: Varsha Shetty
Content Development Editor: Mayur Pawanikar
Technical Editor: Prasad Ramesh
Copy Editor: Vikrant Phadke
Project Coordinator: Nidhi Joshi
Proofreader: Safis Editing
Indexer: Mariammal Chettiyar
Graphics: Tania Dutta
Production Coordinator: Shantanu Zagade

First published: November 2009


Second edition: April 2018

Production reference: 1200418

Published by Packt Publishing Ltd.


Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78862-517-3

www.packtpub.com
Cancer has taken away my grandfather, my aunt, and my friend, I hate cancer. This book is
dedicated to the memory of my grandfather, ChiuKhan Chan, who thought I shouldn’t study that
much. May he rest in peace.
– Aldrin Yim
mapt.io

Mapt is an online digital library that gives you full access to


over 5,000 books and videos, as well as industry leading tools
to help you plan your personal development and advance your
career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with
practical eBooks and Videos from over 4,000 industry
professionals

Improve your learning with Skill Plans built especially


for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content


PacktPub.com
Did you know that Packt offers eBook versions of every book
published, with PDF and ePub files available? You can upgrade
to the eBook version at www.PacktPub.com and as a print book
customer, you are entitled to a discount on the eBook copy. Get
in touch with us at service@packtpub.com for more details.

At www.PacktPub.com, you can also read a collection of free technical


articles, sign up for a range of free newsletters, and receive
exclusive discounts and offers on Packt books and eBooks.
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
Contributors
About the authors
Aldrin Yim is a PhD candidate and Markey Scholar in the
Computation and System Biology program at Washington
University, School of Medicine. His research focuses on
applying big data analytics and machine learning approaches in
studying neurological diseases and cancer. He is also the
founding CEO of Codex Genetics Limited, which provides
precision medicine solutions to patients and hospitals in Asia.

Great pleasure to work with Allen and Claire. Also special thanks to Mayur and his team for
making the writing process comfortable to us.

Claire Chung is pursuing her PhD degree as a


Bioinformatician at the Chinese University of Hong Kong. She
enjoys using Python daily for work and lifehack. While
passionate in science, her challenge-loving character motivates
her to go beyond data analytics. She has participated in web
development projects, as well as developed skills in graphic
design and multilingual translation. She led the Campus
Network Support Team in college, and shared her experience in
data visualization in PyCon HK 2017.
Allen Yu, PhD, is a Chevening Scholar, 2017-18, and an MSC
student in computer science at the University of Oxford. He
holds a PhD degree in Biochemistry from the Chinese
University of Hong Kong, and he has used Python and
Matplotlib extensively during his 10 years of bioinformatics
experience.

Apart from academic research, Allen is the co-founder of Codex


Genetics Limited, which aims to provide a personalized
medicine service in Asia through the use of the latest genomics
technology.

I feel honored to take part in this fantastic project. Special thanks to Mayur and Aldrin for leading
the production process. Besides, I wish to thank my fiancée for her love and support. I am also
grateful to be sponsored by the Chevening Scholarship, which is funded by the UK Foreign and
Commonwealth Office (FCO) and partner organizations.
What this book covers
Chapter 1 , Introduction to Matplotlib, gets you familiar with the
capabilities and functionalities of Matplotlib.

Chapter 2 , Getting Started with Matplotlib, gets you started with


basic plotting techniques using Matplotlib syntax.

Chapter 3 , Decorating Graphs with Plot Styles and Types, shows


how to beautify your plots and select the right kind of plot that
communicates your data effectively.

Chapter 4 , Advanced Matplotlib, teaches you how to group


multiple relevant plots into subplots in one figure using
nonlinear scales, axis scales, plotting images, and advanced
plots with the help of some popular third-party packages.

Chapter 5 , Embedding Matplotlib in GTK+3, shows examples of


embeding Matplotlib in applications using GTK+3.

Chapter 6 , Embedding Matplotlib in Qt 5, explains how to embed


a figure in a QWidget, use layout manager to pack a figure in a
QWidget, create a timer, react to events, and update a
Matplotlib graph accordingly. We use QT Designer to draw a
simple GUI for Matplotlib embedding.
Chapter 7 , Embedding Matplotlib in wxWidgets Using
wxPython, shows how you can use Matplotlib in the wxWidgets
framework, particularly using wxPython bindings.

Chapter 8 , Integrating Matplotlib with Web Applications,


teaches you how to develop a simple site that displays the price
of Bitcoin.

Chapter 9 , Matplotlib in the Real World, begins our journey of


understanding more advanced Matplotlib usage through real-
world examples.

Chapter 10 , Integrating Data Visualization into the


Workflow, covers a mini-project combining the skills of data
analytics with the visualization techniques you have learned.
About the reviewer
Nikhil Borkar has also worked as a contributing author. He
holds the CQF designation and a PG degree in Quantitative
Finance from the University of Mumbai. He works as an
independent fintech and legal consultant. Prior to this, he was
with Morgan Stanley Capital International as a Global RFP
Project Manager. He has worked on Quantitative Finance and
Economic Research projects using R, Python, and Excel VBA.
He loves to approach problems in a multidisciplinary, holistic
way. He is actively working on Machine Learning, AI, and Deep
Learning projects.
Packt is searching for
authors like you
If you're interested in becoming an author for Packt, please
visit authors.packtpub.com and apply today. We have worked with
thousands of developers and tech professionals, just like you, to
help them share their insight with the global tech community.
You can make a general application, apply for a specific hot
topic that we are recruiting an author for, or submit your own
idea.
Table of Contents
Title Page

Copyright and Credits

Matplotlib for Python Developers Second Edition

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the authors

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book


Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

1. Introduction to Matplotlib

What is Matplotlib?

Merits of Matplotlib

Easy to use

Diverse plot types

Hackable to the core (only when you want)

Open source and community support

What's new in Matplotlib 2.x?

Improved functionality and performance

Improved color conversion API

and RGBA support

Improved image support

Faster text rendering

Change in the default animation

codec
Changes in default styles

Matplotlib website and online documentation

Output formats and backends 

Static output formats

Raster images

Vector images

Setting up Matplotlib

Installing Python

Python installation for Windows 

Python installation for macOS

Python installation for Linux

Installing Matplotlib

About the dependencies

Installing the pip Python package

manager

Installing Matplotlib with pip

Setting up Jupyter Notebook

Starting a Jupyter Notebook session

Running Jupyter Notebook on a remote

server
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
Editing and running code

Manipulating notebook kernel and cells

Embed your Matplotlib plots

Documenting in Markdown

Save your hard work!

Summary

2. Getting Started with Matplotlib

Loading data

List

NumPy array

pandas DataFrame

Our first plots with Matplotlib

Importing the pyplot

Line plot

Scatter plot

Overlaying multiple data series in a plot

Multiline plots

Scatter plot to show clusters

Adding a trendline over a scatter plot

Adjusting axes, grids, labels, titles, and legends

Adjusting axis limits


Adding axis labels

Adding a grid

Titles and legends

Adding a title

Adding a legend

A complete example

Saving plots to a file

Setting the output format

Setting the figure resolution

Jupyter support

Interactive navigation toolbar

Configuring Matplotlib

Configuring within Python code

Reverting to default settings

Global setting via configuration rc file

Finding the rc configuration file

Editing the rc configuration file

Summary
3. Decorating Graphs with Plot Styles and Types

Controlling the colors

Default color cycle

Single-lettered abbreviations for basic colors

Standard HTML color names

RGB or RGBA color code

Hexadecimal color code

Depth of grayscale

Colormaps

Creating custom colormaps

Line and marker styles

Marker styles

Choosing the shape of markers

Using custom characters as markers

Adjusting marker sizes and colors

Fine-tuning marker styles with keyword

arguments

Line styles

Color

Line thickness

Dash patterns
Designing a custom dash style

Cap styles

Spines

More native Matplotlib plot types

Choosing the right plot

Histogram

Bar plot

Setting bar plot properties

Drawing bar plots with error bars using

multivariate data

Mean-and-error plots

Pie chart

Polar chart

Controlling radial and angular grids

Text and annotations

Adding text annotations

Font

Mathematical notations

Mathtext

LaTeX support
External text renderer

Arrows

Using style sheets

Applying a style sheet

Creating own style sheet

Resetting to default styles

Aesthetics and readability considerations in styling

Suitable font styles

Effective use of colors

Keeping it simple

Summary

4. Advanced Matplotlib

Drawing Subplots

Initiating a figure with plt.figure()

Initiating subplots as axes

with plt.subplot()

Adding subplots with plt.figure.add_subplot()

Initiating an array of subplots

with plt.subplots()

Shared axes
Random documents with unrelated
content Scribd suggests to you:
"Well, whatever the explanation," said Cyprian, "it is only certain, as it
was to another man before me, that, whereas I was blind, now I see. I see
the truth of the Resurrection."

Bright with revelation was Ferlie's face.

"Dear, it is enough and more than enough. The rest follows as it is


needed, making all things possible for us who can look forward into
Eternity. I fear nothing, in whatever shadowy valley our steps may be
turned ... now. The light will break some time when our eyes are strong to
bear it. We have been united in all things save the one thing that was
needful: belief in the Life Everlasting. Without that faith our love must have
mastered us. And I knew it. Your Frantic Master drives as his slaves those
who see no further than the end of this fragment of life. Cyprian, my lover,
do you not understand how it is that I am not afraid to stay beside you
now?"

Across the gilded bamboo leaves the children's voices stole to mingle
incongruously with the shouts of the returning fishermen, to the drawling
melody of——

"A Friend Who never changeth, Whose love will never die.
Our earthly friends may fail us,
And change with changing years ..."

Cyprian slipped out of the hammock and raised Ferlie to her feet.

* * * * * *

Yet, finally, the leadership, even in mystical matters, was to devolve on


him.

There were only thin wooden walls to the little forest bungalow.

Ferlie and he had been sleeping indoors since his illness so that she
might have all medicines and the paraphernalia for nursing within easy
reach.

Therefore, it happened that in turning his head restlessly to escape an


intruding beam of moonlight through the curtainless door, he roused
himself with sudden completeness, straining to catch the echoes of quiet
sobbing.

He only paused an instant.

Ferlie was lying face downwards: her forehead on her arms, which
gleamed lily-coloured in the pure light.

He knelt beside her, attempting to raise her head.

"My dear... My dear..."

She grasped thankfully at the steadying sensitive fingers. "Help me,


Cyprian! You were always, really, the stronger. Help me to conquer it.... I
know you have thought that everything mattered a great deal more to you
than to me. That I was satisfied with the knowledge that the end is not yet.
But sometimes—at night—Heaven is very far away and earth is most
powerfully real, and doubts creep over me, who have laid the great burden
of this faith on you, whether I am fit to bear the burden of my own human
loving. You see, Cyprian, there is one instinct given to women at Creation;
the roots of which are in Creation itself.

"John is mine by duty and Thu Daw is yours by desire, but I want—and,
at the moment, I'd sell my soul to eternal death to make it come true—your
son in my arms ... through love...."

So came again to Cyprian the inexorable phantom of that Master of


whose subjection he had been made falsely confident by the soothing
sympathy of a celibate's idealism and the magic of Ferlie's trust, a few short
hours back.

Though he came in the form of an angel of light; though he came in the


form of a roaring lion; though now in a more mysterious guise than either, it
was the same despotic power which drove and drew.
How to battle now with this image of shadowy radiance? And, after all,
why? He summed up the matter afresh. If there was not truth here it was
nowhere, and only in following the truth could man be set free of his ills.
Thus had taught that same Nazarene, whose spoken word of two thousand
years ago was causing all the trouble; since even in the sceptical circles of
modern scientific research men were to be found to follow the gleam along
His trail. Across which lay Ferlie exhausted; himself hesitating above her in
the knowledge that she would yield, inevitably, to the guidance of his
groping hands in the dark.

He had said to her, "I see the truth of the Resurrection," and she had
replied that all else followed; but she had not then meant to signify the
strength for this sacrifice. And he saw, blindingly, that there might be no
half-measures. The ghost of an unborn child barred the way of compromise.

Shaken with pain, mental and physical, Cyprian of the once all-
satisfying ethical agnosticism called with the impotent despair which is akin
to anger upon that Lover who stood between them as lovers, and who was
becoming in conception unwaveringly the same as the God who brooded
over the disciplined Churches.

"Why should Ferlie let them torture her?" he had asked fiercely again
and again of himself in the past, and now that the power lay with him to
stay the hated pressure he found himself weakly refraining instead with the
question, "why should I let them torture me?"

Even if separation had spelt material death for them both, Ferlie's
Church would concentrate only upon the spiritual death their life together
must effect.

Had not the time really come to dismiss as out-worn sentimentality this
talk of a soul's death?

His own, such as it was, and if he might barter, and gladly, for the
fathomable happiness of To-day, despite that secret glimpse of wisdom
imparted during his unconscious hours. But what of Ferlie's soul, such as
That was, and now in his keeping—a stainless loyal Existent?
He had fought to make it see with material vision and the mastering
Force had fought on his side.

Yes, she had indeed fallen, spent, in the fearful starlessness and it was
his at last exultingly to lead.

Incoherent shreds of forgotten argument worried him. Magi or


shepherds ... the wise with their great responsibilities....

He became contemptuously aware of the aguish shaking of his body.


How did one pray? ... How did one pray? ... The opalescent tropical dawn
found him still at her side, his hold unrelaxed of hands now at rest, the glory
of her hair making a halo about the face of a very tired sleeping child.

Above the dim blue mists still shrouding the patient jungle the sun
floated, a scarlet ball, heralding the resurrection of another day.

Resurrection. That whisper continued with its insistence upon horizons


beyond the vision of all earthly eyes.

Others, like the legendary Er, had proved that the pulsing of the soul
does not cease with the pulsing of the heart; nevertheless it was well-nigh
impossible to rest one's faith in this matter upon the experiences of others.
Just in this matter. One was prepared to believe the incredible statements of
scientists and astronomers without wrestling individually with their proofs.
Why not, therefore, the vision of those who had eyes to see and ears to hear
beyond the grave? His own past contact with that death-state was failing to
inspire now that his body felt, once more, gloriously alive. One had to
remember not to forget.

"Nothing," had said that exasperating duplicate of St. Francis in the


islands, "can take away one's spiritual experiences."

To that slender link with the future he must trust. Many had not so much
and yet walked untroubled.

Was there not some special revelation for those who, not having seen,
were yet ready outside Gethsemane's gates with the bitter admission, "Thou
has conquered, O pale Galilean"? The wraith of the dying Emperor, forced
to accept such defeat, seemed to smile mockingly at him from the distorted
patches of light and shade outside.

Cyprian appreciated afresh that Ferlie would hardly prove courageous


enough to face her own defeat now without waiting on his decision. His to
lead, forward or back.

And with the poignant realization something snapped. He rose stiffly to


his feet to stand a moment at the window, drawing the salt sea-breeze into
his lungs.

The surrender had become suddenly possible.

He lifted tired eyes to the on-stealing light and his lips moved. They
framed the one word which Ferlie, waking, might have recognized as
representing the clarion call of her utter triumph.

"Vicisti," said Cyprian.


*** END OF THE PROJECT GUTENBERG EBOOK THE FRANTIC
MASTER ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying copyright
royalties. Special rules, set forth in the General Terms of Use part of
this license, apply to copying and distributing Project Gutenberg™
electronic works to protect the PROJECT GUTENBERG™ concept
and trademark. Project Gutenberg is a registered trademark, and
may not be used if you charge for an eBook, except by following the
terms of the trademark license, including paying royalties for use of
the Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is very
easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund from
the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law in
the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name
associated with the work. You can easily comply with the terms of
this agreement by keeping this work in the same format with its
attached full Project Gutenberg™ License when you share it without
charge with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears, or
with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning of
this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1 with
active links or immediate access to the full terms of the Project
Gutenberg™ License.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or expense
to the user, provide a copy, a means of exporting a copy, or a means
of obtaining a copy upon request, of the work in its original “Plain
Vanilla ASCII” or other form. Any alternate format must include the
full Project Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in paragraph
1.F.3, the Project Gutenberg Literary Archive Foundation, the owner
of the Project Gutenberg™ trademark, and any other party
distributing a Project Gutenberg™ electronic work under this
agreement, disclaim all liability to you for damages, costs and
expenses, including legal fees. YOU AGREE THAT YOU HAVE NO
REMEDIES FOR NEGLIGENCE, STRICT LIABILITY, BREACH OF
WARRANTY OR BREACH OF CONTRACT EXCEPT THOSE
PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE THAT THE
FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving it,
you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or entity
that provided you with the defective work may elect to provide a
replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.
1.F.6. INDEMNITY - You agree to indemnify and hold the
Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and distribution
of Project Gutenberg™ electronic works, harmless from all liability,
costs and expenses, including legal fees, that arise directly or
indirectly from any of the following which you do or cause to occur:
(a) distribution of this or any Project Gutenberg™ work, (b)
alteration, modification, or additions or deletions to any Project
Gutenberg™ work, and (c) any Defect you cause.

Section 2. Information about the Mission of


Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many small
donations ($1 to $5,000) are particularly important to maintaining tax
exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About Project


Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.

Project Gutenberg™ eBooks are often created from several printed


editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.

You might also like