In [15]:
import numpy as mp
import pandas as pd
from bokeh.charts import TimeSeries, output_file, show
In [7]:
df = pd.read_csv('result_0_1.txt', header=None, names=['Temperature', 'Cost'])
df.head()
Out[7]:
In [19]:
output_file("report.html")
data = dict(Temp = df['Temperature'], Cost=df['Cost'])
# create a new plot (with a title) using figure
p = figure(plot_width=800, plot_height=400, title="SA Progression")
# add a line renderer
p.line(df['Temperature'][::-1], df['Cost'], line_width=2)
show(p) # show the results
In [ ]: