Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: plot help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69332] Re: plot help
  • From: "Stratocaster" <stotz1 at verizon.net>
  • Date: Thu, 7 Sep 2006 04:30:34 -0400 (EDT)
  • References: <edm17b$cmg$1@smc.vnet.net>

Try using

AxesOrigin->{0,0}

Is this what you wanted?



<dimmechan at yahoo.com> wrote in message news:edm17b$cmg$1 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: Simplify UnitStep expressions
  • Next by Date: Re: repost -Difficulties with xml
  • Previous by thread: RE: plot help
  • Next by thread: Fit rectangle to set of points