string just %(just)d string char size %(size)f string def "%(text)s" """ % locals() self.write(strg) c = GracePlot.colors stylecolors = [c.green, c.blue, c.red, c.orange, c.magenta, c.black] s1, s2, s3, s4, s5, s6 = [ GracePlot.Symbol(symbol=GracePlot.symbols.circle, fillcolor=sc, size=0.3, linestyle=GracePlot.lines.none) for sc in stylecolors ] l1, l2, l3, l4, l5, l6 = [ GracePlot.Line(type=GracePlot.lines.solid, color=sc, linewidth=2.0) for sc in stylecolors ] noline = GracePlot.Line(type=GracePlot.lines.none) graceSession = myGrace(width=11, height=8) g = graceSession[0] g.xlimit(-1, 16) g.ylimit(-1, 22) for row in range(16): for col in range(16): row * 16 + col graceSession.write_string(text=r"\x\#{%02x}" % (row * 16 + col),
if (args.mp or args.eps != 'noeps'): 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])]