tutorials and some of my scripts for plotting, mainly used in computational chemistry filed.
tutorials: introductory tutorials for matplotlib (in Chinese)
plot.py: a general plot function based on matplotlib.
Usage:
python plot.py -i input_data_file
python plot.py -i input_data_file -bar #plot bar chart
python plot.py -i input_data_file -scattor #plot scattor
python plot.py -i input_data_file -bar -save test.png #save the figure to diskAssuming the first row of data file contains the label for the data.
The first column of the data file is used as x value, other columns are used y values.
If multiple y values are present, subplots will be created.
rmsd_2d.py: plot 2d-RMSD data generated by Amber.
Usage:
python rmsd_s2.py -i rms2d.dat -save xxx.pngIf '-save' option is not presented, the image will directly display.
rmsd_2d.zip: example data of the 2D RMSD data.
