Python绘图

Hom*_*mer 2 python matplotlib

我对绘图有疑问.我想在范围之间绘制一些数据:

3825229325678980.07868125697521248069633804173619323825229325678980.078681262584097479512892231994772

但是我收到以下错误:

Attempting to set identical bottom==top results
in singular transformations; automatically expanding.
bottom=3.82522932568e+15, top=3.82522932568e+15
Run Code Online (Sandbox Code Playgroud)

我应该如何在这里增加小数点来解决问题?

use*_*916 5

您的最小值和最大值之间的差异小于双精度eps(~1e-15)的精度.

基本上使用4字节浮点表示法无法区分这两个数字.

我建议从数据中删除所有整数位,并仅表示小数部分.整数部分只是一个很大的常量,您可以随后添加.