<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m new to matplotlib, and using it in conjunction with Qt as per <a href="https://matplotlib.org/gallery/user_interfaces/embedding_in_qt_sgskip.html" class="">https://matplotlib.org/gallery/user_interfaces/embedding_in_qt_sgskip.html</a>, which works well. However, I’m struggling with borders, especially as the user resizes the window. <div class=""><br class=""></div><div class="">What it looks like is that the left, right, bottom and top parameters to subplots_adjust are in percents - is that correct? If so, is there a way to change it to pixels? As things stand, when the user adjusts the size of the window, the “gap” between an edge of the graph and the edge of the container changes. More troubling is that as the window gets smaller, the graph labels get cut off.</div><div class=""><br class=""></div><div class="">Ideally I’d like to be able to say “fit the entire graph (including axes labels) inside the parent object with x number of pixels padding on each side”. Of course there would be some minimum size you couldn’t effectively go below. Is that possible?<br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">---</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Israel Brewster<br class="">Software Engineer<br class="">Alaska Volcano Observatory <br class="">Geophysical Institute - UAF <br class="">2156 Koyukuk Drive <br class="">Fairbanks AK 99775-7320</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">Work: 907-474-5172<br class="">cell:  907-328-9145</div></div>
</div>
<br class=""></div></body></html>