MathGroup Archive 1997

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

Search the Archive

AxesOrigin and PlotRange

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9514] AxesOrigin and PlotRange
  • From: "K. Nikolaj Berntsen" <knb at bkm.dtu.dk>
  • Date: Sat, 8 Nov 1997 23:04:42 -0500
  • Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
  • Sender: owner-wri-mathgroup at wolfram.com

--------------2D2AC8F969DFC2AEBB0418DF

Hi Again Group,

I stumpled upon the answer to my question my self. If you want to move
the AxesOrigin you have to extend the PlotRange manually to include the
AxesOrigin, to make the axes cross, it is not enough to set it to All.
For example:

ListPlot[
    {{1,0},{2,1}},
    AxesOrigin->{0,-1},
    PlotRange->{{0,3},{-1,2}},
     PlotStyle->PointSize[0.03]
];
Regards,
Nikolaj

--
-------------------------------------------------------------- | Ph.D.
stud., cand.scient.                                  | | K. Nikolaj
Berntsen                                        | | Office: Department
of Structural Engineering and Materials | |         Technical
University of Denmark                    | |         Building 118, room
152                             | |         DK-2800 Lyngby             
| | URL:    http://www.bkm.dtu.dk/~knb                         |
-------------------------------------------------------------


--------------2D2AC8F969DFC2AEBB0418DF

<HTML>
Hi Again Group,

<P>I stumpled upon the answer to my question my self. If you want to
move the AxesOrigin you have to extend the PlotRange manually to
include the AxesOrigin, to make the axes cross, it is not enough to set
it to All. <BR>For example:

<P>ListPlot[
<BR>&nbsp;&nbsp;&nbsp; {{1,0},{2,1}}, <BR>&nbsp;&nbsp;&nbsp;
AxesOrigin->{0,-1}, <BR>&nbsp;&nbsp;&nbsp; PlotRange->{{0,3},{-1,2}},
<BR>&nbsp;&nbsp;&nbsp;&nbsp; PlotStyle->PointSize[0.03] <BR>];
<BR>Regards,
<BR>Nikolaj
<PRE>--&nbsp;
-------------------------------------------------------------- | Ph.D.
stud.,
cand.scient.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| | URL:&nbsp;&nbsp;&nbsp; <A
HREF="http://www.bkm.dtu.dk/~knb";>http://www.bkm.dtu.dk/~knb</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| ------------------------------------------------------------- </PRE>
&nbsp;</HTML>

--------------2D2AC8F969DFC2AEBB0418DF--


  • Prev by Date: (newbie):Cannot write {}[] etc...
  • Next by Date: NDSolve
  • Previous by thread: (newbie):Cannot write {}[] etc...
  • Next by thread: NDSolve