CHAPTER 2Two-DimensionalGraphics

Mathematica can be used to draw beautiful pictures that make it easy to visualize complicated curves, surfaces, data sets, or other shapes. In this chapter we’ll focus on two-dimensional graphics. In Chap. 6 we’ll introduce tools to display three-dimensional objects.

2.1 The Plot Function

One of the most fundamental and useful graphics tools is the Plot function which can be used to draw the graph of a function. Here is a simple example.

Example 2.1.1

In[74]:= (* using Plot to graph a function *)         Plot [Sin [x], {x, 0, 2 Pi}]

Image

The Plot function takes two arguments. The first is the function that we want to ...

Get Mathematica DeMYSTiFied now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.