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

Setting limits for all subplots in MultiPlot does not work for Histogram2d subplots #16

Open
153957 opened this issue Mar 5, 2015 · 0 comments

Comments

@153957
Copy link
Collaborator

153957 commented Mar 5, 2015

As the titles says, using set_xlimits_for_all (same for y) does not work for multiplot where the subplots contain a histogram2d:

    plot = MultiPlot(4, 4, width=r'.25\linewidth', height=r'.25\linewidth')
    for i in range(4):
        for j in range(4):
            ncounts, x, y = np.histogram2d(data[i], data2[j],
                                           bins=np.linspace(.2, 6, 80))
            subplot = plot.get_subplot_at(i, j)
            subplot.histogram2d(ncounts, x, y, type='reverse_bw', bitmap=True)
    plot.set_xlimits_for_all(min=-20, max=30)
    plot.set_ylimits_for_all(min=0, max=10)

result:
n_501_510

Clearly the limits caused by the histogram are used, not the limits manually set.

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

No branches or pull requests

1 participant