Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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
> 


  • Prev by Date: Re: Directory ? Not the current working one !
  • Next by Date: Nonautonomous ODEs
  • Previous by thread: plot question
  • Next by thread: Re: plot question