MathGroup Archive 2006

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

Search the Archive

plot help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69306] plot help
  • From: dimmechan at yahoo.com
  • Date: Wed, 6 Sep 2006 04:28:21 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi to all.

I have the following simple plot.

\!\(Plot[{1/x, \(-1\)/x}, {x, 0, 5}, Axes -> False,
    Frame -> True, PlotStyle -> {AbsoluteThickness[1],
    AbsoluteThickness[
      2]}, ImageSize -> {600, 300}, PlotLegend -> {f\_1[x], f\_2[x]}, \
LegendShadow -> None, LegendPosition -> {0, 0.2}, LegendSize -> {1,
     0.3}, FrameTicks -> {{0, {0.5, "\<\>"}, 1, {1.5,
    "\<\>"}, 2, {2.5, "\<\>"},
      3, {3.5, "\<\>"}, 4, {4.5, "\<\>"}, 5}, {\(-20\), {\(-15\),
"\<\>"}, \
\(-10\), {\(-5\), "\<\>"}, 0, {5, "\<\>"}, 10, {15, "\<\>"}, 20}, None,

    None}]\)

Executing the command I get a nice plot but what I really is the frame
to begin at zero and not left from zero.

I tried PlotRange (see below) and I got sth close to what I need but I
wonder if there is a more elegant solution.

\!\(Plot[{1/x, \(-1\)/x}, {x, 0, 5}, Axes -> False,
    Frame -> True, PlotStyle -> {AbsoluteThickness[1],
    AbsoluteThickness[
      2]}, ImageSize -> {600, 300}, PlotLegend -> {f\_1[x], f\_2[x]}, \
LegendShadow -> None, LegendPosition -> {0, 0.2}, LegendSize -> {1,
     0.3}, FrameTicks -> {{0, {0.5, "\<\>"}, 1, {1.5,
    "\<\>"}, 2, {2.5, "\<\>"},
      3, {3.5, "\<\>"}, 4, {4.5, "\<\>"}, 5}, {\(-20\), {\(-15\),
"\<\>"}, \
\(-10\), {\(-5\), "\<\>"}, 0, {5, "\<\>"}, 10, {15, "\<\>"}, 20}, None,

    None}, PlotRange -> {{\(- .001\), 5}, {\(-25\), 25}}]\)

Thanks in advance for any help


  • Prev by Date: repost -Difficulties with xml
  • Next by Date: Re: Batch evaluation of multiple notebooks?
  • Previous by thread: Re: repost -Difficulties with xml
  • Next by thread: RE: plot help