# Plot centering on the screen

**URL:** <https://community.wolfram.com/t/plot-centering-on-the-screen/15935>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [May 5, 2020, 11:13pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935 "2020-05-05T23:13:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorchavarria](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@victorchavarria](https://community.wolfram.com/u/victorchavarria)\
**Post date:** [May 5, 2020, 11:13pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935/1 "2020-05-05T23:13:13Z")

</div>

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?

[Neumann1.nb](https://community.wolfram.com/uploads/short-url/1AiddkUJ98xVh5Jwrs69Gq5Gez5.nb) (706 KB)

---

<div class="post-metadata">

**Author:** ![gdelfino](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gdelfino/32/41294_2.png) [@gdelfino](https://community.wolfram.com/u/gdelfino)\
**Post date:** [May 7, 2020, 12:00pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935/2 "2020-05-07T12:00:20Z")

</div>

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]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 7, 2020, 2:46pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935/3 "2020-05-07T14:46:47Z")

</div>

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]]

```

---

<div class="post-metadata">

**Author:** ![gianlucagorni](https://avatars.discourse-cdn.com/v4/letter/g/ec9cab/32.png) [@gianlucagorni](https://community.wolfram.com/u/gianlucagorni)\
**Post date:** [May 7, 2020, 2:48pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935/4 "2020-05-07T14:48:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![victorchavarria](https://avatars.discourse-cdn.com/v4/letter/v/3bc359/32.png) [@victorchavarria](https://community.wolfram.com/u/victorchavarria)\
**Post date:** [May 7, 2020, 2:54pm UTC](https://community.wolfram.com/t/plot-centering-on-the-screen/15935/5 "2020-05-07T14:54:27Z")

</div>

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
