# How do I make the plot take up the full browser window?

**URL:** <https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670>\
**Category:** 📊 Plotly Python\
**Created:** [October 17, 2018, 8:35pm UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670 "2018-10-17T20:35:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![w1res](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@w1res](https://community.plotly.com/u/w1res)\
**Post date:** [October 17, 2018, 8:35pm UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670/1 "2018-10-17T20:35:50Z")

</div>

I’m using plotly for scientific computing. Typically I would run some analysis and plot the results for investigation. Right now when I create plots that open up in the web browser, they are pretty small. Typically they take up less than 1/4 of the screen space.

Is there any way I can make it so that when the plot opens up in the web browser, that it takes up the full space so that it is as large as possible? This makes it easier to interact with and view the results.

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [October 18, 2018, 9:36am UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670/2 "2018-10-18T09:36:19Z")

</div>

Hi @w1res,

What plotting method are you using? In any case, the plot _should_ expand to fill the window as long as no explicit width/height have been set on the figure.

The explicit width/height are set in the `fig.layout.width` and `fig.layout.height` properties. You can assing `None` to these properties to remove them, I’d recommend trying that right before you call `plot`.

If that doesn’t help, could you add a minimal code example (in a fenced code block [https://help.github.com/articles/creating-and-highlighting-code-blocks/](https://help.github.com/articles/creating-and-highlighting-code-blocks/)) that reproduces what you’re seeing?

Hope that helps!  
-Jon

---

<div class="post-metadata">

**Author:** ![w1res](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@w1res](https://community.plotly.com/u/w1res)\
**Post date:** [October 18, 2018, 2:52pm UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670/3 "2018-10-18T14:52:20Z")

</div>

Thanks for the reply. I’m actually using a programming language called Julia (used for scientific computing similar to MATLAB). I didn’t mention it because I thought most people probably don’t know it. It uses a library called Plots that provides a common interface to a variety of plotting backends, and plotly is one of the choices.

I’m still getting started with Julia and Plots, so I will have to figure out if it is possible to change those settings through the interface, or if I will have to use a lower level library to do that.

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [October 19, 2018, 10:08am UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670/4 "2018-10-19T10:08:31Z")

</div>

Hi @w1res,

Thanks for the extra info. The dynamic resizing logic is something that the Plots library would need to include when it outputs the HTML representation. Here’s the logic that plotly.py outputs to make this happen.

> <https://github.com/plotly/plotly.py/blob/f69d9cad88e19e09f3c506108f2a4dd98796e832/plotly/offline/offline.py#L478-L486>

I’d recommend checking the issue tracker for the Plots package, and if this hasn’t bee brought up before, open a new feature request issue with a reference to this section of plotly.py’s logic.

Good luck!  
-Jon

---

<div class="post-metadata">

**Author:** ![w1res](https://avatars.discourse-cdn.com/v4/letter/w/958977/32.png) [@w1res](https://community.plotly.com/u/w1res)\
**Post date:** [October 19, 2018, 2:57pm UTC](https://community.plotly.com/t/how-do-i-make-the-plot-take-up-the-full-browser-window/14670/5 "2018-10-19T14:57:43Z")

</div>

@jmmease Thanks for that info! I will see about getting something like that implemented. In the meantime, I found that if I use the PlotlyJS.jl julia library directly, that one will output full sized plots inside the Electron window it opens up for plots, so that might give me some insight as well.
