130 likes | 296 Views
Lesson 7: Advanced Plotting Functions. The Plots keep on coming!. What's on the menu for Today. Scatter Plots 3D Plots Double Y Plots Bar Plots Adding Errorbars Exporting High Quality Figures. A Simple Scatter Plot. Scatter(<x data>,<y data>,<dot size>). A Complicated Scatter Plot.
E N D
Lesson 7: Advanced Plotting Functions The Plots keep on coming!
What's on the menu for Today Scatter Plots 3D Plots Double Y Plots Bar Plots Adding Errorbars Exporting 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>)
3DLine 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>)
Exporting Figures to Files - print print -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.