Skip to content

Instantly share code, notes, and snippets.

View nrenga's full-sized avatar

Narayanan Rengaswamy nrenga

View GitHub Profile
@Joshua1989
Joshua1989 / fg_helper.py
Last active April 2, 2019 19:23
Fast tikz Factor Graph drawing based on python3+tkinter, just run it, build your graph by clicking and hit return, then the tikz code is in your clipboard
from tkinter import *
from string import Template
import clipboard
root = Tk()
# Make the window transparent, bring it to topmost
root.wait_visibility(root)
root.attributes('-alpha', 0.5)
# Note sometimes this causes other windows to hide, still figuring what happened
root.attributes('-topmost', True)