Skip to content

Commit

Permalink
Set default matplotlib to optimize charts (streamlit#1722)
Browse files Browse the repository at this point in the history
* Set default bbox to tight

* Update pyplot snapshot
  • Loading branch information
karriebear authored Jul 16, 2020
1 parent 0487810 commit d7d9c64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/streamlit/elements/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def marshall(coordinates, new_element_proto, fig=None, clear_figure=True, **kwar
# Normally, dpi is set to 'figure', and the figure's dpi is set to 100.
# So here we pick double of that to make things look good in a high
# DPI display.
options = {"dpi": 200, "format": "png"}
options = {"bbox_inches": "tight", "dpi": 200, "format": "png"}

# If some of the options are passed in from kwargs then replace
# the values in options with the ones from kwargs
Expand Down

0 comments on commit d7d9c64

Please sign in to comment.