Python Seaborn曲线图误差

Python Seaborn曲线图误差,python,seaborn,Python,Seaborn,我正在运行下面的代码并得到这个问题- “/usr/local/lib/python2.7/dist packages/seaborn/timeseries.py:183:UserWarning:tsplot函数已被弃用,并将在将来的版本中删除或替换(在经过大幅修改的版本中)。 警告。警告(消息,用户警告) “ 有人知道如何解决这个问题吗 代码- import numpy as np import tensorflow as tf import seaborn as sns import pand

我正在运行下面的代码并得到这个问题-

“/usr/local/lib/python2.7/dist packages/seaborn/timeseries.py:183:UserWarning:tsplot函数已被弃用,并将在将来的版本中删除或替换(在经过大幅修改的版本中)。 警告。警告(消息,用户警告) “

有人知道如何解决这个问题吗

代码-

import numpy as np
import tensorflow as tf
import seaborn as sns
import pandas as pd

SEQ_LEN = 10
def create_time_series():
  freq = (np.random.random()*0.5) + 0.1  # 0.1 to 0.6
  ampl = np.random.random() + 0.5  # 0.5 to 1.5
  x = np.sin(np.arange(0,SEQ_LEN) * freq) * ampl
  return x

for i in xrange(0, 5):
  sns.tsplot( create_time_series() );  # 5 series

根据评论:这是一个警告,不是错误。您被警告,您使用的功能将在将来从Seaborn中删除。忽略该警告或使用其他函数,例如
matplotlib.pyplot
中的
plt.plot()
,这是一个警告,而不是错误。您被警告,您使用的功能将在将来从Seaborn中删除。忽略警告或改用其他功能。查看此问题的一些答案:seaborn文档说明了关于
tsplot
:“此功能用于在多个时间点测量的采样单位内嵌套观测值的数据。”所以我想不管怎么说,这都太过分了。为什么不使用普通线图,即
plt.plot()
(其中
plt
matplotlib.pyplot
)?