-
Notifications
You must be signed in to change notification settings - Fork 96
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
Norm keywords aren't passing properly to colormap #29
Comments
If you pass ax.contourf(chl.lon, chl.lat, chl.values, norm='log', vmin=0.01, vmax=10, levels=30, cmap='Fire', ) But it's definitely not right to just ignore |
@lukelbd, FYI, this solution doesn't work. I forgot I tried that before. plot.rc['geogrid.alpha'] = 0
plot.rc.fontname = 'Helvetica Light'
f, ax = plot.subplots(proj='cyl', axwidth='8cm',)
p = ax.contourf(chl.lon, chl.lat, chl, norm='log', vmin=0.01, vmax=10, levels=30)
ax.colorbar(p, loc='r')
ax.format(land=True, latlim=(20, 50), lonlim=((-140, -105))) I think you might get this behavior if you use the LogLocator directly. (https://matplotlib.org/3.1.1/gallery/images_contours_and_fields/contourf_log.html) |
Okay this patch seems to do the trick: a3ebbb1. Try: f, ax = plot.subplots()
ax.pcolormesh(10**(np.random.rand(10,10)*5), vmin=0.1, vmax=10, norm='log', colorbar='r') Previously if you specified both |
I'm finding that the keywords for e.g. LogNorm are not passing through the wrapper to
matplotlib
appropriately. Using the same data as when we discussed the LogNorm colorbar in #25: http://s000.tinyupload.com/index.php?file_id=02946064711977690771.Below, see that
proplot
can't modify theLogNorm
boundaries.With proplot:
With matplotlib:
The text was updated successfully, but these errors were encountered: