Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15121 > unrolled thread

Re: Multiple Line coloring and Dashing in ListPlot

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-07-03 22:03 +0000
Last post2013-07-03 22:03 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Multiple Line coloring and Dashing in ListPlot Bob Hanlon <hanlonr357@gmail.com> - 2013-07-03 22:03 +0000

#15121 — Re: Multiple Line coloring and Dashing in ListPlot

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-07-03 22:03 +0000
SubjectRe: Multiple Line coloring and Dashing in ListPlot
Message-ID<kr273r$8u4$1@smc.vnet.net>
The colors do not repeat but the differences are subtle. Using PlotMarkers
is easier than varying dashing.


$Version


"8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"


data = Table[RandomReal[{2 i, 2 i + 1}, {20}], {i, 9}];


llp1 = ListLinePlot[data, PlotMarkers -> Automatic]


llp2 = ListPlot[data, PlotMarkers -> Automatic, Joined -> True]


There are nine different colors in each plot


(Cases[#, Hue[__], Infinity] // Union // Length) & /@ {llp1, llp2}


{9, 9}



$Version


"9.0 for Mac OS X x86 (64-bit) (January 24, 2013)"


data = Table[RandomReal[{2 i, 2 i + 1}, {20}], {i, 9}];


llp1 = ListLinePlot[data, PlotMarkers -> Automatic]


llp2 = ListPlot[data, PlotMarkers -> Automatic, Joined -> True]


There are nine different colors in each plot


(Cases[#, RGBColor[__], Infinity] // Union // Length) & /@ {llp1, llp2}


{9, 9}



Bob Hanlon




On Wed, Jul 3, 2013 at 5:01 AM, graser <graser@gmail.com> wrote:

> Dear Mathematica Users,
>
> I have a question about the coloring and dashing lines in listplot.
> For example, Let's say there is a multiple data set like
> data = Table[RandomReal[{2 i, 2 i + 1}, {20}], {i, 9}];
>
> I want to plot them in listplot or listloglogplot with all different color
> and all different dashing with (joined -> True).
> How can I do it automatically or minimum option?
> The default number of coloring in mathematica (I am in still 8) is 4.
> after that, it repeat same color.
>
> please help me!
>
> Thanks!
>
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web