MathGroup Archive 2007

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

Search the Archive

Re: Problems with Filled Symbols and PlotMarkers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78683] Re: [mg78670] Problems with Filled Symbols and PlotMarkers
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Sat, 7 Jul 2007 05:53:51 -0400 (EDT)
  • References: <200707060732.DAA21520@smc.vnet.net>

zosi wrote:

>Hi,
>
>First example:
>In the following oversimplified example (WP, Version 5.2)
> 
><<Graphics`MultipleListPlot`
>
>data1= {{1,1},{2,4},{4,6}}
>
>data2= {{1.5,3},{2.5,7},{4.5,9}}
>
>MultipleListPlot[data1,data2,
>  SymbolShape\[Rule]{MakeSymbol[RegularPolygon[3,10]],
>      MakeSymbol[RegularPolygon[15,10]]}]
>     
>I would like  to fill the two symbols (3 and 15-side Polygons).
>I have noticed that
> Filled->True in not accepted by MakeSymbol
>**AND**  I cannot use the four **standard** symbols
>(otherwiese, PlotSymbol[Triangle,8,Filled-True] would work very well)     
>     
>Second example:     
>If I use Mathematica6 (ScientificLinux), to solve an equivalent problem, 
>I am not able
>to change the **Size** of the Special Characters;
>in fact, I can insert, e.g., EmptySquare (Unicode 25A1), but the 
>following line fails
>
>ListPlot[data1,data2,PlotMarkers->{{?,Size->10},{!,Size->10}}] 
>  
>
The syntax is wrong here, you need to wrap data1 and data2 in a List. 
Some random data:

data1 = RandomReal[1, {10, 2}];
data2 = RandomReal[2, {15, 2}];

The following works for me:

ListPlot[{data1, data2},  PlotMarkers -> {{\[EmptySquare], 20}, 
{\[FilledSquare], 30}}]

Carl Woll
Wolfram Research

>when ? is the  pasted EmptySquare, and ! is the pasted FilledSquare form 
>Palettes.
>
>Thanks for your help
>
>G Zosi
>Dip Fisica Generale
>University of Turin
>  
>



  • Prev by Date: Mathematica 6.0.1 Now Available
  • Next by Date: Re: Problems with ShowLegend
  • Previous by thread: Problems with Filled Symbols and PlotMarkers
  • Next by thread: Re: Problems with Filled Symbols and PlotMarkers