Message Boards Message Boards

GROUPS:

Plot centering on the screen

Posted 1 year ago
1549 Views
|
4 Replies
|
1 Total Likes
|

Upon evaluating my notebook where I generate a Plot3D, the plot does not appear complete until I scroll down to see it in fulll form.

I have not yet found a way to have my plot appear, in a programmatic fashion, centered in full scale on the screen without looking for it manually. Have looked at Alignment, Center, justfication and margin functions, but these will not do the job. Any suggestions?

Attachments:
4 Replies

This is one way to create new window with a plot centered:

CreateDocument[{ExpressionCell[
   Plot3D[Sin[x y], {x, -1, 1}, {y, -1, 1}, ImageSize -> Full]]}, 
 WindowSize -> Full]

You can give a Scaled value for ImageSize, so that the plot will fill the horizontal width of the screen:

Plot[x^2, {x, -1, 1}, ImageSize -> Scaled[.9]]

Sorry, the width of the window, not of the screen.

Ciao Delfino, Ginaluca The CreateDocument[{ExpressionCell[...]},....] does the magic in a separate window. I had to drop though the Manipulate function and use the frozen/still plot instead; because I could not make it work with the Show[{plot1, plot2}] command. It does work with the Plot3D function. Thank you

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