Re: plot question
- To: mathgroup at smc.vnet.net
- Subject: [mg72736] Re: plot question
- From: "dimitris" <dimmechan at yahoo.com>
- Date: Wed, 17 Jan 2007 06:32:40 -0500 (EST)
- References: <eohu9b$qcm$1@smc.vnet.net>
Thanks Bill. Dimitris Bill Rowe wrote: > On 1/15/07 at 5:35 AM, dimmechan at yahoo.com (dimitris) wrote: > > >Consider the following graph of the function -ln(|x|). > > >Plot[-Log[Abs[x]], {x, -2, 2}, PlotRange -> {Automatic, {-1, 3.5}}, > >Axes -> False, Frame -> True, PlotPoints -> 100, FrameLabel -> {"x", > >"y"}] > > >How is it possible to make the y-axis point downwards (I need this > >because in half-space problems within the solid mechanics the > >possitive vertical axis is pointed into the half-space)? > > I am not sure I understand what you mean by "make the y-axis > point downwards". I am guessing you want the increasingly > positive tick values to appear toward the bottom of the page. If > I have this right perhaps you will find the following satisfactory > > Plot[-Log[Abs[x]], {x, -2, 2}, PlotRange -> {Automatic, {-1, > 3.5}}, Axes -> False, Frame -> True, PlotPoints -> 100, > FrameLabel -> {"x", > "y"}, FrameTicks -> {Automatic, Transpose[{ > Range[0, 3], Range[3, 0, -1]}], {}, {}}]; > -- > To reply via email subtract one hundred and four