Example #1
0
import eztables
import plottables

table=eztables.eztable("draft1.arff")
print(table)
plot=plottables.scatter(table,{"xs":"lex_rich","ys":"semis_word_mean","c":"author"},{})
plot.show()
table.save("draft1.csv")
Example #2
0
colormap=None
#if args.autocmap:
#    if args.cval is None:
#        print("Need color col for colormap.")
#        exit(1)
#    colormap={}
#    ccol=t.findcol(args.cval)
#    counter=0
#    for x in t.data:
#        if not x[ccol] in colormap:
#            colormap[x[ccol]]=plt.namespacecolors[counter]
#            counter=counter+1

splot=None
splot=plt.scatter(t,byrow,glob,cmap=colormap)

if args.xlim is not None:
    splits=args.xlim.split(":")
    splot.xlim(float(splits[0]),float(splits[1]))
if args.ylim is not None:
    splits=args.ylim.split(":")
    splot.ylim(float(splits[0]),float(splits[1]))
if args.zlim is not None:
    splits=args.zlim.split(":")
    splot.zlim(float(splits[0]),float(splits[1]))

if args.hlines is not None:
    for x in args.hlines:
        data=ast.literal_eval(x)
        data=dict(data)