Message Boards Message Boards

0
|
11039 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to output a graphic or plot to a second notebook

Here I have a scenario where in need of help.

I have a computer system with two monitors configuration. I will like to have the output from an input plot of the graphic function send to another notebook (windows).  The reason is that I want to display  the main notebook (with the input code) showing in one screen and all the output to a second notebook positioned in a second screen. 

Not sure how to code the input command.
POSTED BY: Jose Calderon
2 Replies
outputnb=NotebookCreate[];
$DisplayFunction=(NotebookWrite[outputnb,{Cell[BoxData@ToBoxes@#,"Output"]},After]
)&;
Plot[Sin[x], {x, 0, 122}]
POSTED BY: Rolf Mertig
Posted 11 years ago
Hi Jose,

since expressions are global you can change a value in one notebook and it will be updated in the other notebook automatically.

Setting x = 4 in another notebook yields:



Setting x = 2 yields:

POSTED BY: Stefan Schwarz
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract