# Log Axis Format

**URL:** <https://community.plotly.com/t/log-axis-format/5440>\
**Category:** plotly.js\
**Created:** [August 17, 2017, 2:15pm UTC](https://community.plotly.com/t/log-axis-format/5440 "2017-08-17T14:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidD](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@DavidD](https://community.plotly.com/u/DavidD)\
**Post date:** [August 17, 2017, 2:15pm UTC](https://community.plotly.com/t/log-axis-format/5440/1 "2017-08-17T14:15:38Z")

</div>

Hi

I am starting to dabble with Plotly Js. So far I made a scatter plot with a log axis.  
Example input & layout are below.

Question concerning the format: I am not particularly fond of the display of the log axis, for a range of two values (20, 281) it shows the y axis as 2, 3, 4, 5, 6, 7, 8, 9, 100, 2, 3 etc  
Is it possible to get it to render the proper numbers instead but still use the log type? Eg; expecting: 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300

The current format seems very confusing for external parties…

const trace1 = {  
type: ‘scatter’,  
mode: ‘markers’,  
hoverinfo : ‘none’,  
x: [1502977773119, 1502977777018],  
y: [20, 281],  
marker: {  
color: ‘#C8A2C8’,  
symbol : ‘star’,  
size : 12  
}  
};

```
const layout = {
  // title: 'Auto-Resize',
  yaxis : {
    type : 'log',
    autorange : true
  },
  showlegend: false,
  font: {
    size: 16
  }
}
```

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [August 18, 2017, 1:53pm UTC](https://community.plotly.com/t/log-axis-format/5440/2 "2017-08-18T13:53:44Z")

</div>

try setting `xaxis.exponentformat: 'power'`
