小编Tex*_*lus的帖子

为什么Python线图显示:没有帐户?plot.ly

其实我是python的新手.

当我尝试编译以下代码时:

import matplotlib.pyplot as plt

 import plotly.plotly as py
 # Learn about API authentication here: https://plot.ly/python/getting-started
 # Find your api_key here: https://plot.ly/settings/api

 x = [1,2,3,4]
 y = [3,4,8,6]

  plt.plot(x, 'o')
  plt.plot(y)
  fig = plt.gcf()

    plot_url = py.plot_mpl(fig, filename='mpl-line-scatter')
Run Code Online (Sandbox Code Playgroud)

它显示以下消息,不提供任何输出.:

 mks@mks-H81M-S:~/Desktop/pythonPrograms$ python plot.py 
 Aw, snap! We don't have an account for ''. Want to try again? You can        authenticate with your email address or username. Sign in is not case    sensitive.

 Don't have an account? plot.ly

 Questions? support@plot.ly
 xdg-open - …
Run Code Online (Sandbox Code Playgroud)

plot matplotlib python-2.7

12
推荐指数
1
解决办法
2万
查看次数

标签 统计

matplotlib ×1

plot ×1

python-2.7 ×1