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


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

Re: Multiple Styles

Started byHeike Gramberg <heike.gramberg@gmail.com>
First post2011-08-01 03:35 +0000
Last post2011-08-01 03:35 +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 Styles Heike Gramberg <heike.gramberg@gmail.com> - 2011-08-01 03:35 +0000

#4114 — Re: Multiple Styles

FromHeike Gramberg <heike.gramberg@gmail.com>
Date2011-08-01 03:35 +0000
SubjectRe: Multiple Styles
Message-ID<j156tg$b18$1@smc.vnet.net>
If you want the curves to have the same thickness but a different 
colour, you could use BaseStyle to set the thickness and
PlotStyle to set the colours of the individual curves, so for example:

ParametricPlot3D[
 Evaluate[Table[{2 i + Cos[th i] Sin[th], Sin[th i] Sin[th],
    Cos[th]}, {i, 1, 4}]], {th, 0, 2 Pi},
 BaseStyle -> Thickness[0.01], PlotStyle -> Table[Hue[i/4], {i, 4}]]

If you want the different curves to have different thicknesses as well, 
you can combine them with the colours in PlotStyle like
for example

ParametricPlot3D[
 Evaluate[Table[{2 i + Cos[th i] Sin[th], Sin[th i] Sin[th],
    Cos[th]}, {i, 1, 4}]], {th, 0, 2 Pi},
 PlotStyle -> Table[{Thickness[i 0.01], Hue[i/4]}, {i, 4}]]

Heike

On 31 Jul 2011, at 12:25, ace55555 wrote:

> I am trying to change both the thickness and color of four parametric 
curves using PlotStyle. However, I either get the thickness or the 
colors to work but not both. I tried two different lines of code at the 
end of ParametricPlot3D:
> ..,PlotStyle -> 
{{RGBColor[1,0,0]},{RGBColor[0,1,0]},{RGBColor[0,0,1]},{RGBColor[0,0,0]}},
PlotStyle -> {Thickness[0.01]}
> ..,PlotStyle -> 
{{RGBColor[1,0,0]},{RGBColor[0,1,0]},{RGBColor[0,0,1]},{RGBColor[0,0,0]},{
Thickness[0.01]}}
> It would be deeply appreciated if someone could help me on this 
matter. Thanks.
>

[toc] | [standalone]


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


csiph-web