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

unexpected minor ticks in colorbar #421

Open
kinyatoride opened this issue Apr 19, 2023 · 0 comments
Open

unexpected minor ticks in colorbar #421

kinyatoride opened this issue Apr 19, 2023 · 0 comments
Labels

Comments

@kinyatoride
Copy link

Description

I found a minor bug that when we plot a colorbar twice, unexpected minor ticks appear in the first colorbar.

Steps to reproduce

import numpy as np
import proplot as pplt

state = np.random.RandomState(51423)
data = 1 + (state.rand(12, 10) - 0.45).cumsum(axis=0)

fig, ax = pplt.subplots()

m = ax.pcolor(data)
ax.colorbar(m)
ax.colorbar(m)

pplt

Equivalent steps in matplotlib

import numpy as np
import matplotlib.pyplot as plt
state = np.random.RandomState(51423)
data = 1 + (state.rand(12, 10) - 0.45).cumsum(axis=0)

fig, ax = plt.subplots()

m = ax.pcolor(data)
plt.colorbar(m)
plt.colorbar(m)

plt

Proplot version

3.4.3
0.9.5

@lukelbd lukelbd added the bug label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants