Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Matplotlib 2.x

You're reading from  Mastering Matplotlib 2.x

Product type Book
Published in Nov 2018
Publisher Packt
ISBN-13 9781789617696
Pages 214 pages
Edition 1st Edition
Languages
Author (1):
Benjamin Walter Keller Benjamin Walter Keller
Profile icon Benjamin Walter Keller
Toc

Plotting on map projections

This section describes how to plot on the map projections and how to draw a day/night terminator.

How to add simple points and lines to our plots

We can see, from the preceding map, that we have Europe in the middle. We will plot some data points and some curves with lines all over Europe. We will begin by putting down a cross or a point. So the latitude and longitude of Heidelberg is 8.7 degrees east and 49.5 degrees north.

We will start with the scatter method. So the scatter behaves just like we are used to it behaving from the standard Cartesian Euclidean projections. Input the code as follows:

# Projecting with and without latlon
m = Basemap(width=1.2e7,height=9e6,projection='lcc&apos...
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}