本文整理汇总了Python中matplotlib.backends.backend_tkagg.FigureCanvasTkAgg.get_renderer方法的典型用法代码示例。如果您正苦于以下问题:Python FigureCanvasTkAgg.get_renderer方法的具体用法?Python FigureCanvasTkAgg.get_renderer怎么用?Python FigureCanvasTkAgg.get_renderer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类matplotlib.backends.backend_tkagg.FigureCanvasTkAgg
的用法示例。
在下文中一共展示了FigureCanvasTkAgg.get_renderer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg [as 别名]
# 或者: from matplotlib.backends.backend_tkagg.FigureCanvasTkAgg import get_renderer [as 别名]
#.........这里部分代码省略.........
label="Euler")
self.digitosfracionarios = Menu(master,tearoff=0)
self.menubar.add_cascade(menu=self.digitosfracionarios,
activebackground="#d9d9d9",
activeforeground="#111111",
background="#d9d9d9",
foreground="#000000",
label="DigitosFracionarios")
self.digitosfracionarios.add_radiobutton(
value="2 Digitos",
activebackground="#d9d9d9",
activeforeground="#000000",
background="#d9d9d9",
command=v5_support.TODO,
foreground="#000000",
label="2 Digitos")
self.digitosfracionarios.add_radiobutton(
value="3 Digitos",
activebackground="#d9d9d9",
activeforeground="#000000",
background="#d9d9d9",
command=v5_support.TODO,
foreground="#000000",
label="3 Digitos")
self.digitosfracionarios.add_radiobutton(
value="4 Digitos",
activebackground="#d9d9d9",
activeforeground="#000000",
background="#d9d9d9",
command=v5_support.TODO,
foreground="#000000",
label="4 Digitos")
self.label_menu_plot = Label (master)
self.label_menu_plot.place(relx=-0.01,rely=0.94,height=46,width=1052)
self.label_menu_plot.configure(activebackground="#f9f9f9")
self.label_menu_plot.configure(activeforeground="black")
self.label_menu_plot.configure(background="white")
self.label_menu_plot.configure(borderwidth="4")
self.label_menu_plot.configure(disabledforeground="#a3a3a3")
self.label_menu_plot.configure(foreground="#000000")
self.label_menu_plot.configure(highlightbackground="#d9d9d9")
self.label_menu_plot.configure(highlightcolor="black")
self.label_menu_plot.configure(relief=RIDGE)
try:
toolbar = NavigationToolbar2TkAgg(canvas_plots,self.label_menu_plot)
toolbar.pack(side = TOP, fill = Y)
except:
pass
self.in_y0 = Entry (master)
self.in_y0.place(relx=0.21,rely=0.12,relheight=0.04,relwidth=0.04)
self.in_y0.configure(background="white")
self.in_y0.configure(disabledforeground="#a3a3a3")
self.in_y0.configure(font="TkFixedFont")
self.in_y0.configure(foreground="#000000")
self.in_y0.configure(highlightbackground="#d9d9d9")
self.in_y0.configure(highlightcolor="black")
self.in_y0.configure(insertbackground="black")
self.in_y0.configure(selectbackground="#c4c4c4")
self.in_y0.configure(selectforeground="black")
self.in_y0.configure(width=44)
self.in_dy0 = Entry (master)
self.in_dy0.place(relx=0.37,rely=0.12,relheight=0.04,relwidth=0.04)
self.in_dy0.configure(background="white")
self.in_dy0.configure(disabledforeground="#a3a3a3")
self.in_dy0.configure(font="TkFixedFont")
self.in_dy0.configure(foreground="#000000")
self.in_dy0.configure(highlightbackground="#d9d9d9")
self.in_dy0.configure(highlightcolor="black")
self.in_dy0.configure(insertbackground="black")
self.in_dy0.configure(selectbackground="#c4c4c4")
self.in_dy0.configure(selectforeground="black")
self.in_dy0.configure(width=44)
self.in_xT = ttk.Entry (master)
self.in_xT.place(relx=0.65,rely=0.1,relheight=0.06,relwidth=0.22)
self.in_xT.configure(font=font15)
self.in_xT.configure(width=226)
self.in_xT.configure(takefocus="")
self.in_xT.configure(cursor="ibeam")
#-----------------------------INIT configs-------------------------------------
self.in_xT.insert(END, '1')
self.in_y0.insert(END, '1')
self.in_dy0.insert(END, '1')
self.in_a0.insert(END, '1')
self.in_a1.insert(END, '1')
self.in_a2.insert(END, '1')
latex_fig = print_latex()
plot_fig = show_plots()
canvas_plots = FigureCanvasTkAgg(plot_fig,self.frame_plot)
canvas_latex = FigureCanvasTkAgg(latex_fig,self.frame_latex)
canvas_latex.get_tk_widget().pack(side = TOP,fill = BOTH, expand = 1)
canvas_latex.get_renderer(cleared=True)
canvas_plots.get_tk_widget().pack(side = TOP,fill = BOTH, expand = 1)