Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication Linda Driskill, Gang Cheng,

Slides:



Advertisements
Similar presentations
PowerPoint: Customizing Charts Computer Information Technology Section 5-13 Some text and examples used with permission from:
Advertisements

CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
Plotting Selim Aksoy Bilkent University Department of Computer Engineering
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
2D Plots 1 ENGR 1181 MATLAB 12.
Introduction to Graphing Using MATLAB. Line Graphs  Useful for graphing functions  Useful for displaying data trends over time  Useful for showing.
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.
1 Chapter 4 Curve Plotting with MATLAB MATLAB provides some very powerful features for plotting and labeling curves. These operations can be performed.
Excel 2007 Graphs & Charts. TYPES OF CHARTS Column Bar Pie Line.
® Microsoft Office 2010 Excel Tutorial 4: Enhancing a Workbook with Charts and Graphs.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
Al-Amer An Introduction to MATLAB Lesson 2: M-files Dr. Samir Al-Amer Term 061.
MATLAB’s extensive, device-independent plotting capabilities are one of its most powerful features. They make it very easy to plot any data at any time.
MA/CS375 Fall MA/CS 375 Fall 2002 Lecture 4.
FIRST COURSE Excel Tutorial 4 Working with Charts and Graphics.
MATLAB GRAPHICS 2-D.
MATLAB Week 3 17 November Outline Graphics – Basic plotting – Editing plots from GUI – Editing plots from m-file – Advanced plotting commands.
Lecture 9 Plotting in 2-D Plotting in 2-D, Plotting Multiple Curves, Plotting with Figures, Plot Settings, Scaling, Legends © 2007 Daniel Valentine. All.
©Cynthia Krebs, ISYS 3270 ©Cynthia Krebs, ISYS 3270 Understanding Charts and Graphs.
Chapter 5 Plotting Data Curve Fitting, Good Graphing Practices Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Using Charts in a Presentation Lesson 6. Software Orientation Charts can help your audience understand relationships among numerical values. The figure.
Plotting - Advanced. FPLOT Plots a function f(x) written as a string within quotation marks. The free variable needs to be designated with x. The lower.
An introduction to Plotting in MATLAB Rikard Johansson Department of Biomedical Engineering (IMT) Linköping University
Plotting 1.Overview 2.plot in 2D 3.Plot in 3D 4.Other possible charts 5.Engineers: label your plots! 6.Plots & Polynomial.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
Charts and Graphs V
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
Chart Components 4.02 Understand charts and graphs used in business.
Graphing. The Important Elements of a Graph  Horizontal Axis (X-Axis)  The Independent Variable. A change in this variable affects the y variable. 
C51BR Applications of Spreadsheets 1 Chapter 16 Getting Started Making Charts.
CMPS 1371 Introduction to Computing for Engineers PLOTTING.
MATLAB Plotting With MATLAB 1. Two Dimensional Plots The xy plot is the most commonly used plot by engineers The independent variable is usually called.
Why are Graphs Useful? AA graph is a “picture” of your data. GGraphs can reveal patterns or trends that data tables cannot. TThe 3 types of graphs.
Graphing Parameters Titles X-Axis Title Y-Axis Title Legend Scales Color Gridlines library(help="graphics") Basic Chart Types The R Graphics Package LineHistogram.
V. Rouillard  Introduction to measurement and statistical analysis GRAPHICAL PRESENTATION OF EXPERIMENTAL DATA It is nearly always the case that.
Microsoft Office Illustrated Fundamentals Unit I: Working with Charts.
MATLAB for Engineers, by Holly Moore. ISBN © 2007 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is.
© 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Creating Charts Lecture 19.
MATH 3400 Computer Applications of Statistics Lecture 6 Data Visualization and Presentation.
Lecture 10 2D plotting & curve fitting Subplots Other 2-D Plots Other 2-D Plots Curve fitting © 2007 Daniel Valentine. All rights reserved. Published by.
Excel chapter 4.
Barak Shenhav Early Evolution Course 11 Feb 2001 MATLAB Visualization, Functions & Debugging.
always keep in mind… arrangement emphasis contrast repetition alignment proximity.
DAY 6: MICROSOFT EXCEL – CHAPTER 3 Sravanthi Lakkimsetty September 2, 2015.
Recap Chapter 5 “Plotting” Two Dimensional Plots Simple x-y Plots Titles, Labels and Grids Multiple Plots.
Recap Plots with More than one Line Plots of Complex Arrays Line, Color and Mark Style Axis Scaling and Annotating Plots Subplots Polar Plots Logarithmic.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
Sept. 26, 2005 Lecture 6 - By Paul Lin 1 CPET 190 Lecture 6 Problem Solving with MATLAB
Chapter 15: Spreadsheet and Worksheet Basics Lesson 96: Worksheets with Charts © 2010, 2006 South-Western, Cengage Learning.
ElVis Improvements Summer 2008 Eric Zatz PPPL Summer Intern Mentor – Eliot Feibush August 11, 2008.
start with… audience  who’s the data display for? who will be looking at, reading, and interpreting it? purpose  what does your audience want? what.
Linear graph A graph in which the data points yield a straight line.
CHART COMPONENTS Lesson 6 – Working With Charts and Graphics, continued.
GRAPHICS AND VISUALISATION WITH MATLAB UNIVERSITY OF SHEFFIELD CiCS DEPARTMENT Deniz Savas & Mike Griffiths May 2015.
Introduction to Engineering MATLAB – 9 Plotting - 2 Agenda Formatting plots.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
GRAPHING NOTES Understanding and constructing graphs.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Lab 2 : potting to Matlab Networks.
CHART COMPONENTS Lesson 6 – Working With Charts and Graphics, continued.
Chart Components 3.03 Identify charts and graphs used in business.
How to use MATLAB (using M-files) Double click this icon To start Matlab 6.5.
Session III Plotting in MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU MATLAB Tutorials.
CHART COMPONENTS Excel. COMPONENTS OF CHARTS AND GRAPHS ▪ The y-axis is the left vertical side of the graph. It contains the numerical data. ▪ The x-axis.
Excel Charts and Graphs
Computer Application in Engineering Design
Lecture 25.
8.04 Spreadsheet Charts 8.04 Spreadsheet Charts.
Plotting Multiple Graphs In The Same Plot
Advanced Plotting Techniques
Designing Effective Graphics Using MATLAB
Presentation transcript:

Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication Linda Driskill, Gang Cheng,

2 The Purpose of Using Graphs In problem solving As part of design As analysis of operating data For persuasion and interpretation Dramatize relationships Promote identification Make complex information accessible

3 Checklist for Good Graphics Purpose clear? Critical components defined? Pattern and arrangement lead eye without distraction? Graphic hierarchy consistent? Fonts legible? Presenter’s expertise shown?

4 Types of Graph in Matlab Line graph 2D 3D Bar graph Pie graph Ribbon graph

5 Considerations Purpose Problem solving? Persuasion and interpretation? Audience What are their background? What are they interested to know? Context Presentation? Report/Paper?

6 Context Presentation Big fonts Can use any color Can use animation Report Smaller fonts Often just black and white Animation impossible

7 An Example You have: Vector 1: x[0:0.2:10]; Vector 2: sin(x); Vector 3: cos(x); You are asked to: Plot sin(x) vs. x and cos(x) vs. x in the same figure; Customize the figure so that it becomes suitable for being used in a presentation. Customize the figure so that it becomes suitable for being used in a report/paper.

8 A Simple Matlab Program %start clear all;%clear the memory X=[0:0.2:10];%define the x vector sinx=sin(x);%calculate sin(x) cosx=cos(x);%calculate sin(x) plot(x,sinx,x,cosx);%plot the lines xlabel('x');%add x label ylabel('y');%add y label title([‘sin and cos Functions']);%add title %end

9 Default Figure Given by Matlab

10 We Want … Titles and labels bigger. Lines thicker. Colors more contrasting. Insert Legend. Data points shown. Try adding gridlines.

11 Anatomy of a Matlab Figure title Y labelX labelTick and tick label lines Axes

12 Open the Property Editor Figure Properties

13 Edit Figure Properties FigureImmediate apply

14 Edit Axes Properties axes

15 Edit Line Properties line

16 A Better-Looking Figure

17 Insert Legend legend

18 Legend Inserted Select object

19 Make Room for Legend

20 Edit Legend Properties legend

21 Insert Y Grid Line axesGrid Show

22 Final

23 Figure for Report/Paper

24 Frequently Used Functions “plot” “xlabel”, “ylabel” “title” “xlim”, “ylim” “axis” “legend” “errorbar” Type “help function name” in Matlab command window for detailed information on the usage of the function.

25 Other 2D Plotting Functions “loglog”: graph with logarithmic scales for both axes. “semilogx”: graph with a logarithmic scale for x-axis and a linear scale for y-axis. “semilogy”: graph with a logarithmic scale for y-axis and a linear scale for x-axis. “plotyy”: graph with y-tick labels on the left and right side.

26 A Whole Lot More … 2D contour “contour” “contourslice” 3D plots “plot3” “mesh” “surf” Movie “getframe” “movie”

27 Sample Movie A Bioartificial Tissue Seeded with Cells Z = 40 Z = 1 A movie created with mesh, getframe and movie