mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
mpl adjusts subplot positions to force no margins
- does not use tight layout anymore
This commit is contained in:
parent
f3ea7c273d
commit
57d1b3b38e
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@ def figure_to_rgb_array(fig, width, height):
|
|||
ax.set_xlabel('')
|
||||
ax.set_ylabel('')
|
||||
ax.set_title('')
|
||||
fig_copy.set_tight_layout(True)
|
||||
# remove all space between subplots
|
||||
fig_copy.subplots_adjust(wspace=0, hspace=0)
|
||||
# move all subplots to take the entirety of space in the figure
|
||||
# leave only one line for top and bottom
|
||||
fig_copy.subplots_adjust(bottom=1/height, top=1-1/height, left=0, right=1)
|
||||
fig_copy.set_frameon(False)
|
||||
fig_copy.set_facecolor('w')
|
||||
font_size = matplotlib.rcParams['font.size']
|
||||
|
|
Loading…
Add table
Reference in a new issue