Skip to content

Passing value of python variable to tikz #11

@runningopenloop

Description

@runningopenloop

I'm new to tikz and not experienced with iPython.

I was hoping to generate an image to display the locations of some calculated circles based on other code. However it does not appear to be possible? I guess the issue is at line 301 in tikzmagic.py where code is added (tex.append(code)), the code would need to be parsed and replacing variable names with variable contents?
\begin{tikzpicture}[scale=%(scale)s]
''' % locals())

    tex.append(code)

    tex.append('''

\end{tikzpicture}
\end{document}
''')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions