zcs[i],
                  label="L-Architect PAD",
                  linewidth=0.8,
                  color=palettes["L-Architect"])

#par1.set_ylim(0, 16)
#par2.set_ylim(1, 65)

host.set_ylim(0, 16)
host.set_xlim(0, MAX_X)
host.legend()

#p1
#maxPoints =
if max(values[2]) < 3:
    par1.set_xlim(0, 8)

#remove decima if it is integer
#pointsXlabels = par1.get_xticks().tolist()
#pointsTicklabels = []
#for lab in pointsXlabels:
#    newtick = float(lab)
#    newtickstring = str(float(newtick))
#    if newtick.is_integer() :
#        newtickstring = str(int(newtick))
#
#    pointsTicklabels.append(newtickstring)
#par1.set_xlabel(newtickstring)

par1.axis["top"].label.set_color(p1.get_color())
#par2.axis["top2"].label.set_color(p2.get_color())
Esempio n. 2
0
host.parasites.append(par2)

host.set_xlabel("PAD ($m^2.m^{-3}$)")
host.set_ylabel("Height (m)")
host.set_xlim(0, MAX_PAD)

par1.set_xlabel("Average number of returns per 10cm cube voxel")
#par1.set_xlabel("RDI")
par2.set_xlabel("Occusion (%)")

host.axis["top"].set_visible(False)
par1.axis["top"].set_visible(True)
par1.axis["top"].major_ticklabels.set_visible(True)
par1.axis["top"].label.set_visible(True)
#par2.axis["top"].label.set_visible(True)
par1.set_xlim(0,maxVal[2]/maxVal[1]*MAX_PAD)

offset = (0, 40)
new_axisline = par2._grid_helper.new_fixed_axis
par2.axis["top2"] = new_axisline(loc="top", axes=par2, offset=offset)
par2.axis["top2"].set_visible(True)
par2.axis["top2"].major_ticklabels.set_visible(True)

par2.set_xlim(0,100)

fig.add_axes(host)

for i in range(0, len(values)) :
    #for j in range(0, len(values[i])) :
    #    values[i][j] = values[i][j] * ratio
    if i < len(values) - 2 :