RE: Dashing option and Plot
- To: mathgroup at smc.vnet.net
- Subject: [mg47698] RE: [mg47671] Dashing option and Plot
- From: David.Annetts at csiro.au
- Date: Thu, 22 Apr 2004 02:38:53 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Jose, > Can I use "Dashing" directly with "Plot"? How can I plot a dashed > plot? For example, if I want to plot y=Sin[x], {x,0,Pi} completely > dashed, how can I do it? Thanks in advance! This sounds very much like a homework question. In any case, I'm surprised that online help wasn't useful, particularly since section 2.10.3 answers your question. Plot[Sin[x], {x, 0, Pi}]; Plot[Sin[x], {x, 0, Pi}, PlotStyle -> Dashing[{.01, .01}]]; Plot[Sin[x], {x, 0, Pi}, PlotStyle -> Dashing[{.01, .01}], FrameTicks -> {PiScale, Automatic, None, None}]; Plot[Sin[x], {x, 0, Pi}, PlotStyle -> {Dashing[{.01, .01}], Thickness[.007], Red}, FrameTicks -> {PiScale, Automatic, None, None}]; Regards, Dave. ========================================== Dr. David Annetts EM Modelling Analyst CSIRO DEM Tel: +612 9490 5416 North Ryde Fax: +612 9490 5467 Australia David.Annetts at csiro.au ===========================================