Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: enter specific symbols for ListPlot usage

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109910] Re: enter specific symbols for ListPlot usage
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Sat, 22 May 2010 00:42:28 -0400 (EDT)
  • References: <ht5o9t$169$1@smc.vnet.net>

Hi,

since you gove no example input it is a little difficult to guess
what you got. However, may you missed the follwing line from
the PlotMarkers Help page:

"With PlotMarkers->{Subscript[g, 1],\[Ellipsis],Subscript[g, n]} the
 Subscript[g, i] are used cyclically for successive dataset lists. "

hence, giving PlotMarkers -> {"a","b","c","d"} asks Mathematica
to plot the first list of data points with the marker "a", any second
list
with "b" and so on. Probably you provided one list of
data points but wanted to mark each point differently. I also don't
understand why Mathematica is not automatically applying the different
markers to separate points of a list IF only a single list of data
points is
the input to ListPlot - seems to be the most practical approach to me.

As a workaround one has to split the single list of N points into N
lists of one
point:

data = {{1, 4}, {2, 2}, {3, 6}, {4, 6}}
ListPlot[Partition[data, 1], PlotMarkers -> {"a", "b", "c", "d"},
 PlotRange -> {{0, 5}, {0, 7}}]

You can wrap each new marker in Style[] to change size, color, font,
etc.

Markus


On 21 Mai, 12:46, Alessandro <alexxx.ma... at gmail.com> wrote:
> I guess this is fairly simple to answer, but I've almost thrown the
> keyboard against the wall after struggling with it - so bear with
> me...
>
> I need to produce an article-quality plot of some sets of data, so I
> prefer to choose the color/symbols used.
> Therefore, instead of the usual PlotMarkers -> Automatic, I tried to
> use something along the lines of PlotMarkers -> {"a","b","c","d"}
> where "a" etc. stand for a copy/paste from the help system of the
> special characters under:ShapesIconsAndRelatedCharacters.
>
> I tried the backslash notation. I tried using doublequotes and not
> using them.
>
> What I obtained is a wild variety of plots, not one of them correct.
> And I did not even try yet to change the symbols colors!
> Surely such a basic feature should be easier to obtain - so how do you
> fine-tunes your data plots???
>
> thank you!
>
> alessandro



  • Prev by Date: Re: data in absolutetime
  • Next by Date: Re: combining ArrayPlot with ListLinePlot
  • Previous by thread: Re: enter specific symbols for ListPlot usage
  • Next by thread: Re: enter specific symbols for ListPlot usage