Skip to content

Commit 9d5bb92

Browse files
committed
Site updated at 2017-09-18 21:21:55 UTC
1 parent 55ff6f5 commit 9d5bb92

File tree

417 files changed

+5629
-4375118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+5629
-4375118
lines changed

2015/04/09/add-traces.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# Learn about API authentication here: https://plot.ly/r/getting-started
1+
# Learn about API authentication here: https://plot.ly/python/getting-started
22
# Find your api_key here: https://plot.ly/settings/api
33

4-
plotly_POST(plot_ly(x = c(1, 2), y = c(1, 2)), filename="name-of-my-plotly-file", <b>fileopt='append'</b>)
4+
import plotly.plotly as py
5+
from plotly.graph_objs import *
6+
7+
new_trace = Scatter( x=[3, 4], y=[3, 2] )
8+
9+
data = Data( [ new_trace1 ] )
10+
11+
plot_url = py.plot(data, filename='append plot', <b>fileopt='append'</b>)

2015/04/09/click.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, color = ~Species)
1+
# Learn about API authentication here: https://plot.ly/pandas/getting-started
2+
# Find your api_key here: https://plot.ly/settings/api
3+
4+
import plotly.plotly as py
5+
import cufflinks as cf
6+
import pandas as pd
7+
8+
cf.set_config_file(offline=False, world_readable=True, theme='ggplot')
9+
10+
df = pd.read_csv('http://www.stat.ubc.ca/~jenny/notOcto/STAT545A/examples/gapminder/data/gapminderDataFiveYear.txt', sep='\t')
11+
df2007 = df[df.year==2007]
12+
df1952 = df[df.year==1952]
13+
df.head(2)
14+
15+
df2007.iplot(kind='scatter', mode='markers', x='gdpPercap', y='lifeExp', filename='cufflinks/simple-scatter')

2015/04/09/extend.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# Learn about API authentication here: https://plot.ly/r/getting-started
1+
# Learn about API authentication here: https://plot.ly/python/getting-started
22
# Find your api_key here: https://plot.ly/settings/api
33

4-
plotly_POST(plot_ly(x = c(1, 2), y = c(1, 2)), filename="name-of-my-plotly-file", <b>fileopt='extend'</b>)
4+
import plotly.plotly as py
5+
from plotly.graph_objs import *
6+
7+
new_data = Scatter(x=[3, 4], y=[3, 2] )
8+
9+
data = Data( [ new_data ] )
10+
11+
plot_url = py.plot(data, filename='extend plot', <b>fileopt='extend'</b>)

2015/04/09/hover-bind.html

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
1-
library(plotly)
1+
import plotly.plotly as py
2+
import plotly.graph_objs as go
23

3-
xdat <- c("Bob Dylan", "The Beatles", "David Bowie", "Randy Newman", "The Rolling Stones", "Madonna", "Frank Sinatra", "The Beach Boys", "Marvin Gaye", "Prince", "The Kinks", "Elvis Presley", "Tom Waits", "U2", "The Clash", "Johnny Cash", "Kate Bush", "The Supremes", "The Smiths", "Al Green", "Pulp", "Chuck Berry", "Elvis Costello and the Attractions", "Neil Young", "Stevie Wonder", "Ray Charles", "The Pogues", "Grace Jones", "Bill Withers", "The Who", "Paul Simon", "Roy Orbison", "Arctic Monkeys", "Bruce Springsteen", "The Police", "Rod Stewart", "Steve Earle")
4+
data = [
5+
go.Bar(
6+
x=['Bob Dylan', 'The Beatles', 'David Bowie', 'Randy Newman', 'The Rolling Stones', 'Madonna', 'Frank Sinatra', 'The Beach Boys', 'Marvin Gaye', 'Prince', 'The Kinks', 'Elvis Presley', 'Tom Waits', 'U2', 'The Clash', 'Johnny Cash', 'Kate Bush', 'The Supremes', 'The Smiths', 'Al Green', 'Pulp', 'Chuck Berry', 'Elvis Costello and the Attractions', 'Neil Young', 'Stevie Wonder', 'Ray Charles', 'The Pogues', 'Grace Jones', 'Bill Withers', 'The Who', 'Paul Simon', 'Roy Orbison', 'Arctic Monkeys', 'Bruce Springsteen', 'The Police', 'Rod Stewart', 'Steve Earle'],
7+
y=[24, 19, 9, 8, 8, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4],
8+
name='Number of songs per artist',
9+
marker=Marker(
10+
color='#2ca02c'
11+
)
12+
)
13+
]
414

5-
ydat <- c(24, 19, 9, 8, 8, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4)
6-
7-
p <- plot_ly(x = xdat, y =ydat, name = "Number",
8-
marker = list(color = "#2ca02c"),
9-
type = "bar", filename="hover_example")
10-
p
15+
layout = go.Layout(
16+
title="Number of songs listed in the Guardian's&lt;br&gt;&lt;em&gt;Top 1,000 Songs to Hear Before You Die&lt;/em&gt; per artist with 4 or more songs",
17+
font=dict(
18+
family='Georgia, serif',
19+
color='#635F5D'
20+
),
21+
plot_bgcolor='#EFECEA'
22+
)
23+
fig = go.Figure(data=data, layout=layout)
24+
plot_url = py.plot(fig)

2015/04/09/overwrite.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# Learn about API authentication here: https://plot.ly/r/getting-started
1+
# Learn about API authentication here: https://plot.ly/python/getting-started
22
# Find your api_key here: https://plot.ly/settings/api
33

4-
plotly_POST(plot_ly(x = c(1, 2), y = c(1, 2)), filename='overwrite example')
4+
import plotly.plotly as py
5+
from plotly.graph_objs import *
6+
7+
data = Data([ Scatter(x=[1, 2], y=[3, 4]) ])
8+
9+
plot_url = py.plot(data, <b>filename='my plot'</b>)

2015/04/09/zoom-bind.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
plot_ly(data = iris, x = ~Sepal.Length, y = ~Petal.Length, color = ~Species, colors = "Set1")
1+
# Cufflinks binds plotly to pandas dataframes in IPython notebook.
2+
3+
import plotly.plotly as py
4+
import cufflinks as cf
5+
import pandas as pd
6+
7+
cf.set_config_file(offline=False, world_readable=True, theme='pearl')
8+
9+
df = pd.read_csv('http://www.stat.ubc.ca/~jenny/notOcto/STAT545A/examples/gapminder/data/gapminderDataFiveYear.txt', sep='\t')
10+
df2007 = df[df.year==2007]
11+
df.head(2)
12+
13+
df2007.iplot(kind='bubble', x='gdpPercap', y='lifeExp', size='pop', text='country',
14+
xTitle='GDP per Capita', yTitle='Life Expectancy',
15+
filename='cufflinks/simple-bubble-chart')

404.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<!-- Main Stylesheets -->
3131
<link rel="stylesheet" type="text/css" href="https://images.plot.ly/assets/css/normalize.css">
32-
<link rel="stylesheet" type="text/css" href="https://plot.ly/gh-pages/documentation/static//css/main.css?version=6dfea547b0">
32+
<link rel="stylesheet" type="text/css" href="http://localhost:4000/all_static/css/main.css?version=6dfea547b0">
3333

3434
<!-- LOCAL DEV STYLESHEET -->
3535
<!--<link rel="stylesheet" type="text/css" href="http://api.plotly.dev/all_static/css/main.css">-->
@@ -63,7 +63,7 @@
6363
<meta name="twitter:site" content="@plotlygraphs"/>
6464

6565
<!-- Favicon -->
66-
<link rel="shortcut icon" href="https://plot.ly/gh-pages/documentation/static//images/plotly-ico.png?v=2" />
66+
<link rel="shortcut icon" href="http://localhost:4000/all_static/images/plotly-ico.png?v=2" />
6767

6868

6969

