# Defining figure size independent of legend

**URL:** <https://community.plotly.com/t/defining-figure-size-independent-of-legend/26872>\
**Category:** plotly.js\
**Created:** [August 6, 2019, 9:08am UTC](https://community.plotly.com/t/defining-figure-size-independent-of-legend/26872 "2019-08-06T09:08:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snizl](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Snizl](https://community.plotly.com/u/Snizl)\
**Post date:** [August 6, 2019, 9:08am UTC](https://community.plotly.com/t/defining-figure-size-independent-of-legend/26872/1 "2019-08-06T09:08:10Z")

</div>

Is there a way to define the figure size independent of the legend?  
When I am having a graph of a defined size and I increase the length of the trace names this messes up the aspect ratio of my graph. Can I exclude the legend from the figure size?
