       RE: Plot-Function

• To: mathgroup at smc.vnet.net
• Subject: [mg31167] RE: [mg31158] Plot-Function
• From: "David Park" <djmp at earthlink.net>
• Date: Tue, 16 Oct 2001 01:18:42 -0400 (EDT)
• Sender: owner-wri-mathgroup at wolfram.com

```Mathias,

Here is an example with the regular Mathematica paradigm.

Needs["Graphics`Colors`"]

Block[{\$DisplayFunction = Identity},
plot1 = Plot[Sin[x], {x, 0, 3}, PlotStyle -> Blue,
Frame -> True, PlotLabel ->
"Two Functions - Two Ranges"];
plot2 = Plot[Cos[x], {x, 3, 6}, PlotStyle -> Red]];
Show[plot1, plot2];

Here is the same thing using my DrawGraphics packages (available at my web
site).

Needs["DrawGraphics`DrawingMaster`"]

Draw2D[
{Blue, Draw[Sin[x], {x, 0, 3}],
Red, Draw[Cos[x], {x, 3, 6}]},
Frame -> True,
PlotLabel -> "Two Functions - Two Ranges"];

David Park

> From: M. Kohler [mailto:mav at justmail.de]
To: mathgroup at smc.vnet.net
>
> Hi,
>
>
> in Mathematica,
> I've got two functions (f1 and f2).
>
>
> Is it possible to plot the first function (f1) from x = 0 to 3
> and the second
> one from x = 3 to 6 in _one_ Graphic?
>
>
> Thanks for answering.
> Mathias
> --
> __________________________________________________________
> News suchen, lesen, schreiben mit http://newsgroups.web.de
>

```

• Prev by Date: Re: Sorting and Selecting in MultiLevel Lists?
• Next by Date: Re: How do I eliminate premultipliers of "1." ?
• Previous by thread: Re: Plot-Function
• Next by thread: style sheeting