This commit is contained in:
gobbo_a
2024-05-14 14:52:28 +02:00
commit 89d8f2cb11
21 changed files with 769 additions and 0 deletions

16
script/test/test_plot Normal file
View File

@@ -0,0 +1,16 @@
import org.jfree.chart.axis.DateAxis as DateAxis
def plot_channel(channel, day, title=None):
path=day+"/archiver|/" + channel.replace(":", "_")
print(path)
data =load_data(path)
tm = [i[0]for i in data]
val = [i[1]for i in data]
p=plot(val, name=channel + " [" + day + "]", xdata=tm, title=title)[0]
axis = DateAxis(None)
axis.setTickLabelPaint(p.getAxisTextColor())
p.getChart().getXYPlot().setDomainAxis(axis)
plot_channel("ATSRF-CAVR:Water-Pressure-Inlet","20240514")