Skip to content

Instantly share code, notes, and snippets.

@oluies
Created August 19, 2016 11:49
Show Gist options
  • Save oluies/1d66570567cf78cfb8085125a13b9206 to your computer and use it in GitHub Desktop.
Save oluies/1d66570567cf78cfb8085125a13b9206 to your computer and use it in GitHub Desktop.
from plotly import __version__
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.plotly as py
from plotly.graph_objs import *
import pandas as pd
import requests
requests.packages.urllib3.disable_warnings()
init_notebook_mode(connected=True)
print(__version__)
from plotly.tools import FigureFactory as FF
import numpy as np
colorscale = ['#7A4579', '#D56073', 'rgb(236,158,105)', (1, 1, 0.2), (0.98,0.98,0.98)]
fig = FF.create_2D_density(
x, np.log10(y+1), colorscale=colorscale,
hist_color='rgb(255, 237, 222)', point_size=6
)
iplot(fig, filename='histogram_subplots')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment