Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(32)  |  Call(32)  |  Derive(0)  |  Import(0)

src/g/e/genenetwork-HEAD/web/webqtl/heatmap/heatmapPage_GN.py   genenetwork(Download)
                else:
                        #XZ: It's necessory to define canvas here
                        canvas = pid.PILCanvas(size=(80+NNN*20,880))
 
                        names = map(webqtlTrait.displayName, traitList)
                                        neworder.append((xoffset+20*(i+1), i))
 
                                canvas = pid.PILCanvas(size=(80+NNN*20+240,80+ self.topHeight +5+5+strWidth+nLoci*cellHeight+80+20*cellHeight))
 
                                self.drawTraitNameBottom(canvas,names,yoffset,neworder,strWidth)
                        else: #XZ: this part is to cluster traits
                                self.topHeight = 400
                                canvas = pid.PILCanvas(size=(80+NNN*20+240,80+ self.topHeight +5+5+strWidth+nLoci*cellHeight+80+20*cellHeight))

src/g/e/genenetwork-HEAD/web/webqtl/heatmap/Heatmap.py   genenetwork(Download)
       	       	NNN = len(traitList)
       	       	#XZ: It's necessory to define canvas here
                canvas = pid.PILCanvas(size=(80+NNN*20,880))
                names = map(webqtlTrait.displayName, traitList)
                #XZ, 7/29/2009: create trait display and find max strWidth
                                neworder.append((xoffset+20*(i+1), i))
 
                        canvas = pid.PILCanvas(size=(80+NNN*20+240,80+ topHeight +5+5+strWidth+nLoci*cellHeight+80+20*cellHeight))
 
                        self.drawTraitNameBottom(canvas,names,yoffset,neworder,strWidth,topHeight,labelFont)
                else: #XZ: this part is to cluster traits
                        topHeight = 400
                        canvas = pid.PILCanvas(size=(80+NNN*20+240,80+ topHeight +5+5+strWidth+nLoci*cellHeight+80+20*cellHeight))

src/g/e/genenetwork-HEAD/web/webqtl/intervalMapping/IntervalMappingPage.py   genenetwork(Download)
        else:
            showLocusForm = ""
        intCanvas = pid.PILCanvas(size=(self.graphWidth,self.graphHeight))
        gifmap = self.plotIntMapping(fd, intCanvas, startMb = self.startMb, endMb = self.endMb, showLocusForm= showLocusForm)
 
        #Scales plot differently for high resolution
        if self.draw2X:
            intCanvasX2 = pid.PILCanvas(size=(self.graphWidth*2,self.graphHeight*2))
            gifmapX2 = self.plotIntMapping(fd, intCanvasX2, startMb = self.startMb, endMb = self.endMb, showLocusForm= showLocusForm, zoom=2)
            intCanvasX2.save(os.path.join(webqtlConfig.IMGDIR, filename+"X2"), format='png')
    def drawPermutationHistogram(self):
        #########################################
        #      Permutation Graph
        #########################################
        myCanvas = pid.PILCanvas(size=(400,300))

src/g/e/genenetwork-HEAD/web/webqtl/markerRegression/MarkerRegressionPage.py   genenetwork(Download)
 
				# begin: common part with human data
				intCanvas = pid.PILCanvas(size=(self.graphWidth,self.graphHeight))
				gifmap = self.plotIntMappingForPLINK(fd, intCanvas, startMb = self.startMb, endMb = self.endMb, plinkResultDict=plinkResultDict) 
 
 
				# begin: common part with human data
				intCanvas = pid.PILCanvas(size=(self.graphWidth,self.graphHeight))
				gifmap = self.plotIntMapping(fd, intCanvas, startMb = self.startMb, endMb = self.endMb, showLocusForm= "")
				filename= webqtlUtil.genRandStr("Itvl_")
		#      Permutation Graph
		#########################################
		myCanvas = pid.PILCanvas(size=(400,300))
		#plotBar(myCanvas,10,10,390,290,LRSArray,XLabel='LRS',YLabel='Frequency',title=' Histogram of Permutation Test',identification=fd.identification)
		Plot.plotBar(myCanvas, LRSArray,XLabel='LRS',YLabel='Frequency',title=' Histogram of Permutation Test')

