plot - Conditional point size? -
i want make plot different point sizes, don't know start.
first of all, need error bars. data in table have read .txt file. following gets me need: plot corresponding error bars.
d = readlist["/.../data.txt", number, recordlists -> true]; data = table[{{d[[i, 5]], d[[i, 2]]}, errorbar[d[[i, 4]]]}, {i, 1, 16}]; errorlistplot[data] however, want change point size depending on additional column .txt file. means have add column "data" table, error bars don't work when this.
so question is: how set conditional pointsize depends on corresponding value in text file while still keeping error bars?
perhaps can adapt this. built first basic example in documentation errorlistplot.
in[1]:= data = table[{i, randomreal[0.5], randomreal[0.05]}, {i, 10}]; needs["errorbarplots`"]; bars = errorlistplot[map[{#[[1]], #[[2]]} &, data]]; dots = graphics[map[{pointsize[#[[3]]],point[{#[[1]],#[[1]]}]}&,data]]; show[bars, dots] out[5]= ...plotsnipped... that standard mathematica trick of overlaying 2 simpler graphics result want.
Comments
Post a Comment