MathGroup Archive 2011

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

Search the Archive

Re: Adding computed values to a Contourplot function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg118592] Re: Adding computed values to a Contourplot function
  • From: Helen Read <readhpr at gmail.com>
  • Date: Wed, 4 May 2011 06:31:51 -0400 (EDT)
  • References: <ipoioe$g1h$1@smc.vnet.net>

On 5/3/2011 5:43 AM, sigismond kmiecik wrote:
> Hello to everybody
>
> How can I modify the code below (after Epilog) in order to add after
> "b^2-4ac=" its computed value and have everyhing framed?
>
>
> a=0.5;b=1;c=6;d=2;e=3;f=-30;
> ContourPlot[{a x^2  +b x*y + c  y^2  + d x  + e y - 30 == 0 }, {x, -12,
> 10}, {y, -8, 8
> }, ContourStyle->  {Red, Thick}, Axes ->  True, AxesLabel->  {x,y} ,
> Frame->  False,ImageSize->  {550,400}, Epilog->{Text[Style["b^2 -
> 4ac=",FontSize->  20],{5,5}]}]

Row is useful for mixing strings and expressions.


a = 0.5; b = 1; c = 6; d = 2; e = 3; f = -30;
ContourPlot[{a x^2 + b x*y + c y^2 + d x + e y - 30 == 0}, {x, -12,
   10}, {y, -8, 8}, ContourStyle -> {Red, Thick}, Axes -> True,
  AxesLabel -> {x, y}, Frame -> False, ImageSize -> {550, 400},
  Epilog -> {Text[
     Style[Framed[Row[{"b^2 - 4ac=", b^2 - 4 a c}]],
      FontSize -> 20], {5, 5}]}]


-- 
Helen Read
University of Vermont



  • Prev by Date: Re: Undo/Redo
  • Next by Date: Re: and color via PlotStyle
  • Previous by thread: Re: Adding computed values to a Contourplot function
  • Next by thread: Re: Adding computed values to a Contourplot function