3

I have for example a handwritten graph:

enter image description here

I am looking for a website (or alternative solution) like Mathpix, which transforms my handwritten graph into a tikzpicture code. So that my output looks like followed:

\begin{tikzpicture}[thick, auto, scale=0.8, transform shape]
    \node [state] (v0) {$v_0$};
    \node [state, above right=of v0] (v1) {$v_1$};    
    \node [state, below right=of v0] (v2) {$v_2$};    
    \node [state, below=of v0] (v3) {$v_3$};
    \node [state, below=of v3] (v4) {$v_4$};
    \node [state, below right=of v3] (v5) {$v_5$};
    \node [state, below right =of v4] (v6) {$v_6$};
    \path
    (v0) edge[-] node {} (v1);
    \path
    (v0) edge[-] node {} (v2);
    \path
    (v0) edge[-] node {} (v5);
    \path
    (v3) edge[-] node {} (v6);
    \path
    (v4) edge[-] node {} (v2);
    \path
    (v4) edge[-] node {} (v6);
\end{tikzpicture}
JAdel
  • 95

2 Answers2

5

Here is a website which can help you draw almost anything.

It does not automatically transform your hand drawn image, it only reduces the effort you need to achieve the desired result.

enter image description here

WinnieNotThePooh
  • 3,008
  • 1
  • 7
  • 14
5

yEd is a general-purpose graph editor that can import a variety of file formats, including images of hand-drawn graphs. It has a feature to export the graph as TikZ code, which you can then include in your LaTeX document. While it is not able to perfectly recreate the hand-drawn graph, it can save you a significant amount of time and effort compared to manually recreating the graph in TikZ.

FreeTikz is a web-based tool to convert hand-drawn diagrams into tikz code. Click here to run.