相关疑难解决方法(0)

Python - 在Plotly图中将背景颜色设置为透明

我的python代码创建了一个情节条形图,但背景是白色的,我想将其改为透明色是可行的

我的代码:

import plotly.plotly as py
from plotly.graph_objs import *
py.sign_in('username', 'api_key')
data = Data([
Bar(
    x=['Sivaranjani S', 'Vijayalakshmi C', 'Rajeshwari S', 'Shanthi Priscilla', 'Pandiyaraj G', 'Kamatchi S', 'MohanaPriya', 'Madhumitha G', 'Franklin Alphones Raj J', 'Akfaris Almaas', 'Biswajit Champati', 'Priya R', 'Rekha Rajasekaran', 'Sarath Kumar B', 'Jegan L', 'Karthick A', 'Mahalakshmi S', 'Ragunathan V', 'Anu S', 'Ramkumar KS', 'Uthra R'],
    y=[1640, 1394, 1390, 1313, 2166, 1521, 1078, 1543, 780, 1202, 1505, 2028, 2032, 1769, 1238, 1491, 1477, 1329, 2038, 1339, …
Run Code Online (Sandbox Code Playgroud)

python plotly

21
推荐指数
2
解决办法
2万
查看次数

如何更改绘图散点图中的网格线颜色?

我使用plotly dash绘制以下散点图,如何更改网格线颜色 在此输入图像描述

python plotly

5
推荐指数
1
解决办法
6337
查看次数

标签 统计

plotly ×2

python ×2