Message Boards Message Boards

0
|
3222 Views
|
4 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Plot centering on the screen

Posted 4 years ago

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:
POSTED BY: Victor Chavarria
4 Replies

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

POSTED BY: Victor Chavarria

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

POSTED BY: Gianluca Gorni

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]]
POSTED BY: Gianluca Gorni

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]
POSTED BY: Gustavo Delfino
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