MathGroup Archive 2007

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

Search the Archive

Re: Non numerical x-axis in (Date)ListPlot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79003] Re: Non numerical x-axis in (Date)ListPlot?
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 15 Jul 2007 01:11:22 -0400 (EDT)
  • References: <f79s2b$54b$1@smc.vnet.net>

Hi,

ListPlot[
  {dat1, dat2} /. {"A1" -> 1, "A2" -> 2, "A3" -> 3, "A4" -> 4},
  FrameTicks -> {{{1, "A1"}, {2, "A2"}, {3, "A3"}, {4, "A4"}},
    Automatic}, Frame -> True]

will do it ..
Regards
   Jens

Maarten van der Burgt wrote:
> Dear all,
> 
> I have two sets of data:
> 
> dat1 = {{"A1",2},{"A2",3},{"A4",1}}
> dat2 = {{"A1",2.2},{"A2",2.9},{"A3",0.5},{"A4",1.1}}
> 
> Is there a simple way I can plot these with the {"A1", "A2", "A3", "A4"} as
> equidistant tick marks/labels along the horizontal axis and a standard
> numerical vertical axis?
> Note the missing "A3" in dat1.
> 
> I could not find anything in the options of ListPlot, or in the new (6.0)
> DateListPlot.
> 
> Thanks for your help,
> 
> Maarten van der Burgt
> Leuven, Belgium
> 
> 


  • Prev by Date: Re: Non numerical x-axis in (Date)ListPlot?
  • Next by Date: change slider to pointed rectangle or arrow
  • Previous by thread: Re: Non numerical x-axis in (Date)ListPlot?
  • Next by thread: Re: Non numerical x-axis in (Date)ListPlot?