Commit d6f6ec21900f22d6207678f5fbb08e9c5258f3ea
1 parent
c01169b7
Adapt code
Showing
1 changed file
with
11 additions
and
9 deletions
pyext/ctools/plotutils.py
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | # This script provides a number of functions that are useful for handling | 2 | # This script provides a number of functions that are useful for handling |
| 3 | # CTA observations. | 3 | # CTA observations. |
| 4 | # | 4 | # |
| 5 | -# Copyright (C) 2011-2014 Juergen Knoedlseder | 5 | +# Copyright (C) 2014 Rolf Buehler |
| 6 | # | 6 | # |
| 7 | # This program is free software: you can redistribute it and/or modify | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
| @@ -31,19 +31,21 @@ try: | @@ -31,19 +31,21 @@ try: | ||
| 31 | except: | 31 | except: |
| 32 | has_aplpy = False | 32 | has_aplpy = False |
| 33 | 33 | ||
| 34 | -# ===================== # | ||
| 35 | -# Plot skymaps # | ||
| 36 | -# ===================== # | 34 | + |
| 35 | +# ============= # | ||
| 36 | +# Plot skymaps # | ||
| 37 | +# ============= # | ||
| 37 | def plotskymaps(modelmap, countmap): | 38 | def plotskymaps(modelmap, countmap): |
| 38 | """ | 39 | """ |
| 39 | - Plot the model map | ||
| 40 | - | ||
| 41 | - Keywords: | 40 | + Plot the model map. |
| 41 | + | ||
| 42 | + Parameters: | ||
| 42 | modname - model input name | 43 | modname - model input name |
| 43 | evtname - events input name | 44 | evtname - events input name |
| 45 | + Keywords: | ||
| 46 | + None | ||
| 44 | """ | 47 | """ |
| 45 | - | ||
| 46 | - # load model map | 48 | + # Load model map |
| 47 | fig = plt.figure() | 49 | fig = plt.figure() |
| 48 | f1 = aplpy.FITSFigure(countmap, figure=fig, subplot=[0.1,0.1,0.35,0.8]) | 50 | f1 = aplpy.FITSFigure(countmap, figure=fig, subplot=[0.1,0.1,0.35,0.8]) |
| 49 | f1.set_tick_labels_font(size='small') | 51 | f1.set_tick_labels_font(size='small') |