Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
BAORadio
AnaPAON4
Commits
96da9418
Commit
96da9418
authored
Jul 05, 2018
by
OP
Browse files
cosmetic, compliant (?) with cc backend
parent
84320006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Python/viewtfmap.py
Python/viewtfmap.py
+6
-6
No files found.
Python/viewtfmap.py
View file @
96da9418
...
...
@@ -88,7 +88,7 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
if
(
not
noplo
)
:
im
=
ax1
.
imshow
(
img
,
aspect
=
'auto'
,
extent
=
(
timin
,
timax
,
frmax
,
frmin
),
interpolation
=
'none'
,
vmin
=
vmin
,
vmax
=
vmax
)
if
(
yrcm
)
:
im
.
set_cmap
(
'YlOrBr'
)
im
.
set_cmap
(
'YlOrBr
_r
'
)
cbar
=
plt
.
colorbar
(
im
)
#,fraction=0.021,pad=.05)
cbar
.
set_norm
(
mynorm
.
MyNormalize
(
vmin
=
vmin
,
vmax
=
vmax
,
stretch
=
'linear'
))
cm_cycle
=
sorted
([
i
for
i
in
dir
(
plt
.
cm
)
if
hasattr
(
getattr
(
plt
.
cm
,
i
),
'N'
)])
...
...
@@ -121,10 +121,10 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
plt
.
savefig
(
filename
+
"_"
+
names
[
num
]
+
"_rawTFM.png"
)
axcolor
=
'lightgoldenrodyellow'
axmin
=
fig
.
add_axes
([
0.075
,
0.05
,
0.35
,
0.03
],
axisbg
=
axcolor
)
axmax
=
fig
.
add_axes
([
0.075
,
0.02
,
0.35
,
0.03
],
axisbg
=
axcolor
)
# axrange = fig.add_axes([0.6, 0.05, 0.35, 0.03],
axisbg
= axcolor)
# axcent = fig.add_axes([0.6, 0.02, 0.35, 0.03],
axisbg
= axcolor)
axmin
=
fig
.
add_axes
([
0.075
,
0.05
,
0.35
,
0.03
],
facecolor
=
axcolor
)
axmax
=
fig
.
add_axes
([
0.075
,
0.02
,
0.35
,
0.03
],
facecolor
=
axcolor
)
# axrange = fig.add_axes([0.6, 0.05, 0.35, 0.03],
facecolor
= axcolor)
# axcent = fig.add_axes([0.6, 0.02, 0.35, 0.03],
facecolor
= axcolor)
smin
=
Slider
(
axmin
,
'Min'
,
vmin
,
vmax
,
valinit
=
vmin
)
smax
=
Slider
(
axmax
,
'Max'
,
vmin
,
vmax
,
valinit
=
vmax
)
...
...
@@ -181,7 +181,7 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
cm_index
=
cm_index
-
1
if
cm_index
<
0
:
cm_index
=
len
(
cm_cycle
)
cm_index
=
len
(
cm_cycle
)
-
1
change_cm
(
cm_index
)
#print cm_index
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment