MathGroup Archive 2009

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

Search the Archive

Re: Writing a graphic to a notebook

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104713] Re: Writing a graphic to a notebook
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Sat, 7 Nov 2009 06:50:59 -0500 (EST)
  • References: <hd0t88$820$1@smc.vnet.net>

Your example seems to work fine.  What error message did you get?

--David


On Nov 6, 5:19 am, Gerry Flanagan <flana... at materials-sciences.com>
wrote:
> How do you send a graphic to a notebook under program control? For
> example, taking the documentation example
> CellPrint[Cell[BoxData[ToBoxes[Plot[Sin[x], {x, -2, 2}]]], "Output"]]
> and changing to
> NotebookWrite[nb, Cell[BoxData[ToBoxes[Plot[Sin[x], {x, -2, 2}]]],
> "Output"]]
> gives an error message (nb is a previously created notebook object).
>
> I think I've seen this somewhere, and remember it was pretty obscure.
> Surprising that anything to works inside CellPrint would not work inside
> NotebookWrite.
> Gerry F.



  • Prev by Date: Strange behavior when using pattern match and HoldAll
  • Next by Date: Re: Wrong limit?
  • Previous by thread: Writing a graphic to a notebook
  • Next by thread: Re: Writing a graphic to a notebook