Skip to content

Fix issue #4414 #6171

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

Closed
wants to merge 5 commits into from
Closed

Fix issue #4414 #6171

wants to merge 5 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 16, 2016

Here is an attempt fix to bug #4414
The bugfix code involves an if statement method that checks the histtype and normed parameters to sets the y limit accordingly. If the histtype property were not given, then the algorithm would simply scale the graph as if it were a bargraph. However, this is not the case with histtype = “stepfilled”. Since histtype = “stepfilled” is given, it will not scale according to the data, which is why it is imperative to determine the method of scaling before any calculations. The best way to do this is by using an if statement when histtype=’stepfilled’ to check the value of the normed property, and scale accordingly(i.e. Manually calculate dimensions if data not normalized normed=False vs. Auto scale if data is normalized normed=True).

@tacaswell tacaswell mentioned this pull request Mar 17, 2016
@tacaswell
Copy link
Member

Can you add a test case as well? I do not think this needs an image test, just check that the limits are not set by the last set of data to be plotted.

I still do not quite understand why this only affects the case of nom==True.

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Mar 21, 2016
@QuLogic
Copy link
Member

QuLogic commented Dec 11, 2016

This was fixed in #7476.

@QuLogic QuLogic closed this Dec 11, 2016
@QuLogic QuLogic modified the milestones: unassigned, 2.0.1 (next bug fix release) Dec 11, 2016
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.

4 participants