Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Labeled Plot not a Plot?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg90666] Re: [mg90593] Labeled Plot not a Plot?
  • From: Carl Woll <carlw at wolfram.com>
  • Date: Fri, 18 Jul 2008 04:02:50 -0400 (EDT)
  • References: <200807151016.GAA19683@smc.vnet.net>

AES wrote:

>My latest hassle arises, so far as I can tell, from doing the following:
>
>   myPlot = <An ordinary plot>;
>
>   myLabeledPlot = Labeled[myPlot, "\nMy label string\n", {{Top,Left}}];
>
>   Print[myLabeled Plot];
>
>   Export["my_labeled_plot.pdf", myLabeledPlot];
>
>and then importing my_labeled_plot.pdf into a Tex source file using 
>pdftex.
>
>The output of the Print[myLabeledPlot] looks fine: just what I want, and 
>all in one cell.
>
>But when the exported my_labeled_plot.pdf file is either viewed in the 
>TeX'd file or just opened in Acrobat, the label string at top left 
>changes to
>
>   "\nMy label string\n"
>
>*including* the quotes.  (All the text labels and Epilog->Text stuff on 
>the plot itself are just fine.)
>
>What do I need to do?  (I like using Labeled, and would rather not have 
>to give it up.)
>  
>
Here is one possibility:

Export["file.pdf", Labeled[Plot[Sin[x], {x, 0, Pi}], Style["label", 
ShowStringCharacters -> False]]]

Carl Woll
Wolfram Research


  • Prev by Date: Re: Problem NSolve
  • Next by Date: Re: Problem NSolve
  • Previous by thread: Labeled Plot not a Plot?
  • Next by thread: Re: Labeled Plot not a Plot?