MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Plot-Function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31172] Re: Plot-Function
  • From: "Carl T. Bergstrom" <cbergst at nospam.u.washington.edu>
  • Date: Tue, 16 Oct 2001 01:18:48 -0400 (EDT)
  • References: <9qbhor$2co$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <9qbhor$2co$1 at smc.vnet.net>, "M. Kohler" <mav at justmail.de>
wrote:

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

It sure is.

For example, if the functions are continuous at 3:

  Plot[If[x<0,Sin[x],2x],{x,0,6}]

If not,

  Show[Plot[Sin[x], {x, 0, 3}], Plot[2x, {x, 3, 6}]]

But there's an even more elegant way to do this sort of thing: 
take a look at David Park's DrawGraphics packages:
 http://home.earthlink.net/~djmp/  

Best regards,
Carl

---------------------------------------
Carl T. Bergstrom                
Department of Zoology
University of Washington      
http://octavia.zoology.washington.edu            
---------------------------------------


  • Prev by Date: MultiProcessor Kernel.
  • Next by Date: Re: Plot-Function
  • Previous by thread: Re: Plot-Function
  • Next by thread: Re: Plot-Function