# Plots colorbar doesn't scale with pgfplots backend

**URL:** https://discourse.julialang.org/t/plots-colorbar-doesnt-scale-with-pgfplots-backend/45283
**Category:** General Usage
**Tags:** plots, pgfplotsx
**Created:** [August 20, 2020, 7:32pm UTC](https://discourse.julialang.org/t/plots-colorbar-doesnt-scale-with-pgfplots-backend/45283 "2020-08-20T19:32:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![scone](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@scone](https://discourse.julialang.org/u/scone)
#### Post date: [August 20, 2020, 7:32pm UTC](https://discourse.julialang.org/t/plots-colorbar-doesnt-scale-with-pgfplots-backend/45283/1 "2020-08-20T19:32:10Z")

</div>

Hello everyone,

I just developed a new issue I wasn’t having before. I updated my packages a few days ago, and now when I scatterplot, the color bar is locked to the interval [0,1] for some reason. For example:

```julia
using Plots
pgfplots()
scatter(rand(5), rand(5), zcolor=10*rand(5)+10 )

```

Will produce a plot with a colorbar from 0 to 1, and all the points colored at the maximum value of 1. Does anyone know if there were some changes made, or if this is a bug?

Thanks

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [August 21, 2020, 7:19am UTC](https://discourse.julialang.org/t/plots-colorbar-doesnt-scale-with-pgfplots-backend/45283/2 "2020-08-21T07:19:39Z")

</div>

If you don’t get an answer here, consider opening an issue for Plots.jl, preferably with a screenshot.

---

<div class="post-metadata">

### Author: ![scone](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@scone](https://discourse.julialang.org/u/scone)
#### Post date: [August 21, 2020, 6:06pm UTC](https://discourse.julialang.org/t/plots-colorbar-doesnt-scale-with-pgfplots-backend/45283/3 "2020-08-21T18:06:13Z")

</div>

Thanks, I’ll wait a little longer and see if anything materializes. Here is that screenshot in the mean time:

![colorbarexample](https://global.discourse-cdn.com/julialang/original/3X/f/4/f49f224da63fbf4a9b7c9556030bd143f04be944.png)
