[英]How to rotate X-axis labels in bokeh figure in Cuxfilter?
我有與這個問題完全相同的問題,除了cuxfilter
(RAPIDS) 中的實現
cux_df = cuxfilter.DataFrame.from_dataframe(test)
chart0 = cuxfilter.charts.bar('index', 'count')
chart0.xaxis.major_label_orientation = "vertical"
chart0.view()
產量:
AttributeError: 'Bar' object has no attribute 'xaxis'
正如評論中正確提到的@mosc9575,執行以下操作應該可以解決您的問題:
chart0.chart.xaxis.major_label_orientation = "vertical"
底層的chart0.chart
是散景 object,可以直接將所有散景屬性應用於它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.