Matplotlib: DANSE kickoff John D. Hunter, Ph.D.

Slides:



Advertisements
Similar presentations
Week 7 Web Typography. 2 Understanding Type Design Principles.
Advertisements

Web Development & Design Foundations with HTML5
Enthought Tool Suite Eric Jones DANSE kickoff August 16, 2006.
© , Michael Aivazis DANSE Software Issues Michael Aivazis California Institute of Technology DANSE Software Workshop September 3-8, 2003.
Matplotlib: from brain surgery to rocket science John D. Hunter, Ph.D. Perry Greenfield, Ph.D.
MATLAB Week 3 17 November Outline Graphics – Basic plotting – Editing plots from GUI – Editing plots from m-file – Advanced plotting commands.
IS&T Scientific Visualization Tutorial – Spring 2010 Robert Putnam Plotting packages overview.
Python plotting for lab folk Only the stuff you need to know to make publishable figures of your data. For all else: ask Sourish.
Web Design – Sec 4-6 and 4-7 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
An introduction to Plotting in MATLAB Rikard Johansson Department of Biomedical Engineering (IMT) Linköping University
Instructor: Professor Cora Martinez, PhD Department of Civil and Environmental Engineering Florida International University.
 1 Basic Data Visualization. IPython An interactive shell to execute Python script. Run from a shell; ipython 2.
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 18 Slide 1 Software Reuse 2.
DICOM Standards Committee Status Update: Conversion of DICOM figures to xml electronic format RSNA 2007 November 29, 2007 James J. Rogers Coastal Consulting.
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
W rking with W rds Word Processing and Desktop Publishing o o.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
MLOSS: Whistler 2008 scientific visualisation for python John Hunter Tradelink Chicago
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
PLOTS AND FIGURES DAVID COOPER SUMMER Plots One of the primary uses for MATLAB is to be able to create publication quality figures from you data.
Typography.  Introduction to Typography  Font Collections ▪ Serif ▪ They have small strokes at the end of the character strokes ▪ Ex: Times New Roman,
Definition of the SDK for FIspace Augusto Morales & Hector Bedón UPM.
Java Analysis Studio Status Update 12 May 2000 Altas Software Week Tony Johnson
JAS3 + AIDA LC Simulations Workshop SLAC 19 th May 2003.
NiagaraAX Framework Version 3.8 Feature Overview
WINDOWS Part 1 – Start Up Basics
GMT: The Generic Mapping Tools Paul Wessel, Walter H.F. Smith and the GMT team.
Views The architecture was specifically changed to accommodate multiple views. The used of the QStackedWidget makes it easy to switch between the different.
Linux Audio Mangler Project Final Presentation Yu Chong Hector Urtubia Tony Zuliani.
Parallel Interactive Computing with PyTrilinos and IPython Bill Spotz, SNL (Brian Granger, Tech-X Corporation) November 8, 2007 Trilinos Users Group Meeting.
Introduction to CSS CSS Fonts - Fort Collins, CO Copyright © XTR Systems, LLC Cascading Style Sheets - Font Control Instructor: Joseph DiVerdi, Ph.D.,
Open Your Mind to Open Source MPDO’s & EOPR’s Centre for IT & eGovernance AMR-APARD Hyderabad Welcome!
A Picture Is Worth A Thousand Words. DAY 7: EXCEL CHAPTER 4 Tazin Afrin September 10,
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
ROOT Team Meeting October 1 st 2010 GUI thinking and testing ideas OpenGL GUI Root Team meeting 01/10/2010.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Fonts The following CSS properties will be described: 1.Font-family 2.Font-style 3.Font-variant 4.Font-weight 5.Font-size 6.Font.
Summer 2007 NSF MSPPaul Beaulieu / Barbara Perez Excel III Graphing Data.
“Paper” output Root Graphics Workshop 16/07/2010.
PaPCo, Das2, and Autoplot Jeremy Faden, University of Iowa.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
WIRED 4 An extensible generic Event Display Mark Donszelmann SLAC, Stanford, U.S.A. CHEP2004, 27 september – 1 october Interlaken, Switzerland.
Earth System Modeling Framework Python Interface (ESMP) October 2011 Ryan O’Kuinghttons Robert Oehmke Cecelia DeLuca.
Nick Draper Tessella Instrument Independent Reduction and Analysis at ISIS and SNS.
Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)
Microsoft® Excel Use the Chart Tools Design tab. 1 Use the Chart Tools Layout and Format tabs. 2 Create chart sheets and chart objects. 3 Edit.
Mantid Stakeholder Review Nick Draper 01/11/2007.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
Fonts. Choosing Fonts How text looks on our web pages is a major component of the overall appearance of our site. We need to choose our text fonts carefully,
CSS FONT STACKS. What are font stacks? Font stacks are about creating a relevant and comprehensive list of fall-back fonts.
Matplotlib SANTHOSH Boggarapu.
CSS Fonts. The Font properties allow you to change the font family, boldness, size, and the style of a text.
Benchmark 2 progress report and future directions Sergey Lyskov
Python & NetworkX Youn-Hee Han
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
Python Lab Matplotlib - I Proteomics Informatics, Spring 2014 Week 9 25 th Mar, 2014
Online Data Monitoring Framework Based on Histogram Packaging in Network Distributed Data Acquisition Systems Tomoyuki Konno 1, Anatael Cabrera 2, Masaki.
Introducing Tim Sheerman-Chase This work is licensed under a Creative Commons Attribution 3.0 Unported License 28 th Sept 2011.
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
CSC391/691 Intro to OpenCV Dr. Rongzhong Li Fall 2016
Lecture 25.
IPYTHON AND MATPLOTLIB Python for computational science
Contributing to Open Source Projects
Contributing to Open Source Projects
Poster Template for a 920mmX 750mm (A1) (portrait) poster presentation
WIRED 4 Event Display Linear Collider Simulation Workshop
Matplotlib and Pandas
Collecting, Analyzing, and Visualizing Data with Python Part I
Presentation transcript:

