Skip to content

Commit

Permalink
approximate dimensions for full textwidth figure [#3]
Browse files Browse the repository at this point in the history
  • Loading branch information
felix11h committed Mar 25, 2020
1 parent bc4b73f commit 9b96743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fx_brownian-motion_unstable-weight-distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def pdf_figure(enlist,svfix):
for x,y in itertools.product(range(ax_lines),range(ax_cols)):
axs['%d,%d'%(x+1,y+1)] = pl.subplot2grid((ax_lines, ax_cols), (x, y))

fig.set_size_inches(1920/s*ax_lines/4,1080/s*ax_cols/3)
fig.set_size_inches(1920/s*ax_lines/4*1.85,1080/s*ax_cols/3/1.8)

data_dirs = sorted(['data/brownian-motion/200323_180732_brownian-motion_get-weight-distribution-at-differ-Nstep-vals/data/'+pth for pth in next(os.walk("data/brownian-motion/200323_180732_brownian-motion_get-weight-distribution-at-differ-Nstep-vals/data/"))[1]])

Expand Down Expand Up @@ -104,7 +104,7 @@ def pdf_figure(enlist,svfix):
axs['1,1'].set_position([box.x0, box.y0, box.width * 0.8, box.height])

axs['1,1'].legend(frameon=False, prop={'size': 10}, loc='center left',
labelspacing=1.15, borderpad=1.25, bbox_to_anchor=(1, 0.5))
labelspacing=0.9, borderpad=1.25, bbox_to_anchor=(1, 0.5))

# axs['1,1'].set_xlim(-0.15, 29)
# axs['1,1'].set_ylim(-0.15, 3.1)
Expand Down

0 comments on commit 9b96743

Please sign in to comment.