# Tick's value in axis is not exactly what is specified as dvalue

**URL:** <https://community.plotly.com/t/ticks-value-in-axis-is-not-exactly-what-is-specified-as-dvalue/45328>\
**Category:** 📊 Plotly Python\
**Created:** [September 25, 2020, 2:41pm UTC](https://community.plotly.com/t/ticks-value-in-axis-is-not-exactly-what-is-specified-as-dvalue/45328 "2020-09-25T14:41:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xinwei](https://avatars.discourse-cdn.com/v4/letter/x/f08c70/32.png) [@Xinwei](https://community.plotly.com/u/Xinwei)\
**Post date:** [September 25, 2020, 2:41pm UTC](https://community.plotly.com/t/ticks-value-in-axis-is-not-exactly-what-is-specified-as-dvalue/45328/1 "2020-09-25T14:41:55Z")

</div>

Hi, I try to configure the tick value on yaxis to be 0 , 4096, 8192 … by calling

fig.update\_yaxes(dvalue = 4096 … )

But the graph has ticks at 4100 8200 … . Any idea how to change it ?

Thanks and best regards  
XInwei

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [September 27, 2020, 8:43am UTC](https://community.plotly.com/t/ticks-value-in-axis-is-not-exactly-what-is-specified-as-dvalue/45328/2 "2020-09-27T08:43:31Z")

</div>

Hi @Xinwei,

print(help(go.layout.YAXis.dvalue) )

gives:

```auto
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-19-7ff3097698bd> in <module>
      1 import plotly.graph_objects as go
----> 2 help(go.layout.YAxis.dvalue)

AttributeError: type object 'YAxis' has no attribute 'dvalue'

```

To customize yaxis ticks, perform the following `yaxes_update`:

```auto
tickvals = [k*4096 for in range(0, n)] #give an appropriate n

fig.update_yaxes(tickvals=tickvals, ticktext=tickvals)

```