Matplotlib: DANSE kickoff John D. Hunter, Ph.D.

Copy the great architectures E Tufte

# matplotlib 0.1 ~/python/matplot_gtk12> ls README matplotlib.py subplot_demo.py data simple_plot.py view_data.py matplot.py stock_demo.py vline_demo.py # matplotlib python modules 21 files of extension code 110,000 lines of code 189 examples 2-5 active developers at any time; 25 contributors ~5000 downloads/month ~500 mailing list subscribers 18 backends

pylab interface Plotting should just work Easy plots should be easy GUI / interactive complexity should be managed ipython to the rescue IPython _cvs -- An enhanced Interactive Python. ? -> Introduction to IPython's features. %magic -> Information about IPython's 'magic' % functions. help -> Python's own help system. object? -> Details about 'object'. ?object also works, ?? prints more. Welcome to pylab, a matplotlib-based Python environment help(matplotlib) -> generic matplotlib information help(pylab) -> matlab-compatible commands from matplotlib help(plotting) -> plotting commands In [1]: plot([1,2,3]) Stateful Procedural Do-nothing

bar demo

stacked bar

pie demo

scatter demo

histogram demo

log demo

polar demo

layer image

subplot demo

axes demo

legend demo

text alignment

mathtext demo2

cylindrical equidistant, mercator, lambert conformal conic, lambert azimuthal equal area, albers equal area conic and stereographic. basemap toolkit

finance demo

EEG demo

VTK demo

Native mpl 3D examples/simple3d_oo.py

The matplotlib API from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure fig = Figure() canvas = FigureCanvas(fig) ax = fig.add_subplot(111) ax.plot([1,2,3]) a ax.set_title('hi mom') ax.grid(True) ax.set_xlabel('time') ax.set_ylabel('volts') fig.savefig('test')

backends

# choose numeric or numarray from the shell C:> python myscript.py --numarray # or in an rc file setting numerix : ‘numpy’ The numerix module

The GUI problem: the curse of python, part III GUI independent rendering GUI neutral event handling

font manager Cross platform font finding: win32, linux, OS X Configurable families: the font engine will pick the best font to match your requirements W3C compliant font.family : sans-serif font.style : normal font.variant : normal font.weight : medium font.stretch : normal font.size : medium font.serif : New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Bitstream Vera Serif, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif font.sans-serif : Lucida Grande, Verdana, Geneva, Lucida,

tex = r'$\cal{R}\prod_{i=\alpha_{i+1}}^\infty a_I … \rm{sin}(2 \pi f x_i)$' text(1, 1.6, tex, fontsize=30) mathtext demo

MATPLOTLIB CREDITS (in order of appearance…) Jeremy O'Donoghue wrote the wx backend Andrew Straw provided much of the log scaling architecture, the fill command, PIL support for imshow, and provided many examples Charles Twardy provided the impetus code for the legend class and has made countless bug reports and suggestions for improvement. Gary Ruben made many enhancements to errorbar to support x and y errorbar plots, and added a number of new marker types to plot. John Gill wrote the table class and examples David Moore wrote the paint backend Todd Miller contributed the TkAgg backend and the numerix module, which allows matplotlib to work with either numeric or numarray. He also ported image support to the postscript backend, with much pain and suffering. Paul Barrett overhauled font management to provide an improved, free-standing, platform independent font manager with a WC3 compliant font finder and cache mechanism and ported truetype and mathtext to PS Perry Greenfield overhauled and modernized the goals and priorities page, implemented an improved colormap framework, and has provided many suggestions and a lot of insight to the overall design and organization of matplotlib. Jared Wahlstrand wrote the SVG backend

MATPLOTLIB CREDITS (continued) Steve Chaplin is the GTK maintainer and wrote the Cairo and GTKCairo backends Jim Benson provided the patch to handle vertical mathttext Gregory Lielens provided the FltkAgg backend and several patches for the frontend, including contributions to toolbar2, and support for log ticking with alternate bases and major and minor log ticking Darren Dale did the work to do mathtext exponential labeling for log plots. Paul Mcguire provided the pyparsing module on which mathtext relies, and made a number of optimizations to the matplotlib mathtext grammar. Fernando Perez has provided numerous bug reports and patches for cleaning up backend imports and expanding pylab functionality, and provided matplotlib support in the pylab mode for ipython. He also provided the matshow command. Andrew Dalke of Dalke Scientific Software contributed the strftime formatting code to handle years earlier than 1900 Jochen Voss maintained the PS backend and has contributed several bugfixes. Nadia Dencheva of STScI provided the contouring and contour labeling code Baptiste Carvello provided the key ideas in a patch for proper shared axes support that underlies ganged plots and multiscale plots Sigve Tjoraand Ted Drain and colleagues at the JPL collaborated on the QtAgg backend Eric Firing added the contourf function and general contour refactoring