Group Abstract Group Abstract

Message Boards Message Boards

HELP! How to properly add/manipulate COLORS and LINE THICKNESS to plots?

Posted 11 years ago

Hello again - sorry to be stupid. I have posted several notes within past week and have answers to most of them. I DID find solution to 'resolution' question I raised on this Forum buried in 'help' files. Coupla NEW questions: 1.) How to best adjust 'line thickness' for a plotted function[s]; & 2.) How to color the plotted output 'graph line'. Here is a brief example:

D1 =Line[{{?/4},{12?/4}}];   

D1 - 1 is 'subscript'

ParametricPlot3D[{(2+Sin[8u])Cos[u],(5+Cos[8u])Sin[u],Sin[8u]},{u}?D 1 ,Boxed ->False, Axes ->False]

(Pls see attachment) Where in syntax do I enter a 'color' command - I just want the sin/cos plot in 'Purple' color; also, I would like to make plot line 'thicker', but see multiple commands/structures for 'thick[ness]'. etc.

Thank you in advance for help -- RPP

Attachments:
3 Replies

Hi Ravi-Praveenkumar Padnaram,

thank you very much for your kind words. I am glad if what I wrote helped.

I am not working for Wolfram, but I do really like the technology that they produce. I work at a University and I teach using Mathematica. I see that you are interested in Astronomy and Supersymmetry. I guess that the features of the recent versions of Mathematica must be very useful then. Also, a basic account of the Wolfram Programming Cloud is indeed free.

Given that you are interested in Astronomy (I assume from a rather theoretical perspective) you might like this:

Telescope control with Mathematica

Telescope control 2

another one

All that stuff is basically free if you have a RaspberryPi. I got students to do really cool projects with Mathematica on a Raspberry.

Best wishes and thank you,

Marco

POSTED BY: Marco Thiel
Attachments:

Hi,

D1 = Line[{{\[Pi]/4}, {12 \[Pi]/4}}];
ParametricPlot3D[{(2 + Sin[8 u]) Cos[u], (5 + Cos[8 u]) Sin[u], Sin[8 u]}, {u} \[Element] D1, Boxed -> False, Axes -> False, PlotStyle -> Directive[Purple, Thickness[0.04]]]

enter image description here

Cheers,

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard