In [1]:
from idv_plot import plot_patches
from bokeh.io import output_notebook

In [5]:
# Directory where the bin map and Xspec log files are located.
root = "./"

# File name of the bin map.
binmap = "contbin_binmap.fits"

# Point source regions included in bin map?
# True if yes, False otherwise.
point_sources = False

# Output html file name and title.
out = "MACSJ1149_Tmap.html"
out_title = "Temperature Map of MACS J1149.6+2223"

# Plot style.
title_font_size = '16pt'
label_font_size = '14pt'
xaxis_label = "RA (J2000)"
yaxis_label = "Dec (J2000)"

# Number of the Xspec parameter being plotted.
xcm_id = 11

# Parameter description.
xcm_param = 'Temperature'

# Units of the parameter.
xcm_units = 'keV'

# Colormap properties.

# Colormap name. Default is 'coolwarm', in which cold regions are blue and hot regions are red.
cmap = 'coolwarm'

# Colormap limits. By default, these are min(parameter) and max(parameter).
vmin = None
vmax = None

In [6]:
output_notebook()


Loading BokehJS ...

In [7]:
plot_patches(root, binmap, xcm_id, point_sources=point_sources,
        out=out, out_title=out_title,
        title_font_size=title_font_size, label_font_size=label_font_size,
        xcm_param=xcm_param, xcm_units=xcm_units,
        xaxis_label=xaxis_label, yaxis_label=yaxis_label, palette=cmap, vmin=vmin, vmax=vmax)


//anaconda/lib/python3.5/site-packages/bokeh/models/plots.py:711: UserWarning: 
    Plot property 'title_text_font_size' was deprecated in 0.12.0 and will be removed. Use 'Plot.title.text_font_size' instead.
    
  warnings.warn(DEP_MSG_0_12_0 % ('title_text_font_size', 'Plot.title.text_font_size'))

In [ ]: