Created
June 4, 2017 09:43
-
-
Save merqurio/32776d2f5f0cd6aec4603834216a3b14 to your computer and use it in GitHub Desktop.
Plot with plotly offline and without any logo or reference to their site
This file contains hidden or 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
def plotter(*data): | |
try: | |
from plotly.offline import iplot | |
except ImportError: | |
print("Try to install plotly first: \n > pip install plotly") | |
return iplot(*data, config={"displaylogo":False, "showLink":False, 'modeBarButtonsToRemove':['sendDataToCloud']}) | |
from plotly.graph_objs import Scatter | |
g1 = Scatter(x=X, y=Y, mode='markers') | |
plotter([g1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment