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: ListPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75998] Re: ListPlot
  • From: CKWong <CKWong.P at gmail.com>
  • Date: Mon, 14 May 2007 05:47:30 -0400 (EDT)
  • References: <f26mqu$2pg$1@smc.vnet.net>

I'm sorry that I posted a wrong answer a while ago.   Here's a quick
but unfortunately, still unsatisfactory, fix.

rListPlot[ lst : {{_, _} ..}, opt___ ] :=
            ListPlot[{#=E3=80=9A2=E3=80=9B, -#=E3=80=9A1=E3=80=9B} & /@ lst=
, Axes -> {Automatic,
False}, opt ];
rListPlot[ lst_List, opt___ ] := ListPlot[{lst, -
Range[Length[lst]]} // Transpose,
     Axes -> {Automatic, False}, opt ];

Example:
lst = Range[100]^2 + 1000;
lst2 = Table[{i, i^2 + 1000}, {i, 100}];
rListPlot[lst];
rListPlot[lst2];




  • Prev by Date: Re: Package Help in Mathematica 6
  • Next by Date: Re: Plus sets in mathematica..?
  • Previous by thread: Re: ListPlot
  • Next by thread: error message Convert::incomp in units package of Mathematica 6.0