Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Bokeh,如何使原木次轴与直线次轴平行?_Python_Bokeh_Multiple Axes - Fatal编程技术网

Python 在Bokeh,如何使原木次轴与直线次轴平行?

Python 在Bokeh,如何使原木次轴与直线次轴平行?,python,bokeh,multiple-axes,Python,Bokeh,Multiple Axes,如何将对数次Y轴放置到具有主Y线性轴的图表上 我试过这个: import numpy as np import bokeh as b import bokeh.io from bokeh.models.formatters import * from bokeh.plotting import figure, show, output_file from bokeh.models import LinearAxis, LogAxis, DataRange1d TOOLS = "pan,whe

如何将对数次Y轴放置到具有主Y线性轴的图表上

我试过这个:

import numpy as np
import bokeh as b
import bokeh.io
from bokeh.models.formatters import *
from bokeh.plotting import figure, show, output_file
from bokeh.models import LinearAxis, LogAxis, DataRange1d


TOOLS = "pan,wheel_zoom,box_zoom,reset,save"

x = np.arange(100)
y1 = np.arange(100)
y2 = np.arange(100)**3
p3 = figure(
    tools=TOOLS, active_scroll="wheel_zoom",
    plot_width=800, plot_height=500,
    title = "TEST")

p3.line(x, y1)

p3.extra_y_ranges = {"log": DataRange1d()}
p3.add_layout(LogAxis(y_range_name="log"), 'right')

p3.line(x, y2, color='#FF0000', y_range_name="log")

show(p3)
但它不工作[在我的浏览器上]:左轴仅在我缩放时显示,它显示为线性轴


我是缺少了什么还是应该填充一个bug?

当前
bokeh==0.12.10
在同时表示对数和线性轴时存在问题。 该漏洞已被报告