Re: MultipleListPlot - does not work
- To: mathgroup at smc.vnet.net
- Subject: [mg78924] Re: MultipleListPlot - does not work
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 13 Jul 2007 05:56:31 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f74t8n$94s$1@smc.vnet.net>
amigupta at gmail.com wrote:
> Hi !
>
> I am new to Mathematica and trying to use MultipleListPlot function to
> plot two lists. But for some reason it does not seem to work. What I
> did is (my comments in lines starting with //):
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> //loading the package
>
> << Graphics`MultipleListPlot`
>
> //defining the lists
> list1 = {1, 2, 3};
> list2 = {4, 5, 6};
>
> MultipleListPlot[list1, list2]
>
> //mathematica output
> MultipleListPlot[{1, 2, 3}, {4, 5, 6}]
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>>From my two-days experience with Mathematica, it seems that
> Mathematica couldn't find the function MultipleListPlot and hence, it
> is outputting the expended list only. I am using Mathematics 5.2 . Any
> suggestions about what I am doing wrong ?
It is very likely that you tried to use *MultipleListPlot* /before/
loading the required package. Either run your code in a fresh kernel or
*Remove* the symbol before loading the package. For instance,
In[1]:=
list1 = {1, 2, 3};
list2 = {4, 5, 6};
MultipleListPlot[list1, list2]
Out[3]=
MultipleListPlot[{1,2,3},{4,5,6}]
In[4]:=
Needs["Graphics`MultipleListPlot`"]
MultipleListPlot[list1, list2]
From In[4]:=
MultipleListPlot::shdw : Symbol MultipleListPlot appears in multiple
contexts {Graphics`MultipleListPlot`, Global`}; definitions in context
Graphics`MultipleListPlot` may shadow or be shadowed by other
definitions. More ...
Out[5]=
MultipleListPlot[{1,2,3},{4,5,6}]
In[6]:=
Remove[MultipleListPlot]
Needs["Graphics`MultipleListPlot`"]
MultipleListPlot[list1, list2]
Out[8]=
â??Graphicsâ??
Regards,
Jean-Marc