def fceGraf():
    try:
        od=float( fceMin.get())
        do=float( fceMax.get())
        x=lab.linspace(od, do, 500)
        if fceVar.get() == 0:
            y=lab.sin(x)
        elif fceVar.get() == 1:
            y=lab.log10(x)
        elif fceVar.get() == 2:
            y=lab.exp(x)
        lab.figure()
        lab.plot(x,y)
        lab.xlabel(osaxVar.get())
        lab.ylabel(osayVar.get())
        lab.grid(True)
        lab.show()
    except:
        box.showerror(title='Chybné meze', message='Zadejte meze osy X\njako reálná čísla')
