12.06.2013 Views

Using TIKZ - College of the Redwoods

Using TIKZ - College of the Redwoods

Using TIKZ - College of the Redwoods

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Smoothing<br />

Use <strong>the</strong> smooth option to cure <strong>the</strong> jaggedness <strong>of</strong> <strong>the</strong> curve.<br />

\ b e g i n { t i k z p i c t u r e }<br />

\ draw [ h e l p l i n e s ] (−5,−5) g r i d ( 5 , 5 ) ;<br />

\ draw [ t h i c k ,] ( −5 ,0) −−(5,0) node [ r i g h t ] {$ x $ } ;<br />

\ draw [ t h i c k ,] (0 , −5) −−(0,5) node [ above ] {$ y $ } ;<br />

\ b e g i n { scope }<br />

\ c l i p (−5,−5) r e c t a n g l e ( 5 , 5 ) ;<br />

\ draw [ t h i c k , blue , smooth ] p l o t (\ x , { \ x ∗(\ x+2) ∗(\ x −2)<br />

}) ;<br />

\ end { scope }<br />

\ end { t i k z p i c t u r e }<br />

Recompile workshop10.tex and note <strong>the</strong> difference.<br />

David Arnold (CR) <strong>Using</strong> <strong>TIKZ</strong> November 20, 2010 17 / 24

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!