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)
output_file (“complexity_versus_read_numbers_scatter_viaHighlevel.html”, title=“scatter_complexity_vs_read_numbers_bokeh_dev_1.0”)
show(p)
···
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,
send an email to bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
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).