#!/usr/bin/env python import GnuPlot DEBUG = 0 YofX = GnuPlot.GraphYofXperG( { 'outputFileBase' : "GraphYofX-constantSigma", 'debug' : DEBUG } ) YofXperG = { 1: { 'data set 1' : 10, 'data set 2' : 5, 'data set 3' : 20 }, 2: { 'data set 1' : 20, 'data set 2' : 10, 'data set 3' : 3 }, 3: { 'data set 1' : 30, 'data set 2' : 15, 'data set 3' : 45 }, 4: { 'data set 1' : 20, 'data set 2' : 10, 'data set 3' : 5 }, 5: { 'data set 1' : 10, 'data set 2' : 5, 'data set 3' : 25 }, } Sigma = .5 YofX.setTitle("GraphYofX") YofX.setXlabel("X axis label") YofX.setYlabel("Y axis label") YofX.setErrorbars('constant', Sigma) YofX.plot(YofXperG) # writes GraphYofX-constantSigma.ps YofX.makeJpg() # writes GraphYofX-constantSigma.jpg YofX.makeThumbnail() # writes GraphYofX-constantSigma.thumb.jpg YofX.cleanup() # deletes intermediate files