Lesson 7: Advanced Plotting Functions The Plots keep on coming!
-
date post
15-Jan-2016 -
Category
Documents
-
view
222 -
download
0
Transcript of Lesson 7: Advanced Plotting Functions The Plots keep on coming!
Lesson 7: Advanced Plotting FunctionsThe Plots keep on coming!
What's on the menu for Today
Scatter Plots 3D PlotsDouble Y PlotsBar PlotsAdding ErrorbarsExporting High Quality Figures
A Simple Scatter Plot
Scatter(<x data>,<y data>,<dot size>)
A Complicated Scatter Plot
Scatter(<x data>,<y data>,<dot size>,<dot colour>)
3D Line Plotting
plot3(<xdata>,<ydata>,<zdata>)
Double Y Plot
plotyy(X1,Y1,X2,Y2)
Vertical Bar Plot
bar(<data>)
Horizontal Bar Plot
barh(<data>)
Bar Plus Simple Error Bars
errorbar(<Y points>,<Error Bar Length>)
Bar Graph Plus Error Bars
errorbar(<X points>,<Y points>,<lower Error Bars>,<upper Error Bars>)
Publication Quality Plots
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)
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.