Skip to content

Comments

Draft: Autoscaling#66

Open
DBAnthony wants to merge 5 commits intoFAST-HEP:masterfrom
DBAnthony:autoscaling
Open

Draft: Autoscaling#66
DBAnthony wants to merge 5 commits intoFAST-HEP:masterfrom
DBAnthony:autoscaling

Conversation

@DBAnthony
Copy link
Contributor

@DBAnthony DBAnthony commented Jul 7, 2021

First pass at autoscaling x and y axes. Hopefully the function can be cleaned up a lot. Currently doesn't work properly for a negative y-axis. For the y-axis, it adds a variable-sized 'buffer' to account for the legend, so that it doesn't overlap with data. Size of buffer is a function of yscale and ymax. X-scale is scaled to remove whitespace in bin edges, so for example MET starts at 200 rather than 0, removing bins with <0.1 entries to calculate the upper xlimit.

Autoscaling for each axis is turned on in config with:
`autoscale: ['x','y']

Doesn't work quite as wanted yet (need better system for determining size of y-axis buffer) so marked as draft.

With default axis scaling (no limits provided in plotter config):

plot_dataset met--sig_regions_fit--weight_nominal--project_met-yscale_log

With autoscaling:

plot_dataset met--sig_regions_fit--weight_nominal--project_met-yscale_log

@DBAnthony DBAnthony changed the title Autoscaling Draft: Autoscaling Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant