MathGroup Archive 2009

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

Search the Archive

Re: Is Orange translucent?

  • To: mathgroup at
  • Subject: [mg101304] Re: [mg101271] Is Orange translucent?
  • From: Murray Eisenberg <murray at>
  • Date: Tue, 30 Jun 2009 06:36:46 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at

I tried the following...

   f[x_] := Piecewise[{{-1, x < 1}, {0, 1 <= x < 2}, {1, x >= 2}}]
   Plot[f[x], {x, 0, 3}, PlotStyle -> {Thickness[0.01], Green}]
   Plot[f[x], {x, 0, 3}, PlotStyle -> {Thickness[0.01], Orange}]

... in both cases, actually, with additional option ImageSize->8*72 so 
that I could better see the effect. And yes, the x-axis and tick marks 
do show through the green or orange segment of the function's graph.

But this looks perfectly attractive and informative to me: I would not 
want to have the axis or the tick marks obscured.  If I were to insist 
on obscuring the axes and tick marks, I would simply choose a very 
intense, dark color such as Blue.

I don't know how one would determine whether the axes are drawn last, 
since if you take the FullForm of the plot, the axes are represented 
merely by an expression Rule[Axes,True].

AES wrote:
> I'm Plot[]ing two functions, using
>    PlotStyle->{{Thick, Blue}, {Thick, Orange}]
> Both functions run along on top of the x axis (i.e., have y(x)=0) for 
> part of their range.  
> In these regions, the black axis line shows through -- or on top of? -- 
> both curves.  The Blue curve is dark enough that you don't notice this; 
> but with the Orange curve -- or maybe a Green one -- it looks terrible.
> Are the axes drawn before or after the curves?  (I can see arguments 
> both ways on which of these ought to be the default.)  
> Or are the Colors in the PlotStyle translucent?
> Any simple way to switch this behavior?

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: interpolation and to extract between 3D plots
  • Next by Date: Manipulate suggestions
  • Previous by thread: Is Orange translucent?
  • Next by thread: Is Orange translucent?