zlacker

[return to "Ask HN: What's the state of the art for drawing math diagrams online?"]
1. abdull+wh[view] [source] 2023-11-20 18:45:42
>>ajkjk+(OP)
The pytikz package on pypi [1] is not good. There is another package by the same name available on github [2] that is very nice to work with.

I have been using it to produce images for my book and am very happy with it. There is tutorial here that shows you the syntax [3].

[1] https://pypi.org/project/pytikz/

[2] https://github.com/allefeld/pytikz

[3] https://nbviewer.org/github/allefeld/pytikz/blob/master/pyti...

◧◩
2. ajkjk+pd6[view] [source] 2023-11-22 06:05:35
>>abdull+wh
Ah, [2] looks really interesting. Maybe the best option on this page since it seems to get all the expressivity of Tikz without the syntax? I'll check it out.
◧◩◪
3. abdull+ml6[view] [source] 2023-11-22 06:56:12
>>ajkjk+pd6
I have probably made 100s of diagrams in tikz over the last 15 years. Every single time has been me trying to figure out the magic enchantment.

This pytikz package finally made tikz sane and pleasant. The best part is that control instructions like for loops, storing values in variables etc are done with python, and the tikz api calls are only made to actually put things on the screen.

This means, for example, that I can declare some color scheme for my book images once (by defining some python variables as color values), and then consistently use that scheme for all images.

[go to top]