UW CSE 190p Section 7/26, Summer 2012 Dun-Yu Hsiao.

Slides:



Advertisements
Similar presentations
Lab # 03- SS Basic Graphic Commands. Lab Objectives: To understand M-files principle. To plot multiple plots on a single graph. To use different parameters.
Advertisements

Computation for Physics 計算物理概論
Chapter 2: Section 2 Visible light and Color
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.
Introduction to Engineering MATLAB – 11 Plotting - 4 Agenda Multiple curves Multiple plot.
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.
Matrix Manipulation and 2D Plotting
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
UW CSE 190p Section 7/12, Summer 2012 Dun-Yu Hsiao.
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.
© red ©
MATLAB - Lecture 22A Two Dimensional Plots / Chapter 5 Topics Covered:
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
Vectors and Plotting Selim Aksoy Bilkent University Department of Computer Engineering
EGR106 Week 4 Two Dimensional Plots Multiple Plots Plot Formatting Homework.
Lecture 9 Plotting in 2-D Plotting in 2-D, Plotting Multiple Curves, Plotting with Figures, Plot Settings, Scaling, Legends © 2007 Daniel Valentine. All.
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
An introduction to Plotting in MATLAB Rikard Johansson Department of Biomedical Engineering (IMT) Linköping University
Chapter 5 Review: Plotting Introduction to MATLAB 7 Engineering 161.
Matlab Training Sessions 6,7: Plotting. Course Outline Weeks: 1.Introduction to Matlab and its Interface (Jan ) 2.Fundamentals (Operators) 3.Fundamentals.
Graphing Guidelines  Often the goal of an experiment is to find the relationship between two variables.  As one variable changes, so does the other.
COMP 116: Introduction to Scientific Programming Lecture 5: Plotting, Scripts and publishing.
COLOR Chapter 14, Section 4 Pg Pigment Colors Mixing color of pigment (i.e.) paints is different than mixing colors of light. Mixing color of.
Barbara/Pratik/Yu. Outline Matlab desktop M-files Variables Arrays Plots.
Plot (x-values, y-values) >> x = linspace (-3, 3, 20); >> x = linspace (-3, 3, 20); >> y = 2*x – 1; >> y = 2*x – 1; >> plot (x, y) >> plot (x, y)
Written by: Itzik Ben Shabat Technion - Israel Institute of Technology Faculty of Mechanical Engineering Laboratory for CAD & Lifecycle Engineering Lab.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
EGR 115 Introduction to Computing for Engineers 2D Plotting – Part I Wednesday 17 Sept 2014 EGR 115 Introduction to Computing for Engineers.
Colors of Pigment The primary colors of pigment are magenta, cyan, and yellow. [
1-d Arrays & Plotting.
Name(s): _______________________ Encoding LEGO Blocks Additional Practice You’ve already tried encoding instructions to build a LEGO tower into binary.
GRAPHING RELATIONSHIPS For each graph, determine the graphing relationship and record it on a white board.
Introduction to Engineering MATLAB – 9 Plotting - 2 Agenda Formatting plots.
CLIMATE GRAPHS. Temp In °C Precipitation In mm OTTAWA LABELS! CITY AT TOP TEMPERATURE ON LEFT IN °C PRECIPITATION ON RIGHT MONTHS ACROSS THE BOTTOM.
Making a Graph for Science Class.. Purpose of a graph To visually display information or data collected during an experiment. Create a “snapshot” of the.
Introduction to plotting data Fish 552: Lecture 4.
EGR 106 – Week 5 – 2-D Plots Question : Why do engineers use plots? Answer : To analyze, visualize, and present data. Matlab has many useful plotting options.
How to use MATLAB (using M-files) Double click this icon To start Matlab 6.5.
Coloured Light Dispersion Colours Filters Seeing colour.
The frequency of visible light that is reflected by an object.
Creating a Plot The plot function can take one or more inputs; e.g. plot (x, y) or plot (y) Note that in the two-argument version, the vectors x and.
Course Information Do not rely on color to distinguish curves (due to black-white printout). Use different line styles to distinguish curves (solid, dashed,
Lecture 25: Exploring data
Color.
How to make great graphs that make sense!
Net 222: Communications and networks fundamentals (Practical Part)
Tips for Creating Graphs
MATLAB How to use (using M-files) Double click this icon
Colour Theories.
INTRODUCTION TO SGPLOT Zahir Raihan OVERVIEW  ODS Graphics  SGPLOT overview  Plot Content  High value plot statements  High value plot options 
MATLAB How to use (using M-files) Double click this icon
Colours.
CSE 113 A January 26 – 30, 2009.
MATLAB How to use (using M-files)
Two ways to discuss color 1) Addition 2) Subtraction
Introduction to MATLAB Plotting LAB 3
Environmental Science
Plotting Signals in MATLAB
What Color is it?.
Color and Polarization
January 26 – 30, 2009 CSE 113 B.
Temperature and Color of Stars
Created for CVCA Physics by Dick Heckathorn 31 May 2K+4
Created for CVCA Physics by Dick Heckathorn 31 May 2K+4
Coding to Create 100+ Visualizations with the click of a button
Presentation transcript:

UW CSE 190p Section 7/26, Summer 2012 Dun-Yu Hsiao

Before We Start Create and remember save every code and steps you try today! If you have any question about today’s material, your report to TA.

Outlines Visualization: plot

Plot Basics Line – Color b : blue g : green r : red c : cyan m : magenta y : yellow k : black w : white – Width Marker

Plot Setting plt.plot(t, f(t), color=’r', linewidth=2.0) plt.setp(lines, color='r', linewidth=2.0) plt.setp(lines, 'color', 'r', 'linewidth', 2.0)

Plot Basic Exercise Plot (x-2) 2 -10, -10< x < 10, line color red, dashed line, line width 3.0 Plot again using green triangular markers, step the marker by 1.5

Plot Basics Line graph Bar graph Scatter plot

Figure Attribute Axis Grid Label Title Figure – Multiple figures – Multiple plots in the same graph – Multiple graphs in the same figure, i.e., subplots

Exercise Scatter plot of random 100 points between x:[0,1] and y:[5,7] Make the axis between x:[-0.5,1.5] and y:[4.5,7.5] Add dotted grid, step by 0.5 Add title as “Random Scatter”

Legends, Labels, Decorations Legend Text Annotation

Exercise x = [1, 2, 3, 4, 5, 6] y1 = [1675, 2979, 4356, 3432, 6851, 5245] y2 = [3163, 4198, 7021, 2134, 2338, 4598] Create figure, plot in two separate plots Create a new figure, plot both in one Add max annotations of y1 and y2 Add legend, xlabel “Year”, ylabel ”Earning”

Questions?

Homework/Quiz Questions?