src/g/e/genenetwork-HEAD/web/webqtl/basicStatistics/BasicStatisticsPage_alpha.py   genenetwork(Download)
				canvasHeight = plotHeight + yTopOffset + yBottomOffset
				canvasWidth = plotWidth + xLeftOffset + xRightOffset
				canvas = pid.PILCanvas(size=(canvasWidth,canvasHeight))
				XXX = [('', InformData[:])]
 
				plotHeight = 500
				#print [plotWidth, plotHeight, bw, sw, nnStrain]
				c = pid.PILCanvas(size=(plotWidth,plotHeight))
				Plot.plotBarText(c, tvals, tnames, variance=tvars, YLabel='Value', title='%s by Case (sorted by name)' % self.identification, sLabel = sLabel, barSpace = sw)
 
					tvars.append(dataXZ[i][2])
 
				c = pid.PILCanvas(size=(plotWidth,plotHeight))
				Plot.plotBarText(c, tvals, tnames, variance=tvars, YLabel='Value', title='%s by Case (ranked)' % self.identification, sLabel = sLabel, barSpace = sw)
 

src/g/e/genenetwork-HEAD/web/webqtl/pairScan/DirectPlotPage.py   genenetwork(Download)
					nPermuResult = len(ResultFull)
					# draw Histogram
					cFull = pid.PILCanvas(size=(400,300))
					Plot.plotBar(cFull, ResultFull,XLabel='LRS',YLabel='Frequency',title=' Histogram of LRS Full')
					#plotBar(cFull,10,10,390,290,ResultFull,XLabel='LRS',YLabel='Frequency',title=' Histogram of LRS Full')
				else:
					colorAreaWidth = 0
				c = pid.PILCanvas(size=(canvasWidth + colorAreaWidth ,canvasHeight))
				xoffset = 40
				yoffset = 40

src/g/e/genenetwork-HEAD/web/webqtl/correlationMatrix/CorrelationMatrixPage.py   genenetwork(Download)
    def screePlot(self, NNN=0, pearsonEigenValue=None):
 
        c1 = pid.PILCanvas(size=(700,500))
        Plot.plotXY(canvas=c1, dataX=range(1,NNN+1), dataY=pearsonEigenValue, rank=0, labelColor=pid.blue,plotColor=pid.red, symbolColor=pid.blue, XLabel='Factor Number', connectdot=1,YLabel='Percent of Total Variance %', title='Pearson\'s R Scree Plot')
        filename= webqtlUtil.genRandStr("Scree_")
    def factorLoadingsPlot(self, pearsonEigenVectors=None, traitList=None):
 
        traitname = map(lambda X:str(X.name), traitList)
        c2 = pid.PILCanvas(size=(700,500))
        Plot.plotXY(c2, pearsonEigenVectors[0],pearsonEigenVectors[1], 0, dataLabel = traitname, labelColor=pid.blue, plotColor=pid.red, symbolColor=pid.blue,XLabel='Factor (1)', connectdot=1, YLabel='Factor (2)', title='Factor Loadings Plot (Pearson)', loadingPlot=1)

src/g/e/genenetwork-HEAD/web/webqtl/pairScan/PairPlotPage.py   genenetwork(Download)
 
 
			canvas = pid.PILCanvas(size=(canvasWidth,canvasHeight))
			plotScale = plotHeight/chrsInfo[Chr_B][0]
 

src/g/e/genenetwork-HEAD/web/webqtl/pairScan/CategoryGraphPage.py   genenetwork(Download)
		canvasHeight = plotHeight + yTopOffset + yBottomOffset
		canvasWidth = plotWidth + xLeftOffset + xRightOffset
		canvas = pid.PILCanvas(size=(canvasWidth,canvasHeight))
		XXX = [('Mat/Mat', BB), ('Mat/Pat', BD), ('Pat/Mat', DB), ('Pat/Pat', DD)]
		XLabel = "Interval 1 / Interval 2"

src/g/e/genenetwork-HEAD/web/webqtl/genomeGraph/cmdGenomeScanPage.py   genenetwork(Download)
 
				filename=webqtlUtil.genRandStr("gScan_")
				canvas = pid.PILCanvas(size=(1280,880))
				self.drawGraph(canvas, MbCoord, cLength=sum)
 

  1 | 2  Next