Previous Page Next Page Contents

plot::modify -- create modified copies of graphical objects

Introduction

plot::modify(o, option1, option2...) creates a copy of the graphical objects o and sets the plot options given in option1, option2... to this copy.

Call(s)

plot::modify(o <, option1, option2>...)

Parameters

o - graphical scene, or a graphical object (i.e., an object of type "graphprim")
option1, option2, ... - plot option(s) of the form option = value

Returns

object of the domain type as o.

Related Functions

plot::copy

Details

Example 1

We create an object representing a graph of a two-dimensional function:

>> f:= plot::Function2d(sin(x), x = 0..2)
                    plot::Function2d(sin(x), x = 0..2)

Then the following call creates a copy of the object f and changes its color to blue and the line width to the value 12:

>> g:= plot::modify(f, Color = RGB::Blue, LineWidth = 12)
                    plot::Function2d(sin(x), x = 0..2)
>> f::Color, f::LineWidth, g::Color, g::LineWidth
        [Flat, [1.0, 0.0, 0.0]], FAIL, [Flat, [0.0, 0.0, 1.0]], 12

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000