O'Reilly logo

Mathematica Demystified by Jim Hoste

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required