Re: Plot and filling option
- To: mathgroup at smc.vnet.net
- Subject: [mg94614] Re: [mg94583] Plot and filling option
- From: "David Park" <djmpark at comcast.net>
- Date: Wed, 17 Dec 2008 06:36:25 -0500 (EST)
- References: <16857477.1229426001803.JavaMail.root@m02>
How about using RegionPlot? Either this: RegionPlot[0 < x y < 2, {x, 0, 1}, {y, 0, 3}, AspectRatio -> Automatic] Or this: RegionPlot[ 0 < x < 1 \[And] 0 < y < 3 \[And] 0 < x y < 2, {x, -1, 2}, {y, -1, 4}, AspectRatio -> Automatic] David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: Pat [mailto:pbougette at lameta.univ-montp1.fr] Hello everyone. I need some help to make a nice plot for my teaching. I'd like to graph the following interval: 0 < x < 1 0 < y < 3 0 < x y < 2. I did this: Plot[{3, 2/x}, {x, 0, 4}, AxesLabel -> {"x", "y"}, Prolog -> {Line[{{1, 0}, {1, 4}}]}, Filling -> {1 -> Top, 2 -> Top}, PlotRange -> {0, 4}] But I have no idea how I can fill the right side of the vertical line X=1. If you have any suggestions. Maybe I should write another code. Thanks! Pat.