Plotting Examples for Problem Set 0

Plotting Examples for Problem Set 0 - MSE 310/ECE 340...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
MSE 310/ECE 340 Instructor: Bill Knowlton Examples of Plotting Functions ü Example 1: Using the command ListPlot[ ] to plot data in a scatter plot In[1]:= Initialize data Clear someData, somePlot Place data in list someData  1 17, 4270 , 1 50 , 1350 , 1 100 , 550 , 1 150 , 430 , 1 300 , 160  Create scatter plot of data somePlot ListPlot someData, Frame True, GridLines Automatic, PlotStyle RGBColor 1, 0, 0 , PointSize 0.02`  , FrameLabel "y data arb. Units ", "x data arb. Units "  Out[2]=  1 17 , 4270 , 1 50 , 1350 , 1 100 , 550 , 1 150 , 430 , 1 300 , 160  Out[3]= 0.01 0.02 0.03 0.04 0.05 0.06 1000 2000 3000 4000 y - data arb. Units x - data arb. Units
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon