MathGroup Archive 2002

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

Search the Archive

RE: Line and Text in Graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34917] RE: [mg34862] Line and Text in Graphics
  • From: "Annetts, Dave (E&M, North Ryde)" <David.Annetts at csiro.au>
  • Date: Wed, 12 Jun 2002 02:16:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Anthony,

> Confusing inconsistencies in syntax make Mathematica (or any other 
> software program) hard to use.
> 
> For example, I can say
> 
>    Graphics[ { Thickness[--], Dashing[--], Line[--], Line[--] } ]
> 
> So why can't I say
> 
>    Graphics[ { FontWeight[--], FontSize[--], Text[--], Text[--] } ]
> 
> or something akin to this?

I'm not sure it's an inconsistency ...

All text is "styled" using StyleForm[], and all that is needed to use that
"styled" text in a graphics object is to wrap it with Graphics[];

For example,
	tst = StyleForm["My text", FontFamily -> "Times", FontWeight ->
"Bold", 
	    FontSize -> 14]
	tstg = Text[tst, {0, 0}];
	Show[Graphics[tstg], Frame -> True];

Example uses for tst and tstg above are as table headings or as an epilog.

Regards,

Dave.
--------------------------------------------------------
  Dr. David Annetts             EM Modelling Analyst
  Tel: (+612) 9490 5416         CSIRO DEM, North Ryde
  Fax: (+612) 9490 5467         David.Annetts at csiro.au
                 Include "usual_disclaimers"
--------------------------------------------------------


  • Prev by Date: Re: 3d table or list to file
  • Next by Date: RE: "TableLabel"?
  • Previous by thread: Re: Line and Text in Graphics
  • Next by thread: Curl