Revision b7af492f7c07f38e24ad5476eb3fe094b2f474c4

TrainingCourses/FTTF/2015-2016/BorLeitl/parametry_plazmatu/parametry_plazmatu.py

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import matplotlib.pyplot as plt
import re
import numpy as np
import os

data = np.loadtxt("parametry_GD_He.txt")
fig, ax = plt.subplots()
x = np.arange(len(data[:,0]))
ax.plot(x, data[:,1],"ro", label = "plasma length")
ax.set_ylim(9,19)
plt.ylabel("t [ms]")
plt.xlabel("shot")
# plt.ylim(0,5000)
# plt.ylim(0,5)
# plt.savefig("plot_5" + data_file)
ax.legend(loc = 1)
ax2 = ax.twinx()
ax2.set_ylim(20,60)
ax2.set_ylabel(r"T$_e$ [eV]")
ax2.plot_date(x, data[:,2],"bo", label = r"T$_e$")
# plt.title("chamber pressure and temperature")
ax2.legend(loc=2)
# plt.ylabel(r"T [°C]")
# plt.xlabel("t")
# plt.savefig("plot_temperature" + data_file)
plt.savefig("He_campan.png")
# plt.close()