Skip to content

Commit

Permalink
Merge pull request #23 from opensafely-actions/fix-plot-bbox
Browse files Browse the repository at this point in the history
set bbox to "tight"
  • Loading branch information
LFISHER7 authored Apr 19, 2022
2 parents baa2dd6 + 17c6fd0 commit db8e384
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ outer percentiles are plotted as dotted lines;
the median is plotted as a solid line.
For example, the following deciles chart was generated from dummy data:

![A deciles chart generated from dummy data](img/deciles_chart_has_sbp_event_by_population.png)
![A deciles chart generated from dummy data](img/deciles_chart_has_sbp_event_by_stp_code.png)

[Using deciles to communicate variation][2] has several advantages when compared to the alternatives.
Consequently, deciles charts are used on [OpenPrescribing.net][]
Expand Down
2 changes: 1 addition & 1 deletion analysis/deciles_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def get_deciles_chart(measure_table):


def write_deciles_chart(deciles_chart, path):
deciles_chart.savefig(path)
deciles_chart.savefig(path, bbox_inches="tight")


def get_path(*args):
Expand Down
Binary file removed img/deciles_chart_has_sbp_event_by_population.png
Binary file not shown.
Binary file added img/deciles_chart_has_sbp_event_by_stp_code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db8e384

Please sign in to comment.