Добавил:
kostikboritski@gmail.com Выполнение курсовых, РГР технических предметов Механического факультета. Так же чертежи по инженерной графике для МФ, УПП. Писать на почту. Дипломы по кафедре Вагоны Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
41
Добавлен:
12.08.2017
Размер:
2.3 Mб
Скачать

Chapter 11

2D Plots

Overview of 2D Plotting

Graphing Functions and Expressions

Plotting Vectors of Data

Formatting a 2D Plot

Modifying a 2D Plot’s Perspective

Animations

Overview of 2D Plotting

To visually represent a function or expression of a single variable or vectors of data in Mathcad, you can create either a Cartesian X-Y plot or a polar plot. A typical polar plot shows angular values, θ, versus radial values, r. Figure 11-1 shows several examples of 2D plots.

X-Y plot of a function

X-Y plot of data vectors

Polar plot

Parametric plot

Figure 11-1: Examples of 2D plots.

117

118 / Chapter 11 2D Plots

Creating an X-Y Plot

To create an X-Y plot:

1. Choose Graph > X-Y Plot from the Insert

menu, click

 

on the Graph toolbar, or type

[@]. Mathcad inserts a blank X-Y plot.

2.Fill in both the x-axis placeholder (bottom center) and the y-axis placeholder (left center) with a function, expression, or variable.

3.Click outside the plot or press [Enter].

Mathcad automatically chooses axis limits. To specify the axis limits, click in the plot and type over the numbers in the placeholders at the ends of the axes.

See “Formatting a 2D Plot” on page 125 for how to modify these defaults.

Resizing a Graph

To resize a plot, click in the plot to select it. Then move the cursor to a handle along the edge of the plot until the cursor changes to a double-headed arrow. Hold the mouse button down and drag the mouse in the direction that you want the plot’s dimension to change.

Note Mathcad does not graph complex points. To plot the real or imaginary part of a point or expression, use the Re and Im functions to extract the real and imaginary parts, respectively.

Note If some points in a function or expression are valid and others are not, Mathcad plots only the valid ones. If the points are not contiguous, Mathcad does not connect them with a line. You may therefore see a blank plot if none of the points are contiguous. To see the points, format the trace to have symbols. See “Formatting a 2D Plot” on page 125.

Creating a Polar Plot

To create a polar plot:

1.Choose Graph > Polar Plot from the Insert menu or click on the Graph toolbar.

2.Fill in both the angular-axis placeholder (bottom center) and the radial-axis placeholder (left center) with a function, expression, or variable.

3.Click outside the plot or press [Enter].

Mathcad creates the plot over a default range using default limits.

Соседние файлы в папке doc