@@ -437,10 +437,10 @@ <h6 class="--footer-heading">Connect</h6>&#x9;&#x9;&#x9;
437437

438438

439439
<!-- Image Hover Script -->
440-
<script src="https://plot.ly/gh-pages/documentation/static//javascripts/imghover.js"></script>
440+
<script src="http://localhost:4000/all_static/javascripts/imghover.js"></script>
441441

442442
<!-- code highlighting -->
443-
<script src="https://plot.ly/gh-pages/documentation/static//javascripts/codehighlight/highlight.pack.js"></script>
443+
<script src="http://localhost:4000/all_static/javascripts/codehighlight/highlight.pack.js"></script>
444444
<script>hljs.initHighlightingOnLoad();</script>
445445

446446
<!-- Google Analytics -->
@@ -498,7 +498,7 @@ <h6 class="--footer-heading">Connect</h6>&#x9;&#x9;&#x9;
498498
<script src="//cdn.jsdelivr.net/algoliasearch.helper/2.1.0/algoliasearch.helper.min.js"></script>
499499
<script src="//cdn.jsdelivr.net/hogan.js/3.0.2/hogan.min.js"></script>
500500
<script src="//cdn.jsdelivr.net/momentjs/2.10.3/moment.min.js"></script>
501-
<script src="/public/js/algolia.js"></script>
501+
<script src="http://localhost:4000/all_static/javascripts/algolia/algolia.js"></script>
502502

503503
</body>
504504

api/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<!-- Main Stylesheets -->
3131
<link rel="stylesheet" type="text/css" href="https://images.plot.ly/assets/css/normalize.css">
32-
<link rel="stylesheet" type="text/css" href="https://plot.ly/gh-pages/documentation/static//css/main.css?version=6dfea547b0">
32+
<link rel="stylesheet" type="text/css" href="http://localhost:4000/all_static/css/main.css?version=6dfea547b0">
3333

3434
<!-- LOCAL DEV STYLESHEET -->
3535
<!--<link rel="stylesheet" type="text/css" href="http://api.plotly.dev/all_static/css/main.css">-->
@@ -63,7 +63,7 @@
6363
<meta name="twitter:site" content="@plotlygraphs"/>
6464

6565
<!-- Favicon -->
66-
<link rel="shortcut icon" href="https://plot.ly/gh-pages/documentation/static//images/plotly-ico.png?v=2" />
66+
<link rel="shortcut icon" href="http://localhost:4000/all_static/images/plotly-ico.png?v=2" />
6767

6868

6969

@@ -554,10 +554,10 @@ <h6 class="--footer-heading">Connect</h6>&#x9;&#x9;&#x9;
554554

555555

556556
<!-- Image Hover Script -->
557-
<script src="https://plot.ly/gh-pages/documentation/static//javascripts/imghover.js"></script>
557+
<script src="http://localhost:4000/all_static/javascripts/imghover.js"></script>
558558

559559
<!-- code highlighting -->
560-
<script src="https://plot.ly/gh-pages/documentation/static//javascripts/codehighlight/highlight.pack.js"></script>
560+
<script src="http://localhost:4000/all_static/javascripts/codehighlight/highlight.pack.js"></script>
561561
<script>hljs.initHighlightingOnLoad();</script>
562562

563563
<!-- Google Analytics -->
@@ -615,7 +615,7 @@ <h6 class="--footer-heading">Connect</h6>&#x9;&#x9;&#x9;
615615
<script src="//cdn.jsdelivr.net/algoliasearch.helper/2.1.0/algoliasearch.helper.min.js"></script>
616616
<script src="//cdn.jsdelivr.net/hogan.js/3.0.2/hogan.min.js"></script>
617617
<script src="//cdn.jsdelivr.net/momentjs/2.10.3/moment.min.js"></script>
618-
<script src="/public/js/algolia.js"></script>
618+
<script src="http://localhost:4000/all_static/javascripts/algolia/algolia.js"></script>
619619

620620

621621

0 commit comments

Comments
 (0)