Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy