MathGroup Archive 2003

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

Search the Archive

Re: format Text in graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42267] Re: format Text in graphics
  • From: Murray Eisenberg <murraye at attbi.com>
  • Date: Thu, 26 Jun 2003 05:36:23 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <bdbek7$2c9$1@smc.vnet.net> <bdbra1$3v0$1@smc.vnet.net>
  • Reply-to: murray at math.umass.edu
  • Sender: owner-wri-mathgroup at wolfram.com

Thanks -- but NO!  Your suggestion does NOT accomplish what I asked.  I 
already tried it.  Here's what's wrong with that approach:

(1) It prints a doubled equal sign, not a single equal sign.  As I said, 
I truly want a conventional mathematical formula, y = f(x), with the y 
and the x italicized (and nothing else italicized).

(2) If one tries to replace the == with a single =, then of course one 
winds up with precisely the original difficulty I mentioned:  it assigns 
the expression f[x] to y and prints only the f(x), albeit the latter in 
correct conventional mathematical form with f and x italicized but the 
parenthses not italicized.

Further, using a single = has the undesirable side efffect of assigning 
a value to y.  (That one could work around by using a Block, etc.  But 
still the real difficulty is that the "y = " doesn't appear in the 
printed text.)



Jens-Peer Kuska wrote:
> Hi,
> 
> Plot[Sin[x], {x, 0, Pi}, 
>   Epilog -> 
>     Text[y == f[x], {0.5, 0.5}, TextStyle -> {FontFamily -> "Times"}, 
>       FormatType -> TraditionalForm]]
> 
> Regards
>   Jens
> 
> Murray Eisenberg wrote:
> 
>>What value of Epilog in a Plot expression will properly format
>>
>>y = f(x)
>>
>>in conventional mathematical style?  That is, the y, f, and x should be
>>italicized but the = and parentheses should not.
>>
>>Some things that do NOT work:
>>
>>Epilog -> Text[TraditionalForm[y = f(x)], {0.5, 0.5}]
>>
>>(* that just sets y to be f(x) and then displays f(x) *)
>>
>>textForm[txt_] := StyleForm[txt, FontFamily -> Times]
>>mathForm[txt_] := StyleForm[txt, FontFamily -> Times, FontSlant -> Italic]
>>
>>Epilog -> Text[mathForm["y "], textForm["="], mathForm[" f(x)"], {0.5 0.5}]
>>
>>(* SOMETHING like the preceding should work, but I don't see how to
>>    combine the three StyleForm results *)
>>
>>--
>>Reply to "REPLY TO" address and NOT to the "FROM" address!!
>>Otherwise I will never see your reply!!!!!!!!!!!!!!!!!!!!!!
>>
>>Murray Eisenberg                     murray at math.umass.edu
>>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
> 
> 

-- 
Reply to "REPLY TO" address and NOT to the "FROM" address!!
Otherwise I will never see your reply!!!!!!!!!!!!!!!!!!!!!!

Murray Eisenberg                     murray at math.umass.edu
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: Transfering Packages Between Platforms and InputForm Conversions
  • Next by Date: Re: Re: format Text in graphics
  • Previous by thread: Re: format Text in graphics
  • Next by thread: Re: format Text in graphics