Burtin, Linear Axis

Hello there,

The current Burtin example uses a logarithmic axis. How do I change it to a linear axis? Please advise!

Thank you so much!

Em

From http://bokeh.pydata.org/en/latest/docs/gallery/burtin.html:

# circular axes and lables
labels = np.power(10.0, np.arange(-3, 4))
radii = a * np.sqrt(np.log(labels * 1E4)) + b
p.circle(0, 0, radius=radii, fill_color=None, line_color="white")
p.text(0, radii[:-1], [str(r) for r in labels[:-1]],
       text_font_size="8pt", text_align="center", text_baseline="middle")

# radial axes
p.annular_wedge(0, 0, inner_radius-10, outer_radius+10,
                -big_angle+angles, -big_angle+angles, color="black")

Hi Em,

The Burtin example does not actually use any sort of built-in axis, or axis object. It just transforms the radii values according to the sqrt(log(...)) rule that Burtin evidently used. If you don't want that, you could try removing those parts from the radii line below, i.e.

  radii = a * labels + b

But I can't promise the result will look good, or that there might not be other adjustments that would have to be made (the legend is also custom and hand drawn and might need its placement adjusted, not sure).

Thanks,

Bryan

···

On Dec 4, 2016, at 12:28 PM, Em Em <[email protected]> wrote:

Hello there,

The current Burtin example uses a logarithmic axis. How do I change it to a linear axis? Please advise!

Thank you so much!

Em

From http://bokeh.pydata.org/en/latest/docs/gallery/burtin.html:
# circular axes and lables
labels = np.power(10.0, np.arange(-3, 4))
radii = a * np.sqrt(np.log(labels * 1E4)) + b
p.circle(0, 0, radius=radii, fill_color=None, line_color="white")
p.text(0, radii[:-1], [str(r) for r in labels[:-1]],

text_font_size="8pt", text_align="center", text_baseline="middle")

# radial axes
p.annular_wedge(0, 0, inner_radius-10, outer_radius+10,

-big_angle+angles, -big_angle+angles, color="black")

--
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/7c777383-2284-485e-af01-4a219d003aa6%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thank you, Bryan!!

···

On Mon, Dec 5, 2016 at 10:39 AM, Bryan Van de Ven [email protected] wrote:

Hi Em,

The Burtin example does not actually use any sort of built-in axis, or axis object. It just transforms the radii values according to the sqrt(log(…)) rule that Burtin evidently used. If you don’t want that, you could try removing those parts from the radii line below, i.e.

    radii = a * labels + b

But I can’t promise the result will look good, or that there might not be other adjustments that would have to be made (the legend is also custom and hand drawn and might need its placement adjusted, not sure).

Thanks,

Bryan

On Dec 4, 2016, at 12:28 PM, Em Em [email protected] wrote:

Hello there,

The current Burtin example uses a logarithmic axis. How do I change it to a linear axis? Please advise!

Thank you so much!

Em

From http://bokeh.pydata.org/en/latest/docs/gallery/burtin.html:

circular axes and lables

labels = np.power(10.0, np.arange(-3, 4))

radii = a * np.sqrt(np.log(labels * 1E4)) + b

p.circle(0, 0, radius=radii, fill_color=None, line_color=“white”)

p.text(0, radii[:-1], [str® for r in labels[:-1]],

text_font_size=“8pt”, text_align=“center”, text_baseline=“middle”)

radial axes

p.annular_wedge(0, 0, inner_radius-10, outer_radius+10,

-big_angle+angles, -big_angle+angles, color=“black”)

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/7c777383-2284-485e-af01-4a219d003aa6%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/FB2192D2-3B69-4E20-923B-E1E425F56ACB%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.