Commit 61ddd719 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

croposp [WP]: support controlled color cycling in croposplot

parent 9aebaf9d
......@@ -240,7 +240,19 @@ def main(argv=None):
if opt_ylim is not None:
plt.ylim(opt_ylim[0], opt_ylim[1])
# support curve style cycling
mymarkers=['o','*','p','v','<','>','d','D','.']
mycolors=['#000000',
'#0000ff',
'#ff0000',
'#ff00ff',
'#555555',
'#880000',
'#999999',
'#22ffff',
'#007777',
'#ffff22',
'#997700']
icurve=0
for specfile in args:
......@@ -262,7 +274,9 @@ def main(argv=None):
themarker=None
if opt_usemarkers:
themarker=mymarkers[icurve % len(mymarkers)]
plt.plot(data[:,0], data[:,i], label=label, marker=themarker)
thecolor=mycolors[icurve % len(mycolors)]
plt.plot(data[:,0], data[:,i], label=label,
color=thecolor, marker=themarker)
plt.legend(fontsize=opt_legendfontsize, loc=opt_legposition)
icurve=1+icurve
......
......@@ -110,27 +110,22 @@ cpsd3mod.bin: cpsd3raw.bin
cpsd4mod.bin: cpsd4raw.bin
printf "fac $(CPSD_AMP4)\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
cpsdbgmod.bin: cpsdbgraw.bin
cpsdbgmod1.bin: cpsdbgraw.bin
printf "fac $(CPSD_AMPBG)\nlp1 2.\navg 0\nhpb 100.,4\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
cpsdbgmod2.bin: cpsdbgmod1.bin
printf "dif 0.\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
# add common noise signal to channel specific noise floor
cpsd%addraw.bin: cpsd%mod.bin cpsdbgmod.bin
cpsd1add.bin: cpsd1mod.bin cpsdbgmod1.bin
teseco -v -o -a -type bin -Type bin $@ $^
cpsd2add.bin: cpsd2mod.bin cpsdbgmod1.bin
teseco -v -o -a -type bin -Type bin $@ $^
cpsd3add.bin: cpsd3mod.bin cpsdbgmod1.bin
teseco -v -o -a -type bin -Type bin $@ $^
cpsd4add.bin: cpsd4mod.bin cpsdbgmod2.bin
teseco -v -o -a -type bin -Type bin $@ $^
# modify sensor response
cpsd1add.bin: cpsd1addraw.bin
printf "fac 1.\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
cpsd2add.bin: cpsd2addraw.bin
printf "fac 1.\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
cpsd3add.bin: cpsd3addraw.bin
printf "fac 1.\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
cpsd4add.bin: cpsd4addraw.bin
printf "fac 1.e-1\ndif 0.\nend\n" \
| tidofi -type bin -Type bin -v -o -cs $@ $<
# ----------------------------------------------------------------------
# adjust time series headers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment