Skip to main content
Logo image

PreTeXt Showcase

Section 3 Images and Diagrams

Subsection 3.1 Images and Diagrams from Code

visual proof of the identity that the sum of k from k=1 to k=n is equal to n+1 choose 2
There is a single ball at the top; beneath that there is a row with two balls; beneath that there is a row with three balls, then four, then five, then six.
Below all this is a row with seven balls and a particular subset of two of those balls is highlighted. The diagram illustrates a correspondence from that pair to a particular ball in the upper collection.
Figure 3.1. tikz Examples
Figure 3.2. pgfplots Examples

Subsection 3.2 Images and Diagrams from Asymptote

Figure 3.3. Canada
Figure 3.4. European Union
Figure 3.5. United States
Figure 3.6. Area under the curve \(f(x)=e^{-x^2}\)
Figure 3.7. Five set Venn diagram using ellipses
Figure 3.8. Rotatable pretextbook.org/examples/sample-article/annotated/graphics.html#graphics-asymptote-webgl Deathstar