small y-axis values for Histogram

putting the following into an ipython notebook:
import bokeh.charts as bc

import bokeh

from collections import OrderedDict

#import pandas as pd

bokeh.load_notebook()

somelist = [100,100,200,200,300,300,400,400,400,400,500,600,600,600,700]

num_content = OrderedDict(billy=somelist)

hist = bc.Histogram(num_content, bins=2, notebook=True)

hist.title(“some_test”).width(400).height(350).legend(True).show()

So the y-axis shows values like:

1.500e-3

1.000e-3

Is there a reason for the y-axis numbers being so small? (0.00135)

Shouldn’t the y-axis not be something like:

8

7

6

Since I have designated 2 bins, and there are 6 values less than 100 and 9 values >= 400 Or is this not counting up the frequency of the values in the buckets?

I am looking at:

https://github.com/bokeh/bokeh/blob/d4fbe8f9a3eb647b60d6ee8ddca946f9342f1531/bokeh/charts/histogram.py

to try and understand what is going on.

Jared,

I apologize, this got lost in the shuffle. This does seem like a bug, I have created a GH issue here for it:

  Odd Histogram behaviour · Issue #1507 · bokeh/bokeh · GitHub

Thanks,

Bryan

···

On Nov 5, 2014, at 9:52 AM, jared <[email protected]> wrote:

import bokeh.charts as bc
import bokeh
from collections import OrderedDict
#import pandas as pd

bokeh.load_notebook()
somelist = [100,100,200,200,300,300,400,400,400,400,500,600,600,600,700]
       
num_content = OrderedDict(billy=somelist)
hist = bc.Histogram(num_content, bins=2, notebook=True)
hist.title("some_test").width(400).height(350).legend(True).show()

This is actually not a bug… I will answer in the 1507 issue to avoid duplication.

···

On Friday, December 5, 2014 6:05:06 PM UTC-3, Bryan Van de ven wrote:

Jared,

I apologize, this got lost in the shuffle. This does seem like a bug, I have created a GH issue here for it:

    [https://github.com/bokeh/bokeh/issues/1507](https://github.com/bokeh/bokeh/issues/1507)

Thanks,

Bryan

On Nov 5, 2014, at 9:52 AM, jared [email protected] wrote:

import bokeh.charts as bc

import bokeh

from collections import OrderedDict

#import pandas as pd

bokeh.load_notebook()

somelist = [100,100,200,200,300,300,400,400,400,400,500,600,600,600,700]

num_content = OrderedDict(billy=somelist)

hist = bc.Histogram(num_content, bins=2, notebook=True)

hist.title(“some_test”).width(400).height(350).legend(True).show()