Creation
This commit is contained in:
16
script/test/test_plot
Normal file
16
script/test/test_plot
Normal 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")
|
||||
Reference in New Issue
Block a user