Last active
January 10, 2020 21:03
-
-
Save JoaoCarabetta/ff172533d0595948342ee94d0da46e1e to your computer and use it in GitHub Desktop.
Cufflinks Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import textwrap | |
import cufflinks as cf | |
cf.go_offline() | |
cf.set_config_file(offline=False, world_readable=True) | |
def iplottitle(title, width=40): | |
return '<br>'.join(textwrap.wrap(title, width)) | |
cf.themes.THEMES['clean'] = {'layout': {'height': 500, | |
'legend': {'bgcolor': 'white', | |
'bordercolor': '#444', | |
'borderwidth': 0, | |
'font': {'size': 12}, | |
'itemclick': 'toggle', | |
'itemdoubleclick': 'toggleothers', | |
'itemsizing': 'trace', | |
'traceorder': 'normal'}, | |
'paper_bgcolor': 'white', | |
'plot_bgcolor': 'white', | |
'titlefont': {'color': '#4D5663', 'size': 17}, | |
'width': 700, | |
'xaxis': {'automargin': True, | |
'gridcolor': '#E1E5ED', | |
'linecolor': 'black', | |
'mirror': 'ticks', | |
'showline': True, | |
'titlefont': {'size': 16}, | |
'tickfont': {'size': 15}, | |
'zerolinecolor': 'black', | |
'zerolinewidth': 2}, | |
'yaxis': {'automargin': True, | |
'gridcolor': '#E1E5ED', | |
'linecolor': 'black', | |
'mirror': 'ticks', | |
'showline': True, | |
'titlefont': {'size': 16}, | |
'tickfont': {'size': 15}, | |
'zerolinecolor': 'black', | |
'zerolinewidth': 2}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
layout: | |
height: 500 | |
legend: | |
bgcolor: white | |
bordercolor: '#444' | |
borderwidth: 0 | |
font: {size: 12} | |
itemclick: toggle | |
itemdoubleclick: toggleothers | |
itemsizing: trace | |
traceorder: normal | |
paper_bgcolor: white | |
plot_bgcolor: white | |
titlefont: {color: '#4D5663', size: 17} | |
title_x: 0.5 | |
width: 700 | |
xaxis: | |
automargin: true | |
gridcolor: '#E1E5ED' | |
linecolor: black | |
mirror: ticks | |
showline: true | |
tickfont: {size: 15} | |
titlefont: {size: 16} | |
zerolinecolor: black | |
zerolinewidth: 2 | |
yaxis: | |
automargin: true | |
gridcolor: '#E1E5ED' | |
linecolor: black | |
mirror: ticks | |
showline: true | |
tickfont: {size: 15} | |
titlefont: {size: 16} | |
zerolinecolor: black | |
zerolinewidth: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment