python显示文字框_自定义悬停框Plotly:Python以适应文本

有没有办法自定义悬停文本框的情节?我必须在悬停框中显示的文字很长,不适合在屏幕上显示。是否有方法可以更改悬停文本框的尺寸或使文本变小以使其全部适合屏幕。 更好的方法是在图表侧面显示相应注释的固定框,当我滚动该数据点时,但我不确定如何操作。自定义悬停框Plotly:Python以适应文本

这是我想用一些类似的长度文本做什么的样本。

import plotly.plotly as py

from plotly.graph_objs import *

import plotly

import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

notes=["Clinton is also navigating delicate ties with Israel and the American Jewish community, an influential group of voters and donors. Israeli Prime Minister Benjamin Netanyahu, a fierce critic of the Obama administration's outreach to Iran, described the framework deal as a threat to the very survival of his nation.", "Fire crews in Cambria County were called to the Revloc duplex Friday morning and found much of the building engulfed in flames. Chief Deputy Coroner Jeffrey Leeds said at least seven people were in the duplex and all, but one, were able to ge

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值