Commit 79ed5f6005c0f0e7a647c1ba81a1651a7f8fca49
1 parent
94017fc6
Remove unused variables in show_rmf.py
Showing
1 changed file
with
3 additions
and
3 deletions
examples/show_rmf.py
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | # ========================================================================== |
| 3 | 3 | # Display Redistribution Matrix File |
| 4 | 4 | # |
| 5 | -# Copyright (C) 2018 Juergen Knoedlseder | |
| 5 | +# Copyright (C) 2018-2019 Juergen Knoedlseder | |
| 6 | 6 | # |
| 7 | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | 8 | # it under the terms of the GNU General Public License as published by |
| ... | ... | @@ -66,12 +66,12 @@ def plot_rmf(rmf, plotfile): |
| 66 | 66 | image.append(row) |
| 67 | 67 | |
| 68 | 68 | # Create figure |
| 69 | - fig = plt.figure() | |
| 69 | + plt.figure() | |
| 70 | 70 | |
| 71 | 71 | # Plot image |
| 72 | 72 | c = plt.imshow(image, extent=[etrue_min,etrue_max,ereco_min,ereco_max], |
| 73 | 73 | interpolation='nearest', aspect=aspect) |
| 74 | - cbar = plt.colorbar(c, orientation='vertical', shrink=0.8) | |
| 74 | + plt.colorbar(c, orientation='vertical', shrink=0.8) | |
| 75 | 75 | |
| 76 | 76 | # Plot title and axis |
| 77 | 77 | plt.title('Redistribution Matrix File') | ... | ... |