Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4173
| From | David Annetts <david.annetts@iinet.net.au> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Generating a Sequence of Plot Style Directives |
| Date | 2011-08-03 23:27 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j1clhh$g7a$1@smc.vnet.net> (permalink) |
| References | <201108031105.HAA10793@smc.vnet.net> |
Hi Gregory,
Something like
pstyl = Flatten@Join[{Directive[Thick, Blue]& /@ Range[numblue]},
{Directive[Dashed, Gray]& /@ Range[numgray]}];
preceded by
{numblue, numgray} = Switch[numseries,
16, {9, 7},
14, {8, 6}
];
could be generated on the fly.
D.
On 3/08/2011 19:05, Gregory Lypny wrote:
> Hello everyone,
>
> I've created a Manipulate that generates a series of plots depending
> on parameters that the user selects. That selection will determine the
> number of series to plot and I would like to format them
> programmatically; for example, if there are 16, then the first nine
> might be thick and blue and the remaining seven dashed and grey. How
> would I do that knowing the total number of series and the number in
> each style category?
>
> Regards,
>
> Gregory
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Generating a Sequence of Plot Style Directives David Annetts <david.annetts@iinet.net.au> - 2011-08-03 23:27 +0000
csiph-web