Ejemplo n.º 1
0
    import matplotlib.font_manager as fnt
    import matplotlib.pyplot as plt
    xlab = args.xlabel
    fig = plt.figure(1)
    graf = fig.add_axes([0.13, 0.1, 0.8, 0.8])

if args.xg:
    scriptpath = os.path.dirname(os.path.realpath(__file__))
    sys.path.append(scriptpath + '/graceplot')
    import GracePlot as xg
    pgr = xg.GracePlot()
    pg = pgr[0]
    pg.title(args.title)
    s1 = xg.Symbol(symbol=0, fillcolor=0)
    l1 = xg.Line(type=1, linewidth=1)
    xlabel = xg.Label(args.xlabel)
    ylabel = xg.Label(args.ylabel)
    pg.xaxis(label=xlabel)
    pg.yaxis(label=ylabel)
    if (args.scale == 'logx' or args.scale == 'logxy'):
        pg.xaxis(scale='logarithmic')
    if (args.scale == 'logy' or args.scale == 'logxy'):
        pg.yaxis(scale='logarithmic')

colcount = 0
legcount = 0
fpat = re.compile(r'(?P<nom>[^/\.]+)\.')
errpat = re.compile(r'([0-9]+)e([0-9]+)')
for tiq, doc in enumerate(args.files):
    docols = [ccc for ccc in re.split(',', colus[tiq])]
    coltup = ()