MathGroup Archive 1998

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

Search the Archive

Re: Questions on MultipleListPlot: One answered, one still troubling


  • To: mathgroup@smc.vnet.net
  • Subject: [mg10569] Re: Questions on MultipleListPlot: One answered, one still troubling
  • From: "David Keith" <dkeith@hevanet.com>
  • Date: Tue, 20 Jan 1998 16:54:11 -0500
  • Organization: Hevanet Communications
  • References: <69nbkv$89r@smc.vnet.net>

I previously asked about two problems I am having with MultipleListPlot.


Regarding my first question, I received several responses which directed
me to the use of sequence to flatten a list of lists for the argument.
Thanks for the help -- the technique is used in the example below.

Regarding my second question, relating to the tendency of
MultipleListPlot, when contrained by a PlotRange argument, to go ahead
and plot data points over the plot label, several asked for an example,
which I provide below. If you execute these cells several times, you
will not have to wait long to see data points -- but not the joining
lines -- plot right over the plot label, even though they are out of
range.

Any ideas?


data = Table[{n,Random[]},{4},{n,10}];

MultipleListPlot[Sequence@@data, PlotJoined->True]

MultipleListPlot[Sequence@@data, PlotJoined->True, PlotRange -> {.2,.7},
PlotLabel-> "Test Label\nLabel Line 2\nLabel Line 3"]


David Keith <dkeith@hevanet.com> wrote in article
<69nbkv$89r@smc.vnet.net>...
> I am using MultipleListPlot to plot data previously acquired and stored
> as space delimited numbers in newline delimited records. Using
> "ReadList, RecordLists->True", it is easy to acquire the data as a list
> of lists, where each element of an inner list is a two-element list
> representing a data point. The length of the outer list and of the
> inner lists is variable, depending on the particular data acquisition.
> 
> 	Example:
> 
> 	data = { 
> 		{ {x11,y11},{x12,y12},{x13,y13} },
> 		{ {x21,y21},{x22,y22},{x23,y23} },
> 		{ {x31,y31},{x32,y32},{x33,y33} }
> 	           }
> 
> I am having two problems:
> 
> 1) While ReadList easily acquires the data as a list of lists,
> MultipleListPlot wants to see separate lists as separate arguments, ie.
> "MultipleListPlot[list1,list2,list3, . . .], not
> MultipleListPlot[{list1,list2,list3, . . .}]. Can anyone recommend a
> method to feed a list of lists to MultipleListPlot?
> 
> 2) Although I am taking data over a large range, I would like to graph
> it over a smaller range using PlotRange to control the display. When I
> do this, MultipleListPlot with PlotJoined->True only draws lines in the
> selected range, but datapoints outside the range are displayed in the
> area within the plot region but outside the range and axis, obiterating
> the plot title. Any ideas would be appreciated.
> 
> Thanks.
> 
> 
> 



  • Prev by Date: Re: lists
  • Next by Date: Re: ReplacePart?
  • Prev by thread: Re: LINUX vs MATHEMATICA
  • Next by thread: Re: [Mg10471] List Manipulation