# Specify the range of color range of marker\_z

**URL:** <https://discourse.julialang.org/t/specify-the-range-of-color-range-of-marker-z/113977>\
**Category:** General Usage\
**Created:** [May 8, 2024, 2:13am UTC](https://discourse.julialang.org/t/specify-the-range-of-color-range-of-marker-z/113977 "2024-05-08T02:13:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuehao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuehao/32/208109_2.png) [@yuehao](https://discourse.julialang.org/u/yuehao)\
**Post date:** [May 8, 2024, 2:13am UTC](https://discourse.julialang.org/t/specify-the-range-of-color-range-of-marker-z/113977/1 "2024-05-08T02:13:32Z")

</div>

I am using Plots.jl to plot 3-D in 2-D colormap using:

scatter(x, y, marker\_z=z, color=:jet)

The color is automatically map to range [zmin, zmax] of the vector z. However, to compare several cases (of z), I hope to fix the colorbar to represent the range of [z1, z2] and independent of the z vector.

Thank you.
