Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Draw number lines manually
Browse files Browse the repository at this point in the history
  • Loading branch information
siwelwerd committed Jul 29, 2024
1 parent 250ee9f commit 069ca79
Showing 1 changed file with 33 additions and 10 deletions.
43 changes: 33 additions & 10 deletions source/01-EQ/07.ptx
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,16 @@
<answer>
<image>
<sageplot>
<xi:include parse="text" href="../../sage/common.sage"/>
p = TBILPrecal.numberline_plot()
p += TBILPrecal.inequality_plot(start=-2,end=7,label_endpoints=False)
<!--<xi:include parse="text" href="../../sage/common.sage"/> -->
#p = TBILPrecal.numberline_plot()
#p += TBILPrecal.inequality_plot(start=-2,end=7,label_endpoints=False)
p = arrow((-10,0),(10,0),color="black", width=1, arrowsize=1, aspect_ratio=1,head=2)
for i in range(-9,10):
p += line([(i,-0.2),(i,0.2)],color="black")
p += text(f"${i}$", (i,-0.6),color="black")
p += line([(-2,0),(7,0)],color="#0088ff", thickness=3, aspect_ratio=1)
p += text("(", (-2,0), color="#0088ff", fontsize=18)
p += text(")", (7,0), color="#0088ff", fontsize=18)
p.axes(False)
p
</sageplot>
Expand Down Expand Up @@ -177,9 +184,16 @@
<answer>
<image>
<sageplot>
<xi:include parse="text" href="../../sage/common.sage"/>
p = TBILPrecal.numberline_plot()
p += TBILPrecal.inequality_plot(start=-5,end=3,strict_start=False,strict_end=False,label_endpoints=False)
<!--<xi:include parse="text" href="../../sage/common.sage"/> -->
#p = TBILPrecal.numberline_plot()
#p += TBILPrecal.inequality_plot(start=-5,end=3,strict_start=False,strict_end=False,label_endpoints=False)
p = arrow((-10,0),(10,0),color="black", width=1, arrowsize=1, aspect_ratio=1,head=2)
for i in range(-9,10):
p += line([(i,-0.2),(i,0.2)],color="black")
p += text(f"${i}$", (i,-0.6),color="black")
p += line([(-5,0),(3,0)],color="#0088ff", thickness=3, aspect_ratio=1)
p += text("[", (-5,0), color="#0088ff", fontsize=18)
p += text("]", (3,0), color="#0088ff", fontsize=18)
p.axes(False)
p
</sageplot>
Expand Down Expand Up @@ -338,10 +352,19 @@
<answer>
<image>
<sageplot>
<xi:include parse="text" href="../../sage/common.sage"/>
p = TBILPrecal.numberline_plot()
p += TBILPrecal.inequality_plot(end=-12,strict_end=False,label_endpoints=False)
p += TBILPrecal.inequality_plot(start=-5,end=2,label_endpoints=False)
<!--<xi:include parse="text" href="../../sage/common.sage"/> -->
#p = TBILPrecal.numberline_plot()
#p += TBILPrecal.inequality_plot(end=-12,strict_end=False,label_endpoints=False)
#p += TBILPrecal.inequality_plot(start=-5,end=2,label_endpoints=False)
p = arrow((-14,0),(5,0),color="black", width=1, arrowsize=1, aspect_ratio=1,head=2)
for i in range(-14,5):
p += line([(i,-0.2),(i,0.2)],color="black")
p += text(f"${i}$", (i,-0.6),color="black")
p += arrow((-12,0),(-15,0),color="#0088ff", width=3)
p += line([(-5,0),(2,0)],color="#0088ff", thickness=3)
p += text("]", (-12,0), color="#0088ff", fontsize=18)
p += text("(", (-5,0), color="#0088ff", fontsize=18)
p += text(")", (2,0), color="#0088ff", fontsize=18)
p.axes(False)
p
</sageplot>
Expand Down

0 comments on commit 069ca79

Please sign in to comment.