Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

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


  • 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