我想澄清这篇文章中的两个问题。你知道吗
<强>1。绘图问题:。
当我尝试绘制column 0 with column 1
时,值会被排序。你知道吗
示例:在col_0
中,我有从112 till 0
开始的值。
当我使用下面的代码时,这些值按升序排序,图形显示反转的X轴图。你知道吗
plt.plot(df.col_0, df.col_1)
避免对X轴值排序的最佳方法是什么?你知道吗
<强>2。单个图形中的所有参数
我想在一个绘图中绘制所有参数。除X轴外,所有其他参数值都在0 to 1
(相同比例)之间
什么是最好的Python方式。
任何帮助都将不胜感激。你知道吗
我不明白你所说的“排序”是什么意思——它不是绘制112,0.90178并连接到110.89899,0.90779,等等吗?你知道吗
若要共享X轴但有2个Y轴(某些集合在其上绘制),则use twinx
回复:如何按你想要的顺序绘图
我相信你的意图是实际绘制这些值与时间或指数的关系。为此,我建议:
尝试根据索引绘制序列/数据帧:
输出:
相关问题 更多 >
编程相关推荐