我需要在直方图上绘制 Dataframe 的一行,以便x轴具有x轴中的列数,纵坐标具有它们的值。
我的数据示例
data = [1.7,1.8,2.0,3.2]
在x轴上,我想从1到4的数字,在纵坐标上是相应的值。
像这样:
enter image description here,但是在从1到4的轴上。
先谢了
我需要在直方图上绘制 Dataframe 的一行,以便x轴具有x轴中的列数,纵坐标具有它们的值。
我的数据示例
data = [1.7,1.8,2.0,3.2]
在x轴上,我想从1到4的数字,在纵坐标上是相应的值。
像这样:
enter image description here,但是在从1到4的轴上。
先谢了
1条答案
按热度按时间jgovgodb1#
您可以执行以下操作: