first version of z plot
This commit is contained in:
@@ -134,12 +134,30 @@ def plotUdiagram():
|
||||
|
||||
|
||||
def plotZdiagram():
|
||||
raise NotImplementedError()
|
||||
|
||||
#fig, ax = pp.subplots(1)
|
||||
|
||||
for g in data_udiagram.data.keys():
|
||||
|
||||
fig, ax = pp.subplots(1, num=g)
|
||||
dat = data_udiagram.data[g]
|
||||
|
||||
for i, zone in enumerate(dat['zones']):
|
||||
ax.plot(dat['al4'][i], dat['al6'][i], label=f"{zone}", marker=".")
|
||||
ax.set_xlabel("Al(IV)")
|
||||
ax.set_ylabel("Al(VI)")
|
||||
ax.set_title(g)
|
||||
ax.legend(frameon=False)
|
||||
#ax.xaxis.get_major_locator().set_params(integer=True)
|
||||
|
||||
pp.savefig(f"zplot_{g}.png")
|
||||
|
||||
pp.show()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pass
|
||||
|
||||
#plotTdiagram()
|
||||
plotUdiagram()
|
||||
#plotZdiagram()
|
||||
#plotUdiagram()
|
||||
plotZdiagram()
|
||||
|
||||
Reference in New Issue
Block a user