[yt-svn] commit/yt: astrofrog: Added cmin/cmax options for plot_allsky_healpix
Bitbucket
commits-noreply at bitbucket.org
Mon Aug 13 03:31:41 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/16f5ecd96fab/
changeset: 16f5ecd96fab
branch: yt
user: astrofrog
date: 2012-08-13 12:25:08
summary: Added cmin/cmax options for plot_allsky_healpix
affected #: 1 file
diff -r 76eb9d59b2ececb409cea5775ae7df29522c336a -r 16f5ecd96fabc021697b84c566a77ec729348418 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -1495,7 +1495,7 @@
return image[:,0,0]
def plot_allsky_healpix(image, nside, fn, label = "", rotation = None,
- take_log = True, resolution=512):
+ take_log = True, resolution=512, cmin=None, cmax=None):
import matplotlib.figure
import matplotlib.backends.backend_agg
if rotation is None: rotation = na.eye(3).astype("float64")
@@ -1507,7 +1507,7 @@
if take_log: func = na.log10
else: func = lambda a: a
implot = ax.imshow(func(img), extent=(-na.pi,na.pi,-na.pi/2,na.pi/2),
- clip_on=False, aspect=0.5)
+ clip_on=False, aspect=0.5, vmin=cmin, vmax=cmax)
cb = fig.colorbar(implot, orientation='horizontal')
cb.set_label(label)
ax.xaxis.set_ticks(())
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list