# Adding extra\_x\_range and adjusting it according to the x\_range of primary axis

**URL:** <https://discourse.bokeh.org/t/adding-extra-x-range-and-adjusting-it-according-to-the-x-range-of-primary-axis/6670>\
**Category:** Community Support\
**Tags:** bokeh\
**Created:** [November 6, 2020, 4:02am UTC](https://discourse.bokeh.org/t/adding-extra-x-range-and-adjusting-it-according-to-the-x-range-of-primary-axis/6670 "2020-11-06T04:02:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Umang\_Garg](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/umang_garg/32/2733_2.png) [@Umang\_Garg](https://discourse.bokeh.org/u/Umang_Garg)\
**Post date:** [November 6, 2020, 4:02am UTC](https://discourse.bokeh.org/t/adding-extra-x-range-and-adjusting-it-according-to-the-x-range-of-primary-axis/6670/1 "2020-11-06T04:02:38Z")

</div>

I have added extra\_x\_ranges to my plot by :  
p.extra\_x\_ranges = {“range\_hist\_freq”: Range1d(start=2000, end=0)}. But I want the 0 of this new x-axis to be plotted just in front of some value in old x-axis. here the old x-axis is in the datetime format. Is there a way I can do this?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads.bokeh.org/original/2X/1/14eb24f9e10e4e9b78e3f10f66c04ffa96446e5a.svg) [@system](https://discourse.bokeh.org/u/system)\
**Post date:** [July 21, 2021, 9:29pm UTC](https://discourse.bokeh.org/t/adding-extra-x-range-and-adjusting-it-according-to-the-x-range-of-primary-axis/6670/2 "2021-07-21T21:29:39Z")

</div>


