MathGroup Archive 2006

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

Search the Archive

RE: plot help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69324] RE: [mg69306] plot help
  • From: "David Park" <djmp at earthlink.net>
  • Date: Thu, 7 Sep 2006 04:30:11 -0400 (EDT)

I think that PlotRange is the best way to do it.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: dimmechan at yahoo.com [mailto:dimmechan at yahoo.com]
To: mathgroup at smc.vnet.net

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: Re: Batch evaluation of multiple notebooks?
  • Next by Date: Re: Simplify UnitStep expressions
  • Previous by thread: plot help
  • Next by thread: Re: plot help