Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile: allow changing scales from application code #579

Merged
merged 1 commit into from
Feb 2, 2016

Conversation

gberaudo
Copy link
Member

@gberaudo gberaudo commented Feb 2, 2016

We used to provide two options: yLowerBound and ratioXYRule to allow
applications to change the Y domain of the profile. This allowed enforcing
rules like: min y value > 0 or a specific aspect ratio.

It was not working so well though since the ratioXYRule signature was too
restricted (only taking a xDomainMax) which could lead to ugly results.

In this commit, these options are replaced by a more powerful option.

We used to provide two options: yLowerBound and ratioXYRule to allow
applications to change the Y domain of the profile. This allowed enforcing
rules like: min y value > 0 or a specific aspect ratio.

It was not working so well though since the ratioXYRule signature was too
restricted (only taking a xDomainMax) which could lead to ugly results.

In this commit, these options are replaced by a more powerful option.
@fredj
Copy link
Member

fredj commented Feb 2, 2016

LGTM

@gberaudo
Copy link
Member Author

gberaudo commented Feb 2, 2016

Thanks for the review @fredj.

gberaudo added a commit that referenced this pull request Feb 2, 2016
Profile: allow changing scales from application code
@gberaudo gberaudo merged commit c748953 into camptocamp:master Feb 2, 2016
@gberaudo gberaudo deleted the more_flexible_profile branch February 2, 2016 14:58
@sbrunner sbrunner added this to the Older milestone Aug 23, 2019
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.

None yet

3 participants