Matplotlib SANTHOSH Boggarapu.

Slides:



Advertisements
Similar presentations
Computation for Physics 計算物理概論
Advertisements

Chapter 2 Discrete-time signals and systems
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
Sarah Reonomy OSCON 2014 ANALYZING DATA WITH PYTHON.
Types of Data Displays Based on the 2008 AZ State Mathematics Standard.
Polar Coordinates (MAT 170) Sections 6.3
Visual C++ Programming: Concepts and Projects
Objective 1 Interpret graphs. Slide Linear Equations in Two Variables; The Rectangular Coordinate System.
Cylindrical Coordinate Coordinate Systems. Representing 3D points in Cylindrical Coordinates.  r Start from polar representations in the plane.
Python plotting for lab folk Only the stuff you need to know to make publishable figures of your data. For all else: ask Sourish.
PYTHON PLOTTING CURVES CHAPTER 10_5 FROM THINK PYTHON HOW TO THINK LIKE A COMPUTER SCIENTIST.
 1 Basic Data Visualization. IPython An interactive shell to execute Python script. Run from a shell; ipython 2.
UNCLASSIFIED GRIDDING & BETA CORRECTION 11 May 1999 Meteorological Satellite Analyst SSgt Dave Mayer.
MLOSS: Whistler 2008 scientific visualisation for python John Hunter Tradelink Chicago
Making Graphs from Data. Bar, Line, or Pie? / One of the first things one needs to do when graphing is decide whether to make a bar graph or a line graph.
Section 3.3 ~ Graphics in the Media Introduction to Probability and Statistics Ms. Young ~ room 113.
Introduction to Python By Neil Cook Twitter: njcuk Slides/Notes:
Graphs An Introduction. What is a graph?  A graph is a visual representation of a relationship between, but not restricted to, two variables.  A graph.
Chapter 13 The Math for Graphing in DC Circuits. Graphing Overview  Critical for practical analysis many different natural systems. Note: Theoretical.
Points on a Graph Objectives After reviewing this unit you will be able to: Identify the x and y axes. Identify the origin on a graph. Identify x and y.
Spreadsheet Charts Vocabulary Reference – pp. IE123-IE127 in Office 2000 Textbook Do not login. You will need a writing utensil.
EARTH AND SPACE SCIENCE Chapter 3 Models of the Earth 3.2 Mapping Earth’s Surface.
Unit 1, Ch. 1 Looking at the Earth. Ch. 1 Section 1 Key Terms Geography Absolute Location Relative Location Hemisphere Equator Prime Meridian Latitude.
Introduction to Programming Workshop 6 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
Development of a Distributed MATLAB Environment with Real-Time Data Visualization Authors: Joseph Diamond, Richard McEver Affiliation: Dr. Jian Huang,
Copyright © 2011 Pearson, Inc. 1.6 Graphical Transformations.
Earth System Modeling Framework Python Interface (ESMP) October 2011 Ryan O’Kuinghttons Robert Oehmke Cecelia DeLuca.
Relations Relation: a set of ordered pairs Domain: the set of x-coordinates, independent Range: the set of y-coordinates, dependent When writing the domain.
Graphs and How to Use Them. Graphs Visually display your results and data Allow you (and your peers) to see trends Help to make conclusions easier Are.
Chapter 3 Section 1. Objectives 1 Copyright © 2012, 2008, 2004 Pearson Education, Inc. Linear Equations in Two Variables; The Rectangular Coordinate System.
2D Plots 2 ENGR 1181 MATLAB 13. Plotting in the Real World 2D plots generated by MATLAB can be used in a variety of fields, including the one shown here,
SIMO Python/XML Simulator Current situation 28/10/2005 SIMO Seminar Antti Mäkinen Dept. of Forest Resource Management / University of Helsinki.
A GUI framework for PySAL Team members: Dae-hyun You, Sanjay Paul, Jianhua Huang, Ki-hwan Seo, Evan Palmer GPH 598: Geocomputation, Fall 2011.
Monitoring Directory Tutorial.
00/XXXX 1 Data Processing in PRISM Introduction. COCO (CDMS Overloaded for CF Objects) What is it. Why is COCO written in Python. Implementation Data Operations.
Let’s Look at This Question: How is latitude measured?
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Unit 2 Section 2.2 – Day : More Graphs and Displays  Sometimes data will be represented by paired data sets (two values that correspond to one.
1 T2.1- Lesson 1 - Functions: Concepts and Notations IB Math SL1 - Santowski 2/13/2016 Math SL 1 - Santowski.
Information Design Trends Unit 4 : Sources and Standards Lecture 1: Content Management Part 1.
Python & NetworkX Youn-Hee Han
Coordinate System. The First Quadrant The first thing you have to know about the coordinate plane are the axes. The x-axis is horizontal. In the first.
1 PRECALCULUS Section 1.6 Graphical Transformations.
Python Lab Matplotlib - I Proteomics Informatics, Spring 2014 Week 9 25 th Mar, 2014
Sullivan Algebra and Trigonometry: Section 2.5 Objectives Draw and Interpret Scatter Diagrams Distinguish between Linear and Nonlinear Relations Find an.
Starting with BMEGUI Prahlad Jat (1) and Marc Serre (1) (1) University of North Carolina at Chapel Hill.
EEE 242 Computer Tools for Electrical Engineering
Introducing Tim Sheerman-Chase This work is licensed under a Creative Commons Attribution 3.0 Unported License 28 th Sept 2011.
Sketching Quadratic Functions
PH2150 Scientific Computing Skills
Andrew White, Brian Freitag, Udaysankar Nair, and Arastoo Pour Biazar
IPYTHON AND MATPLOTLIB Python for computational science
Section 6.4 Graphs of Polar Equations
Prepared by Kimberly Sayre and Jinbo Bi
Network Visualization
National Water Model (Provided by NOAA)
Domain and range.
Brief Intro to Python for Statistics
Python plotting curves chapter 10_5
Section 1.1 Graphs and Graphing Utilities
Graphing Linear Equations
Algebra: Graphs, Functions, and Linear Systems
Matplotlib.
Graph of the derived function
Tour of NCL Website Modified by R. Grotjahn
Python for Data Analysis
Numpy, pylab, matplotlib (follow-up)
Matplotlib and Pandas
Presentation transcript:

Matplotlib SANTHOSH Boggarapu

Structure of Matplotlib Matplotlib is a python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. Matplotlib is the whole package; pylab is a module in matplotlib that gets installed alongside matplotlib; and matplotlib.pyplot is a module in matplotlib Pyplot provides the state-machine interface to the underlying plotting library in matplotlib. Pylab combines the pyplot functionality (for plotting) with the numpy functionality (for mathematics and for working with arrays) in a single namespace, making that namespace (or environment) even more MATLAB-like. For example, one can call the sin and cos functions just like you could in MATLAB, as well as having all the features of pyplot.

What we are going to learn 3D plots Live graphs Sub plots Geographic plotting on maps

3D plot A three-dimensional graph is the graph of a function f(x, y) of two variables, or the graph of a relationship g(x, y, z) among three variables. We can draw all kinds of 3D plots using matplotlib. Let’s draw a 3D scatter plot using matplotlib

3D Plots

Live Graphs Applications of live graphs are enormous As a Data Scientist, we come across data in the real world where the data keeps on changing A simple example is something like graphing live stock pricing data or we may need to display the live sensor data Let’s see an example on this

Geographical plotting This functionality helps to Plotting data to a latitude and longitude We will be using Basemap which works along with matplotlib. Basemap works alongside Matplotlib to allow you to plot via latitude and longitude coordinates. You can download the Basemap here: http://sourceforge.net/projects/matplotlib/files/matplotlib- toolkits/basemap-1.0.7/ Basemap provide 24 different map projections and info about each them with some sample code is present in the link below: http://matplotlib.org/basemap/users/mapsetup.html

Azimuthal Equidistant Projection

Miller Cylindrical Projection

subplots Subplot divides the current figure into rectangular panes that are numbered row wise. Each pane contains an axes object. Subsequent plots are output to the current pane.

Representation of subplot in the form of grid 2X1

Representation of subplot in the form of grid 2X2

More Examples You can find more types of plots with sample code at http://matplotlib.org/examples/index.html The plots are categorized into various sections based on the functionality Each category has a number of examples. You can find tutorials on matplotlib at http://pythonprogramming.net/matplotlib-python-3-basics-tutorial

Any Questions?