what is “plot.ly”?

“plot.ly” is  a online graph sharing web  what develop for python, matlab, java, etc. Well, how can we  use it? it’s so easy. for instance, we should check bellow code;

import plotly.plotly as py
from plotly.graph_objs import *
trace1 = Scatter(
     x=df[‘LifeExpectancy’],
     y=df[‘GNP’],
     text=country_names,
     mode=‘markers’
)
layout = Layout(
     xaxis=XAxis( title=‘Life Expectancy’ ),
     yaxis=YAxis( type=‘log’, title=‘GNP’ )
)
data = Data([trace1])
py.sign_in(‘username’, ‘api_key’)
fig = Figure(data=data, layout=layout)
py.iplot(fig, filename=‘world GNP vs life expectancy’)

you can check more information than here or SCATTER PLOTS.

But
When I develop code  for culasteron python, I used it, I think so, it’s very useful.

have a nice day. :)

Yorum Ekle
  • 1 Yanıt(lar)

    Thank you so much for this tutorial .

    Figen Önün Kâşif on 6 Ocak 2016 yanıtladı
    Yorum Ekle
  • Yanıtınız

    Cevabınızı göndererek Gizlilik Politikası ve Hizmet Şartlarını kabul ediyorsunuz.