avxspan

Hi,

Using Bokeh, how can I highlight a region in the plot like what I can do with Matplotlib’s axvspan? (see the image below)

Thanks.
-Ken

Hi Kenneth,

There is no built in function to create vertical or horizontal spans as with aaxhspan/axvspan. You can easily draw axis-aliagned rectangular regions with the Quad glyph (or quad glyph function from plotting.py). You would need to explicitly give some vertical bounds that extend to the vertical edges of the current display region. I think things this would make a good candidates for addition as an annotation type. Can you make a feature request on the GitHub issue tracker?

Bryan

···

On Sep 23, 2014, at 5:39 AM, Kenneth Tran <[email protected]> wrote:

Hi,

Using Bokeh, how can I highlight a region in the plot like what I can do with Matplotlib's axvspan? (see the image below)

Thanks.
-Ken

--
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/47fe619d-7a3d-440e-919a-d32ae5212756%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

OK, just filed a feature request on GitHub.

···

On Tue, Sep 23, 2014 at 7:02 AM, Bryan Van de Ven [email protected] wrote:

Hi Kenneth,

There is no built in function to create vertical or horizontal spans as with aaxhspan/axvspan. You can easily draw axis-aliagned rectangular regions with the Quad glyph (or quad glyph function from plotting.py). You would need to explicitly give some vertical bounds that extend to the vertical edges of the current display region. I think things this would make a good candidates for addition as an annotation type. Can you make a feature request on the GitHub issue tracker?

Bryan

On Sep 23, 2014, at 5:39 AM, Kenneth Tran [email protected] wrote:

Hi,

Using Bokeh, how can I highlight a region in the plot like what I can do with Matplotlib’s axvspan? (see the image below)

Thanks.

-Ken

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/47fe619d-7a3d-440e-919a-d32ae5212756%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/Y5DQ-voVV8E/unsubscribe.

To unsubscribe from this group and all its topics, 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/E5B463E2-7881-4F05-B3E4-B07ACA1C83D1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

OK, just filed a feature request on GitHub.

···

On Tue, Sep 23, 2014 at 7:02 AM, Bryan Van de Ven [email protected] wrote:

Hi Kenneth,

There is no built in function to create vertical or horizontal spans as with aaxhspan/axvspan. You can easily draw axis-aliagned rectangular regions with the Quad glyph (or quad glyph function from plotting.py). You would need to explicitly give some vertical bounds that extend to the vertical edges of the current display region. I think things this would make a good candidates for addition as an annotation type. Can you make a feature request on the GitHub issue tracker?

Bryan

On Sep 23, 2014, at 5:39 AM, Kenneth Tran [email protected] wrote:

Hi,

Using Bokeh, how can I highlight a region in the plot like what I can do with Matplotlib’s axvspan? (see the image below)

Thanks.

-Ken

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/47fe619d-7a3d-440e-919a-d32ae5212756%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to a topic in the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this topic, visit https://groups.google.com/a/continuum.io/d/topic/bokeh/Y5DQ-voVV8E/unsubscribe.

To unsubscribe from this group and all its topics, 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/E5B463E2-7881-4F05-B3E4-B07ACA1C83D1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.