Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15121
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Multiple Line coloring and Dashing in ListPlot |
| Date | 2013-07-03 22:03 +0000 |
| Message-ID | <kr273r$8u4$1@smc.vnet.net> (permalink) |
| References | <20130703090126.9E0956A93@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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!
>
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Multiple Line coloring and Dashing in ListPlot Bob Hanlon <hanlonr357@gmail.com> - 2013-07-03 22:03 +0000
csiph-web