Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
Hi,
It looks like you have a categorical axis/range? There is a method presented here:
python - How to show only evey nth categorical tickers in Bokeh - Stack Overflow
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang <[email protected]> wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
--
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
Thanks for fast response. I added the code and then get this error as screenshot below. even I install nodejs in my virtual env. any idea?
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,
It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,
It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
Hi,
I don't have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few "standard" system places but if it can't find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
On Aug 7, 2018, at 10:28, peng wang <[email protected]> wrote:
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,It looks like you have a categorical axis/range? There is a method presented here:
python - How to show only evey nth categorical tickers in Bokeh - Stack Overflow
Thanks,
Bryan
> On Aug 7, 2018, at 09:44, peng wang <[email protected]> wrote:
>
> Hi guys,
>
> Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
>
> Please refer to screenshots shown below.
>
> Thanks
>
>
>
>
>
>
>
> --
> 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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.--
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 [email protected].
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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
Thanks for the comments. I installed nodejs by *.msi and set environment nariable according to your suggestion. But the problem is still there. I really don’t know where I made mistake. Please give me a hand.
On Tuesday, August 7, 2018 at 11:38:45 AM UTC-6, Bryan Van de ven wrote:
Hi,
I don’t have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few “standard” system places but if it can’t find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
On Aug 7, 2018, at 10:28, peng wang [email protected] wrote:
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,
It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
The env var needs to point to the executable program file, not a directory. (I don't know where it is on your system, that's all I can say).
Bryan
On Aug 7, 2018, at 12:58, peng wang <[email protected]> wrote:
Thanks for the comments. I installed nodejs by *.msi and set environment nariable according to your suggestion. But the problem is still there. I really don't know where I made mistake. Please give me a hand.
On Tuesday, August 7, 2018 at 11:38:45 AM UTC-6, Bryan Van de ven wrote:
Hi,I don't have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few "standard" system places but if it can't find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
> On Aug 7, 2018, at 10:28, peng wang <[email protected]> wrote:
>
>
>
>
>
> On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
> Hi,
>
> It looks like you have a categorical axis/range? There is a method presented here:
>
> python - How to show only evey nth categorical tickers in Bokeh - Stack Overflow
>
> Thanks,
>
> Bryan
>
> > On Aug 7, 2018, at 09:44, peng wang <[email protected]> wrote:
> >
> > Hi guys,
> >
> > Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
> >
> > Please refer to screenshots shown below.
> >
> > Thanks
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io\.
> > For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
>
>
> --
> 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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.--
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 [email protected].
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/4957a1fc-37f4-4445-b155-d3a1bda9457a%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.
Thanks, It is almost done. I follow the solution from this link: https://stackoverflow.com/questions/32195288/is-it-possible-to-keep-the-same-amount-of-x-axis-tick-labels-visible-as-the-zoom
I also believe it would meet my needs, Unfortunately, I come across this issue which is so wired and can not be figured out. Thanks for your efforts
On Tuesday, August 7, 2018 at 2:07:28 PM UTC-6, Bryan Van de ven wrote:
The env var needs to point to the executable program file, not a directory. (I don’t know where it is on your system, that’s all I can say).
Bryan
On Aug 7, 2018, at 12:58, peng wang [email protected] wrote:
Thanks for the comments. I installed nodejs by *.msi and set environment nariable according to your suggestion. But the problem is still there. I really don’t know where I made mistake. Please give me a hand.
On Tuesday, August 7, 2018 at 11:38:45 AM UTC-6, Bryan Van de ven wrote:
Hi,
I don’t have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few “standard” system places but if it can’t find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
On Aug 7, 2018, at 10:28, peng wang [email protected] wrote:
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/4957a1fc-37f4-4445-b155-d3a1bda9457a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
please ignore it , I will post my solution later. generally, it works
On Tuesday, August 7, 2018 at 3:33:11 PM UTC-6, peng wang wrote:
Thanks, It is almost done. I follow the solution from this link: https://stackoverflow.com/questions/32195288/is-it-possible-to-keep-the-same-amount-of-x-axis-tick-labels-visible-as-the-zoom
I also believe it would meet my needs, Unfortunately, I come across this issue which is so wired and can not be figured out. Thanks for your efforts
On Tuesday, August 7, 2018 at 2:07:28 PM UTC-6, Bryan Van de ven wrote:
The env var needs to point to the executable program file, not a directory. (I don’t know where it is on your system, that’s all I can say).
Bryan
On Aug 7, 2018, at 12:58, peng wang [email protected] wrote:
Thanks for the comments. I installed nodejs by *.msi and set environment nariable according to your suggestion. But the problem is still there. I really don’t know where I made mistake. Please give me a hand.
On Tuesday, August 7, 2018 at 11:38:45 AM UTC-6, Bryan Van de ven wrote:
Hi,
I don’t have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few “standard” system places but if it can’t find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
On Aug 7, 2018, at 10:28, peng wang [email protected] wrote:
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/4957a1fc-37f4-4445-b155-d3a1bda9457a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
############ Start: Solution ######################
from bokeh.core.properties import Int
class MyTicker(CategoricalTicker):
implementation = “”"
import {CategoricalTicker} from “models/tickers/categorical_ticker”
import * as p from “core/properties”
export class MyTicker extends CategoricalTicker
type: “MyTicker”
@define {
nth: [ p.Int, 1 ]
}
get_ticks: (start, end, range, cross_loc) →
ticks = super(start, end, range, cross_loc)
ticks.major = ticks.major.filter((element, index) => index % this.nth == 0)
return ticks
“”"
nth = Int(default=1)
main_plot.xaxis.ticker = MyTicker(nth=50)
ticker_cb = CustomJS(args=dict(ticker=main_plot.xaxis[0].ticker), code=“”"
if (Math.abs(cb_obj.start-cb_obj.end) > 20000) {
ticker.nth = 200
}else if (Math.abs(cb_obj.start-cb_obj.end) > 2000) {
ticker.nth = 20
}else if (Math.abs(cb_obj.start-cb_obj.end) > 30) {
ticker.nth = 10
}else {
ticker.nth = 1
}
“”")
main_plot.x_range.js_on_change(‘start’, ticker_cb)
main_plot.x_range.js_on_change(‘end’, ticker_cb)
############# End: Solution ####################
Thanks.
On Tuesday, August 7, 2018 at 3:49:38 PM UTC-6, peng wang wrote:
please ignore it , I will post my solution later. generally, it works
On Tuesday, August 7, 2018 at 3:33:11 PM UTC-6, peng wang wrote:
Thanks, It is almost done. I follow the solution from this link: https://stackoverflow.com/questions/32195288/is-it-possible-to-keep-the-same-amount-of-x-axis-tick-labels-visible-as-the-zoom
I also believe it would meet my needs, Unfortunately, I come across this issue which is so wired and can not be figured out. Thanks for your efforts
On Tuesday, August 7, 2018 at 2:07:28 PM UTC-6, Bryan Van de ven wrote:
The env var needs to point to the executable program file, not a directory. (I don’t know where it is on your system, that’s all I can say).
Bryan
On Aug 7, 2018, at 12:58, peng wang [email protected] wrote:
Thanks for the comments. I installed nodejs by *.msi and set environment nariable according to your suggestion. But the problem is still there. I really don’t know where I made mistake. Please give me a hand.
On Tuesday, August 7, 2018 at 11:38:45 AM UTC-6, Bryan Van de ven wrote:
Hi,
I don’t have much to add beyond what the error message states. Bokeh requires the ability to find and run a NodeJS executable of a minimum version. Bokeh looks in a few “standard” system places but if it can’t find things on its own, you can tell Bokeh the path to the NodeJS executable explicitly by setting the BOKEH_NODEJS_PATH environment variable.
Thanks,
Bryan
On Aug 7, 2018, at 10:28, peng wang [email protected] wrote:
On Tuesday, August 7, 2018 at 10:51:44 AM UTC-6, Bryan Van de ven wrote:
Hi,It looks like you have a categorical axis/range? There is a method presented here:
[https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh](https://stackoverflow.com/questions/49172201/how-to-show-only-evey-nth-categorical-tickers-in-bokeh)
Thanks,
Bryan
On Aug 7, 2018, at 09:44, peng wang [email protected] wrote:
Hi guys,
Is there a good way to skip some values and only show range on x-axis ? If there are so many labels are displayed on x-axis, user may not easily read them.
Please refer to screenshots shown below.
Thanks
–
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 [email protected].
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/980a5c1e-91c8-4a9a-a3ce-413b39d9f6e2%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/f854e9a6-d6e4-485d-b0ed-14426a1a1d6c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.–
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 [email protected].
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/4957a1fc-37f4-4445-b155-d3a1bda9457a%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.