I'm trying to get this prefigure to appear in my book (it's not perfect yet, but can edit it more once I can get it to display properly). I'm using the code below to insert the graph with annotations. I created it in the prefigure playground, so at least the diagram portion worked in the playground. Let me know if anyone can see a problem, or if more information would be helpful. Thanks! I am finally getting around to making this book after that workshop almost a year ago...
<figure xml:id="slope-figure">
<image width="60%">
<description> Slope of a line segment between two points on a graph </description>
<diagram dimensions="(300,300)" margins="5">
<definition>x1=1</definition>
<definition>x2=4</definition>
<definition>y1=1</definition>
<definition>y2=5</definition>
<definition>p=(x1,y1)</definition>
<definition>q=(x2,y2)</definition>
<definition>r=(x2,y1)</definition>
<coordinates bbox="(-1,-1,6,6)">
<axes decorations="no" xlabel="x" ylabel="y"/>
<group outline="none">
<polygon points="(p,r,q)" stroke="red"/>
<line endpoints="(p, q)" stroke="blue" infinite="yes"/>
</group>
<label anchor="((x1+x2)/2,y1)" alignment="south">
<m>\Delta x</m>
</label>
<label anchor="(x2,(y1+y2)/2)" alignment="east">
<m>\Delta y</m>
</label>
</coordinates>
<annotations>
<annotation ref="figure"
text="Graph showing the how the change in y and change in x is found on a graph">
<annotation ref="graph-group" text="The graph and its tangent line">
<annotation ref="graph" text="The graph of the function f" sonify="yes"/>
<annotation ref="point" text="The point a comma f of a"/>
<annotation ref="tangent" text="The tangent line to the graph of f at the point"/>
</annotation>
</annotation>
</annotations>
</diagram>
</prefigure>
</image>
</figure>