The Student's Introduction to MATHEMATICA: A Handbook for Precalculus, Calculus, and Linear Algebra

3.9: Enhancing Your Graphics

3.9 Enhancing Your Graphics

The time will soon come when you feel the irresistible desire to add some sort of graphic enhancement to a plot. Maybe it will be something as minor as an arrow and some text. Maybe it will be a stick figure. Maybe it will be hundreds of circles, polygons, and lines. Whatever the need, the time will come. And if you read this section, you will be ready.

There are two basic ways to add information to an existing graphic: Use drawing tools and your mouse to interactively add the elements you desire, or use the Graphics command and primitive graphics elements to proceed programmatically. Each method has its advantages, and we ll address each in turn.

Drawing Tools

Drawing tools are found in the Graphics menu. The idea is simple and intuitive: elements are added to a graphic using the Drawing Tools and your mouse. This approach is appropriate when you are making a single image, or perhaps just a few, and when the placement of the elements on the graphic allows some leeway. It s great for adding labels with arrows pointing to items in a plot, for example.

Let s begin with a graphic produced by the Plot command.

 In[1]:= <b class="bold">Plot[{Sin[x], ArcSin[x]}, {x, </b><span class="inlinemediaobject"><img alt="Image from book"> border="0"> height="40"> id="IMG_221"> src="https://images.books24x7.com/bookimages/id_31099/fig124_02.jpg"> title=""> width="27"></span><b class="bold">, </b><span class="inlinemediaobject"><img alt="Image from book"> border="0"> height="40"> id="IMG_222"> src="https://images.books24x7.com/bookimages/id_31099/fig124_03.jpg"> title=""> width="15"></span><b class="bold">}, PlotStyle <span class="unicode">?</span> {Automatic, Dashed},</b><b class="bold">         ...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Waveplates and Retardation Plates
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.