In [2]:
import plotly.plotly as py
import plotly.tools as tls
from plotly.graph_objs import *
py.sign_in(open(r'Z:\DT\plotly_emanresu.txt', 'r').read(),
open(r'Z:\DT\plotly_yekipa.txt', 'r').read())
In [ ]:
fig = Figure(data=data, layout=layout)
# py.iplot(fig, filename='stacked-bar') # interactive
py.image.ishow({'data': data}) # image only
In [3]:
# ____ ____ _ _ _ _ ____ ____ ___ _ _ ____ ___ ___ _ ____ ___ _ _ ___
# | | | |\ | | | |___ |__/ | |\/| |__| | |__] | | | | | | |__]
# |___ |__| | \| \/ |___ | \ | | | | | | | |___ |__| | |___ | |__]
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
fig1 = plt.figure()
T = np.array([6, 7, 8, 9, 10, 11, 12])
power = np.array([1.53E+03, 5.92E+02, 2.04E+02, 7.24E+01, 2.72E+01, 1.10E+01, 4.70E+00])
plt.plot(T,power)
plt.show()
py.iplot_mpl(fig1)
Out[3]:
In [ ]: