python界面颜色设置,Python-在绘图中将背景颜色设置为透明

  • Post author:
  • Post category:python

My python code creates a plotly Bar plot but the background is white in color i want to change it into transparent color is that doable

My Code:

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, 15