un hardcoded dpi
This commit is contained in:
parent
35fc806327
commit
b30f90a002
1 changed files with 5 additions and 4 deletions
|
@ -32,15 +32,16 @@ def generate_table(headers, data, title="", bg='skyblue', border='steelblue'):
|
|||
# seems to better regulate white space. Sometimes experimenting
|
||||
# with an explicit figsize here can produce better outcome.
|
||||
|
||||
image_height = (( 0.9375 + ( 0.40625 * ( len(data) + 1) ) ) * 160)
|
||||
image_width = 6 * 160
|
||||
dpi = 160
|
||||
image_height = (( 0.9375 + ( 0.40625 * ( len(data) + 1) ) ) * dpi)
|
||||
image_width = 6 * dpi
|
||||
|
||||
plt.figure(linewidth=2,
|
||||
edgecolor=fig_border,
|
||||
facecolor=fig_background_color,
|
||||
tight_layout={'pad':1},
|
||||
dpi=160,
|
||||
figsize=(image_width/160, image_height/160)
|
||||
dpi=dpi,
|
||||
figsize=(image_width/dpi, image_height/dpi)
|
||||
)
|
||||
|
||||
# Add a table at the bottom of the axes
|
||||
|
|
Loading…
Add table
Reference in a new issue