lesson 7: advanced plotting functions the plots keep on coming!

13
Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Post on 15-Jan-2016

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Lesson 7: Advanced Plotting FunctionsThe Plots keep on coming!

Page 2: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

What's on the menu for Today

Scatter Plots 3D PlotsDouble Y PlotsBar PlotsAdding ErrorbarsExporting High Quality Figures

Page 3: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

A Simple Scatter Plot

Scatter(<x data>,<y data>,<dot size>)

Page 4: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

A Complicated Scatter Plot

 Scatter(<x data>,<y data>,<dot size>,<dot colour>)

Page 5: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

3D Line Plotting

plot3(<xdata>,<ydata>,<zdata>)

Page 6: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Double Y Plot

plotyy(X1,Y1,X2,Y2)

Page 7: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Vertical Bar Plot

 bar(<data>)

Page 8: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Horizontal Bar Plot

barh(<data>)

Page 9: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Bar Plus Simple Error Bars

errorbar(<Y points>,<Error Bar Length>)

Page 10: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Bar Graph Plus Error Bars

errorbar(<X points>,<Y points>,<lower Error Bars>,<upper Error Bars>)

Page 11: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Publication Quality Plots

 

Page 12: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Exporting Figures to Files - printprint -options filename

Useful Options-deps --> Black and White EPS-depsc --> Color EPS-dpdf --> Color PDF-dtiff --> TIFF -fhandle --> Specify a particular figure handle to print-noui --> Suppres printing of user interface controls-rnumber -->  Replace number with desired image                                    resolution (200 or 300 for publication)

Page 13: Lesson 7: Advanced Plotting Functions The Plots keep on coming!

Example Uses of Print

print -r200 -deps averages.eps--> Prints the currently active figure to averages.eps as a 200 dpi black and white eps file.