Python — Einstellung der Hintergrundfarbe auf transparent in Plotly Grundstücke
Mein python-code erstellt eine plotly Bar plot, aber der hintergrund ist weiß in der Farbe, ich will es ändern in transparente Farbe ist machbar
Mein 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, 1543, 780, 1202, 1505, 2028, 2032, 1769, 1238, 1491, 1477, 1329, 2038, 1339, 1458],
text=['Scuti', 'Scuti', 'Cygni', 'Scorpii', 'Scuti', 'Pollux', 'Scorpii', 'Pollux', 'Scuti', 'Pollux', 'Scorpii', 'Scorpii', 'Scuti', 'Cygni', 'Scorpii', 'Scuti', 'Scuti', 'Pollux', 'Scuti', 'Pollux', 'Pollux'])])
plot_url = py.plot(data)
Der graph sieht wie folgt aus
InformationsquelleAutor der Frage The6thSense | 2015-04-30
Du musst angemeldet sein, um einen Kommentar abzugeben.
Für eine vollständig transparente Handlung, stellen Sie sicher, dass Sie beide das Papier bgcolor und der plot ist:
InformationsquelleAutor der Antwort etpinard
Können Sie das Layout zu ändern, seine Farben mit den Parametern
bgcolour
undopacity
set zu verkaufen Wünsche. Sie könnten etwas tun wie:finden Sie einige Beispiele hier
InformationsquelleAutor der Antwort Ricardo Burillo