Ask an LLM to create a technical diagram and they’ll use a diffusion generator, which produces funny but mostly nonsensical results. But they tend to be pretty good at writing code, so I thought I’d see how they can do with the following prompt:
Describe a diagram suitable for a textbook that illustrates the definition of “cross-sectional area”. Then create SVG code to render that.
The description is easy, so I’m only going to show the SVG images they produced.
Bing also volunteered four diffusion images, first of trees like this:
Then I asked it to try again using a simple cylinder and got these cool but not usable results:
The smaller models available through HuggingChat were worse, and Cohere didn’t even get the SVG namespace into the XML. Here’s what I got from the top three: