2017-11-17 6 views
2

私はbokehの新しいユーザーです。質問は非常にシンプルですが、答えを見つけられませんでした。 bokehライブラリで、matplolib imshowのvmaxとvmaxに相当するものは何ですか?例えば は、Matplolibに私がボケ結果Vsがimshowは相当vmin vmax matplotlib bokeh

p1 = figure(title="my_title",x_range=[min_x,image_data.shape[0]],y_range=[min_y, image_data.shape[1]], toolbar_location=None)

p1.image(image=[image_data], x=[min_x],y=[min_y],dw=[image_data.shape[0]],dh=[image_data.shape[1]], palette="Spectral11") 
color_bar = ColorBar(color_mapper=color_mapper, ticker=LogTicker(), 
          label_standoff=12, border_line_color=None, location=(0,0)) 

、私はボケ味を使用している場合しかし、私は別の結果を得るため、これらの値

im = ax.imshow(image_data, vmin = 0.1, vmax = 0.8, origin = 'lower') 

とVMINとVMAXを使用 enter image description here

私のエラーは何ですか?このコードのITの仕事では、事前

答えて

0

のおかげで:

color_mapper = LogColorMapper(palette="Viridis256", low=0.1, high=0.8) 

    plot = figure(x_range=(0,image_data.shape[0]), y_range=(0,image_data.shape[1]), toolbar_location=None) 
    plot.image(image=[image], color_mapper=color_mapper, 
       dh=[image_data.shape[0]], dw=[image_data.shape[1]], x=[0], y=[0]) 

    color_bar = ColorBar(color_mapper=color_mapper, ticker=LogTicker(), 
         label_standoff=12, border_line_color=None, location=(0,0))