I’ve been using Bokeh for the last few weeks and love it. Been creating charts using both the glyph and highlevel chart functions. However, when using highlevel charts, I can’t figure out how to set custom axis range, e.g. from 0 to 100. Apologies if this is a trivial question, I spent a lot of time looking for this but can’t find the solution.
x_range = Range1d(0, 100)
For sure with Plot and Figure/figure, you can then pass this int e.g. figure (x_range=x_range,
…)
But I just tried
on Chart and it didn’t blow up, b ut it also didn’t
have an effect on the plot.
Maybe
Fa bio or
Nick
have some insight.
···
On 2/8/16 3:01 PM, Dino wrote:
Hi all,
I've been using Bokeh for the last few weeks and love it.
Been creating charts using both the glyph and highlevel chart
functions. However, when using highlevel charts, I can’t
figure out how to set custom axis range, e.g. from 0 to 100.
Apologies if this is a trivial question, I spent a lot of time
looking for this but can’t find the solution.
Best
–
You received this message because you are subscribed to the Google
Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it,
To post to this group, send email to [email protected].
To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io?utm_medium=email&utm_source=footer) .
It depends on the chart you are using (although I’d say the support is not optimal at the moment). Can you send a code example so we can see the type of chart you are using and if/how it can be done?
Thanks
···
On Wednesday, February 10, 2016 at 11:34:36 AM UTC-6, Sarah Bird wrote:
To make a custom range
you would do:
from bo keh.models
import Range1d
x_range = Range1d(0, 100)
For sure with Plot and Figure/figure, you can then pass this int e.g. figure (x_range=x_range,
…)
But I just tried
on Chart and it didn’t blow up, b ut it also didn’t
have an effect on the plot.
Maybe
Fa bio or
Nick
have some insight.
On 2/8/16 3:01 PM, Dino wrote:
Hi all,
I've been using Bokeh for the last few weeks and love it.
Been creating charts using both the glyph and highlevel chart
functions. However, when using highlevel charts, I can’t
figure out how to set custom axis range, e.g. from 0 to 100.
Apologies if this is a trivial question, I spent a lot of time
looking for this but can’t find the solution.
Best
–
You received this message because you are subscribed to the Google
Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it,
To post to this group, send email to [email protected].
To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io?utm_medium=email&utm_source=footer)[https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io).
For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
Hi all,
Thanks for the suggestions. I tried setting the y-range with Range1d(0,100), but it doesn’t affect the plot (still plots from 30 and 100%). Find below the code snipped.
Thanks in advance for helping!
from bokeh.charts import defaults
defaults.width=1000
defaults.height = 700
source=ColumnDataSource(scatterD)
yR=Range1d(0,100)
p = Scatter (scatterD, x=‘NumberofReads’, y=‘Complexity’, color=‘Library’,
xlabel="Number of Reads", ylabel="Complexity",
title="Complexity vs Total Number of Reads",
legend="top_right", y_range=yR)
On Wednesday, February 10, 2016 at 9:41:38 AM UTC-8, Fabio Pliger wrote:
Hi,
It depends on the chart you are using (although I’d say the support is not optimal at the moment). Can you send a code example so we can see the type of chart you are using and if/how it can be done?
Thanks
On Wednesday, February 10, 2016 at 11:34:36 AM UTC-6, Sarah Bird wrote:
To make a custom range
you would do:
from bo keh.models
import Range1d
x_range = Range1d(0, 100)
For sure with Plot and Figure/figure, you can then pass this int e.g. figure (x_range=x_range,
…)
But I just tried
on Chart and it didn’t blow up, b ut it also didn’t
have an effect on the plot.
Maybe
Fa bio or
Nick
have some insight.
On 2/8/16 3:01 PM, Dino wrote:
Hi all,
I've been using Bokeh for the last few weeks and love it.
Been creating charts using both the glyph and highlevel chart
functions. However, when using highlevel charts, I can’t
figure out how to set custom axis range, e.g. from 0 to 100.
Apologies if this is a trivial question, I spent a lot of time
looking for this but can’t find the solution.
Best
–
You received this message because you are subscribed to the Google
Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it,
To post to this group, send email to [email protected].
To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io?utm_medium=email&utm_source=footer)[https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io).
For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
On Wednesday, February 10, 2016 at 12:57:08 PM UTC-8, Dino wrote:
Hi all,
Thanks for the suggestions. I tried setting the y-range with Range1d(0,100), but it doesn’t affect the plot (still plots from 30 and 100%). Find below the code snipped.
Thanks in advance for helping!
from bokeh.charts import defaults
defaults.width=1000
defaults.height = 700
source=ColumnDataSource(scatterD)
yR=Range1d(0,100)
p = Scatter (scatterD, x=‘NumberofReads’, y=‘Complexity’, color=‘Library’,
On Wednesday, February 10, 2016 at 9:41:38 AM UTC-8, Fabio Pliger wrote:
Hi,
It depends on the chart you are using (although I’d say the support is not optimal at the moment). Can you send a code example so we can see the type of chart you are using and if/how it can be done?
Thanks
On Wednesday, February 10, 2016 at 11:34:36 AM UTC-6, Sarah Bird wrote:
To make a custom range
you would do:
from bo keh.models
import Range1d
x_range = Range1d(0, 100)
For sure with Plot and Figure/figure, you can then pass this int e.g. figure (x_range=x_range,
…)
But I just tried
on Chart and it didn’t blow up, b ut it also didn’t
have an effect on the plot.
Maybe
Fa bio or
Nick
have some insight.
On 2/8/16 3:01 PM, Dino wrote:
Hi all,
I've been using Bokeh for the last few weeks and love it.
Been creating charts using both the glyph and highlevel chart
functions. However, when using highlevel charts, I can’t
figure out how to set custom axis range, e.g. from 0 to 100.
Apologies if this is a trivial question, I spent a lot of time
looking for this but can’t find the solution.
Best
–
You received this message because you are subscribed to the Google
Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it,
To post to this group, send email to [email protected].
To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io?utm_medium=email&utm_source=footer)[https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io).
For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
Yes, it is a bug and Sarah’s workaround is probably the best option at the moment. The fix should not be hard (for at least a few charts) and I’d be pleased to help you if you have time and bandwidth to work on a fix PR on this otherwise we will include the new issue in our priority queue.
Thanks for your feedback
Fabio
···
On Thursday, February 11, 2016 at 9:44:59 AM UTC-6, Sarah Bird (Continuum) wrote:
If you set the range after the call to scatter it works.
On Wednesday, February 10, 2016 at 12:57:08 PM UTC-8, Dino wrote:
Hi all,
Thanks for the suggestions. I tried setting the y-range with Range1d(0,100), but it doesn’t affect the plot (still plots from 30 and 100%). Find below the code snipped.
Thanks in advance for helping!
from bokeh.charts import defaults
defaults.width=1000
defaults.height = 700
source=ColumnDataSource(scatterD)
yR=Range1d(0,100)
p = Scatter (scatterD, x=‘NumberofReads’, y=‘Complexity’, color=‘Library’,
On Wednesday, February 10, 2016 at 9:41:38 AM UTC-8, Fabio Pliger wrote:
Hi,
It depends on the chart you are using (although I’d say the support is not optimal at the moment). Can you send a code example so we can see the type of chart you are using and if/how it can be done?
Thanks
On Wednesday, February 10, 2016 at 11:34:36 AM UTC-6, Sarah Bird wrote:
To make a custom range
you would do:
from bo keh.models
import Range1d
x_range = Range1d(0, 100)
For sure with Plot and Figure/figure, you can then pass this int e.g. figure (x_range=x_range,
…)
But I just tried
on Chart and it didn’t blow up, b ut it also didn’t
have an effect on the plot.
Maybe
Fa bio or
Nick
have some insight.
On 2/8/16 3:01 PM, Dino wrote:
Hi all,
I've been using Bokeh for the last few weeks and love it.
Been creating charts using both the glyph and highlevel chart
functions. However, when using highlevel charts, I can’t
figure out how to set custom axis range, e.g. from 0 to 100.
Apologies if this is a trivial question, I spent a lot of time
looking for this but can’t find the solution.
Best
–
You received this message because you are subscribed to the Google
Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it,
To post to this group, send email to [email protected].
To view this discussion on the web visit [](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io?utm_medium=email&utm_source=footer)[https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io](https://groups.google.com/a/continuum.io/d/msgid/bokeh/81ab7f60-feff-4514-9822-414ac557b64d%40continuum.io).
For more options, visit [https://groups.google.com/a/continuum.io/d/optout](https://groups.google.com/a/continuum.io/d/optout).
Works indeed the way Sarah describes it. Sweet!! Thanks so much guys!
···
On Monday, February 8, 2016 at 3:01:18 PM UTC-8, Dino wrote:
Hi all,
I’ve been using Bokeh for the last few weeks and love it. Been creating charts using both the glyph and highlevel chart functions. However, when using highlevel charts, I can’t figure out how to set custom axis range, e.g. from 0 to 100. Apologies if this is a trivial question, I spent a lot of time looking for this but can’t find the solution.