MathGroup Archive 2006

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

Search the Archive

Re: it seems like InequalityPlot can only handle a color for the PlotStyle... nothing more complicated... (?)


Chris Chiasson 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}]
> 

I don't exactly understand why, but obviously InequalityPlot for some
reasons expects a list of Style-Specifications (like other plot-routines
do, too), that is the following works for me (note the extra level of
braces):

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

otherwise the first line gets style red (only), the second gets thickness
(with color and dashing still the default) and a third line, which does not
exist in you example would be dashed (only).

hth,

albert


  • Prev by Date: Re: Using Mathematica to explore basic genealogical concepts
  • Next by Date: Re: SpericalPlot3D in Gray?
  • Previous by thread: it seems like InequalityPlot can only handle a color for the PlotStyle... nothing more complicated... (?)
  • Next by thread: RE: it seems like InequalityPlot can only handle a color for the PlotStyle... nothing more complicated... (?)