Re: plot question

*To*: mathgroup at smc.vnet.net*Subject*: [mg72700] Re: [mg72689] plot question*From*: Bob Hanlon <hanlonr at cox.net>*Date*: Tue, 16 Jan 2007 02:15:12 -0500 (EST)*Reply-to*: hanlonr at cox.net

p1=Plot[-Log[Abs[x]],{x,-2,2}, PlotRange->{Automatic,{-1,3.5}},Frame->True, PlotPoints->100,DisplayFunction->Identity]; Show[p1/.{x_,y_}->{x,-y}, PlotRange->{Automatic,{1,-3.5}}, Axes->False,Frame->True, FrameLabel->{"x","y"}, FrameTicks->{Automatic, AbsoluteOptions[p1,FrameTicks][[1,2,2]]/.{y_?NumericQ,r___}->{-y,r}, Automatic,Automatic}, DisplayFunction->$DisplayFunction]; Bob Hanlon ---- dimitris <dimmechan at yahoo.com> wrote: > Hello! > > 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)? > > Thanks in advance. > Dimitris >