Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 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... (?)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg72110] Re: it seems like InequalityPlot can only handle a color for the PlotStyle... nothing more complicated... (?)
  • From: albert <awnl at arcor.de>
  • Date: Wed, 13 Dec 2006 06:38:23 -0500 (EST)
  • References: <eljacu$7bk$1@smc.vnet.net>

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... (?)