当前位置: 首页>>代码示例>>Python>>正文


Python Figure.set方法代码示例

本文整理汇总了Python中matplotlib.figure.Figure.set方法的典型用法代码示例。如果您正苦于以下问题:Python Figure.set方法的具体用法?Python Figure.set怎么用?Python Figure.set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在matplotlib.figure.Figure的用法示例。


在下文中一共展示了Figure.set方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from matplotlib.figure import Figure [as 别名]
# 或者: from matplotlib.figure.Figure import set [as 别名]
class TransformacionBoxCox:
	def __init__(self, master):
		#aqui declarar los elementos de la interfaz grafica
		#botones, menus, etc
		#master es el frame/ventana a la que quieres aplicar esta gui
		
		#--->PANTALLA PRINCIPAL
		self.master = master											
		self.menu = tk.Menu(master)    
		self.filemenu = tk.Menu(self.menu)	
		self.fig = plt.figure()
		self.curva  = None
		
		self.ws = None
		
		self.window = None
		self.grafica = None
		
		self.cuadroenBlanco = Figure(figsize=(6,5), dpi=80)
		self.ejes = self.cuadroenBlanco.add_subplot(111)                
		
		self.timeRange = None 
		self.timeRangeSerieDibujada = arange(-3,3,0.1)
		
		self.serieDibujada = None
		
		self.nodosVar = tk.IntVar()
		self.nodoVar = tk.StringVar()			
		self.lineasVar = tk.IntVar()
		self.lineaVar = tk.StringVar()	
		self.sTOriginal = tk.IntVar()
		
		self.nodoColor = ((255,255,255), '#ffffff')  		#Por defecto color nodo blanco
		self.lineaColor = ((0,0,0), '#000000')   			#Por defecto color linea negro
		
		self.cbNodos = None
		self.cbLinea = None
		
		self.rbLineaChoiceCont = None
		self.rbLineaChoiceDiscont = None
		self.rbLnMedLnDesv  = None
		self.rbrectaRegres = None
		self.rbSTransform = None
		self.rbUDLR = None
		self.rbLRUD = None
		self.rbChoiceCir = None
		self.rbChoiceCuad = None
		self.rbChoiceDiamn = None
		self.rbChoiceTriang = None
		self.rbChoicePentag = None
		
		self.labelOpcionesGrafica = tk.LabelFrame(self.master,text="Opciones gráfica",width=325,height=230)
		self.labelTransfBoxCox = tk.LabelFrame(self.master,text="Transformación Box-Cox", width=325,height=155)
		
		self.startDate = tk.StringVar()
		self.startDateEntry = None
		
		self.periods = tk.StringVar()
		self.periodsEntry = None
		
		self.rangoCeldas = tk.StringVar()
		self.rangoCeldasEntry = None
		self.Fileopened = False
		
		self.frecuencia = tk.StringVar()
		self.frecuenciaEntry = None
		 
		self.orientVar = None
		
		self.bc = None
		self.VectorMedias = None
		self.VectorLnMedias = None
		self.VectorDTipicas = None
		self.VectorLnDTipicas = None
		self.RectaRegr = None
		self.minXRegres = None
		self.MaxXRegres = None
		self.minYRegres = None
		self.MaxYRegres = None
		
	def actualizarPantalla(self):				
		if self.cuadroenBlanco is not None:
			print "Actualizacion de pantalla"
			self.grafica.get_tk_widget().destroy()
			self.cuadroenBlanco.set()
			self.cuadroenBlanco = Figure(figsize=(6,5), dpi=80)
			self.ejes = self.cuadroenBlanco.add_subplot(111)
				
	def pickcolorNode(self):
		colorpicked = askcolor()
		
		if colorpicked == (None, None): #Si no elige color en el boton Color nodos => Color de nodos por defecto
			pass
		else:
			self.nodoColor = colorpicked
			
			if self.nodosVar.get():
				if self.lineasVar.get():
					self.curva = Line2D(self.timeRangeSerieDibujada,self.serieDibujada,linestyle = self.lineaVar.get(), marker= self.nodoVar.get(), color=str(self.lineaColor[1]), markerfacecolor =str(self.nodoColor[1]))
				else:
#.........这里部分代码省略.........
开发者ID:pilarroma,项目名称:Estadistica-SeriesTemporales-Programacion,代码行数:103,代码来源:main32.py


注:本文中的matplotlib.figure.Figure.set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。