MathGroup Archive 2006

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

Search the Archive

Re: it seems like InequalityPlot can only handle a color

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72111] Re: [mg72074] it seems like InequalityPlot can only handle a color
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 13 Dec 2006 06:38:25 -0500 (EST)
  • Reply-to: hanlonr at cox.net

<<"Graphics`InequalityGraphics`" 

Here the first line (bottom) is red (first style) and the second line (top) is thick (second style). If there were a third line it would be dashed and a fourth line would cycle back to red.

InequalityPlot[x+5*y<2,{x,-5,5},{y,-5,5},
    Fills->{Green}, 
      PlotStyle->{Red,Thickness[0.01],Dashing[{.05,.025}]}];

However, if you put your style elements into a list to create a compound style definition, all lines (top and bottom) share (cycle through single element list) the compound style

InequalityPlot[x+5*y<2,{x,-5,5},{y,-5,5},
    Fills->{Green}, 
      PlotStyle->{{Red,Thickness[0.01],Dashing[{.05,.025}]}}];


Bob Hanlon

---- Chris Chiasson <chris at chiasson.name> wrote: 
> See for yourself:
> 
> This causes a huge black top border ... nothing like the specification:
> 
> <<"Graphics`InequalityGraphics`"
> InequalityPlot[x+5*y<2,{x,-5,5},{y,-5,5},Fills\[Rule]{Green},
>   PlotStyle\[Rule]{Red,Thickness[0.01],Dashing[{.05,.025}]}]
> 
> This works well:
> 
> InequalityPlot[x+5*y<2,{x,-5,5},{y,-5,5},Fills\[Rule]{Green},
>   PlotStyle\[Rule]{Red}]
> 
> -- 
> http://chris.chiasson.name/
> 


  • Prev by Date: Re: On Reduce
  • Next by Date: Re: Sin[30*Degree] vs Sin[29*Degree]
  • Previous by thread: All - Re: basic complex number question
  • Next by thread: Re: Elementary workbench question