Re: plotting discontinuity
- To: mathgroup at smc.vnet.net
- Subject: [mg17510] Re: plotting discontinuity
- From: "Stephen P Luttrell" <luttrell at signal.dra.hmg.gb>
- Date: Mon, 10 May 1999 19:53:16 -0400
- Organization: Defence Evaluation and Research Agency
- References: <7h5sh1$h75@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
<mrazek_martin at my-dejanews.com> wrote in message news:7h5sh1$h75 at smc.vnet.net... > Can somebody advise me how to plot discontinuity in Mathematica 3.0 ? > For example: When I type > > Plot[1/(x-2),{x,0,4}] > > Mathematica plots asymptote (x=2) in the point where the graph has > discontinuity. I'm in bad need of elimination of this asymptote but I > haven't invented how. For example in other systems it is possible > to write discontinuity=true and the program plots it in this way. Which > option is it in Mathematica ? You could try the following (it's a bit of a hack, but it works): gr1=Plot[1/(x-2),{x,0,1.99},DisplayFunction->Identity]; gr2=Plot[1/(x-2),{x,2.01,4},DisplayFunction->Identity]; Show[{gr1,gr2},DisplayFunction->$DisplayFunction]; -- Stephen P Luttrell Defence Evaluation and Research Agency luttrell at signal.dera.gov.uk