Example #1
0
def dots(color):
    reddots = graphite.PointPlot()
    reddots.lineStyle = None
    reddots.symbol = graphite.SquareSymbol
    reddots.symbolStyle = graphite.SymbolStyle(size=1,
                                               fillColor=color,
                                               edgeColor=color)
    return reddots
Example #2
0
                                  yp1=None,
                                  ypn=-2.5,
                                  xmin=xlist[0] - 2,
                                  xmax=xlist[-1] + 2)
 import graphite
 import numpy
 g = graphite.Graph()
 ds1 = graphite.Dataset()
 ds1.x = xx
 ds1.y = yy
 g.datasets.append(ds1)
 f1 = graphite.PointPlot()
 f1.lineStyle = None
 f1.symbol = graphite.CircleSymbol
 f1.symbolStyle = graphite.SymbolStyle(size=5,
                                       fillColor=graphite.red,
                                       edgeColor=graphite.red)
 g.formats = []
 g.formats.append(f1)
 finex = numpy.array(range(-20, 181), float) * 0.1
 finey = splint(xx, yy, yy2, finex)
 ds2 = graphite.Dataset()
 ds2.x = finex
 ds2.y = finey
 g.datasets.append(ds2)
 f2 = graphite.PointPlot()
 f2.lineStyle = graphite.LineStyle(width=1,
                                   color=graphite.green,
                                   kind=graphite.SOLID)
 f2.symbol = None
 g.formats.append(f2)