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

probably a bug in matplotlib 3.5.2 #60

Open
alexlib opened this issue Nov 13, 2022 · 0 comments
Open

probably a bug in matplotlib 3.5.2 #60

alexlib opened this issue Nov 13, 2022 · 0 comments

Comments

@alexlib
Copy link

alexlib commented Nov 13, 2022

Running your example of vect_plot (0.4.2, matplotlib 3.5.2) I get:

"name": "ValueError",
	"message": "Passing parameters norm and vmin/vmax simultaneously is not supported. 
Please pass vmin/vmax directly to the norm when creating it.",

can be solved by replacing:

pargs = {
    'norm' : mpl.colors.LogNorm(),
    'vmax': 1000,
    'vmin': .1,
    'cmap': 'pink',
}

with:

pargs = {
    'norm' : colors.Normalize(vmin = 0, vmax = 1000),
    'cmap': 'bwr',
}
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