I've in seaborn
the following float results:
[7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.3e-05, 7.4e-05, 7.3e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.3e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.3e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05, 7.4e-05]
Plotting me a graph with the scientific notation disabled as you can see:
The result function:
def result(values, time):
x = 0.000000000001
max = 0.000000001
min = 0.001
y = [(1.0*i*(max/min) for i in values]
return generate((y, time))
And the function who generate the graph:
def generate(data_):
data, time = data_
img = StringIO.StringIO()
sns.set_style("darkgrid")
plt.plot(time, data)
plt.savefig(img, format=format_)
img.seek(0)
x = base64.b64encode(img.getvalue())
return x
The following sources tell me that seaborn
by default set the values in scientific notation. But in this case I'm having float results.
Seaborn showing scientific notation in heatmap for 3-digit numbers
Prevent scientific notation in seaborn boxplot
How to prevent numbers being changed to exponential form in Python matplotlib figure
How to avoid scientific notation when annotating a seaborn clustermap?
Do float results matters?