MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Dashing option and Plot


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
===========================================


  • Prev by Date: RE: Simplify using custom function
  • Next by Date: Re: Simplify using custom function
  • Previous by thread: RE: Dashing option and Plot
  • Next by thread: plot rendering problem under linux