# Can pyplot scatterplots take values smaller than 1e-16?

**URL:** https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438
**Category:** Visualization
**Created:** [August 24, 2020, 12:20am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438 "2020-08-24T00:20:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nicolas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nicolas/32/26439_2.png) [@nicolas](https://discourse.julialang.org/u/nicolas)
#### Post date: [August 24, 2020, 12:20am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/1 "2020-08-24T00:20:35Z")

</div>

When running the following code,

```julia
using Plots
pyplot()
x = exp.(randn(100) .- 36)
y = exp.(randn(100) .- 36)
plot(x,y, xscale = :log10, yscale = :log10, markershape = :square)

```

The lines show perfectly, but funnily enough, the markers are truncated at 1e-16. The same behavior happens for scatter. Fixing this would make me very happy. Using Julia 1.5.0 on Windows 10.

![Truncated_markers](https://global.discourse-cdn.com/julialang/original/3X/c/2/c2f0ecf0432d35439393058466038d99d6ab8d5f.png)

---

<div class="post-metadata">

### Author: ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)
#### Post date: [August 24, 2020, 6:56am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/2 "2020-08-24T06:56:43Z")

</div>

Works fine for me with Plots 1.6.0, Julia 1.5.0 on Windows 10. Perhaps you have an older version?

---

<div class="post-metadata">

### Author: ![nicolas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nicolas/32/26439_2.png) [@nicolas](https://discourse.julialang.org/u/nicolas)
#### Post date: [August 24, 2020, 7:55am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/3 "2020-08-24T07:55:40Z")

</div>

Thanks for the quick reply. I’ve realized that I had Plots 1.5.8 and PyPlot 2.9.0. I upgraded to Plots 1.6.0, but no change occurred, and no amount of extra upgrading seemed to help. However, I just tried on another computer (which still has Plots 1.5.8 and PyPlot 2.9.0) and the bug isn’t there for some reason. So problem solved for me for now, but still mystery as to what causes this on computer no 1.

---

<div class="post-metadata">

### Author: ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)
#### Post date: [August 25, 2020, 8:20am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/4 "2020-08-25T08:20:00Z")

</div>

If the problem is only in the PyPlot backend, maybe it is somehow related to matplotlib version?

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [August 25, 2020, 12:01pm UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/5 "2020-08-25T12:01:19Z")

</div>

You could try `using Conda; Conda.update()` to update Matplotlib (assuming it was installed via Conda).

---

<div class="post-metadata">

### Author: ![nicolas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nicolas/32/26439_2.png) [@nicolas](https://discourse.julialang.org/u/nicolas)
#### Post date: [August 26, 2020, 8:28am UTC](https://discourse.julialang.org/t/can-pyplot-scatterplots-take-values-smaller-than-1e-16/45438/6 "2020-08-26T08:28:52Z")

</div>

I updated Conda this morning and that did the trick. Indeed the problem seemed with matplotlib. Thanks again for the quick help.
