Skip to content

Instantly share code, notes, and snippets.

@empet
Last active March 15, 2017 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save empet/b33cf8fa993055359b18d1e77d0e10d2 to your computer and use it in GitHub Desktop.
Save empet/b33cf8fa993055359b18d1e77d0e10d2 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"<script>requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min']},});if(!window.Plotly) {{require(['plotly'],function(plotly) {window.Plotly=plotly;});}}</script>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import numpy as np\n",
"from plotly.offline import download_plotlyjs, init_notebook_mode, iplot, plot\n",
"init_notebook_mode(connected=True)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"data": [
{
"colorscale": [
[
0,
"rgb(100,100,255)"
],
[
0.5,
"rgb(100,100,255)"
],
[
1,
"rgb(100,100,255)"
]
],
"showscale": false,
"type": "surface",
"x": [
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
],
[
0,
1
]
],
"y": [
[
0,
0
],
[
0.09472138654039577,
0.09472138654039577
],
[
0.18944277308079155,
0.18944277308079155
],
[
0.28416415962118735,
0.28416415962118735
],
[
0.3788855461615831,
0.3788855461615831
],
[
0.47360693270197884,
0.47360693270197884
],
[
0.5683283192423747,
0.5683283192423747
],
[
0.6630497057827704,
0.6630497057827704
],
[
0.7577710923231662,
0.7577710923231662
],
[
0.8524924788635619,
0.8524924788635619
],
[
0.9472138654039577,
0.9472138654039577
],
[
1.0419352519443534,
1.0419352519443534
],
[
1.1366566384847494,
1.1366566384847494
],
[
1.2313780250251452,
1.2313780250251452
],
[
1.326099411565541,
1.326099411565541
],
[
1.4208207981059366,
1.4208207981059366
],
[
1.5155421846463324,
1.5155421846463324
],
[
1.6102635711867281,
1.6102635711867281
],
[
1.7049849577271239,
1.7049849577271239
],
[
1.7997063442675196,
1.7997063442675196
],
[
1.8944277308079154,
1.8944277308079154
],
[
1.9891491173483113,
1.9891491173483113
],
[
2.083870503888707,
2.083870503888707
],
[
2.178591890429103,
2.178591890429103
],
[
2.273313276969499,
2.273313276969499
],
[
2.3680346635098943,
2.3680346635098943
],
[
2.4627560500502903,
2.4627560500502903
],
[
2.557477436590686,
2.557477436590686
],
[
2.652198823131082,
2.652198823131082
],
[
2.7469202096714773,
2.7469202096714773
],
[
2.8416415962118733,
2.8416415962118733
],
[
2.936362982752269,
2.936362982752269
],
[
3.031084369292665,
3.031084369292665
],
[
3.1258057558330608,
3.1258057558330608
],
[
3.2205271423734563,
3.2205271423734563
],
[
3.3152485289138522,
3.3152485289138522
],
[
3.4099699154542478,
3.4099699154542478
],
[
3.5046913019946437,
3.5046913019946437
],
[
3.5994126885350393,
3.5994126885350393
],
[
3.6941340750754352,
3.6941340750754352
],
[
3.7888554616158308,
3.7888554616158308
],
[
3.8835768481562267,
3.8835768481562267
],
[
3.9782982346966227,
3.9782982346966227
],
[
4.073019621237019,
4.073019621237019
],
[
4.167741007777414,
4.167741007777414
],
[
4.26246239431781,
4.26246239431781
],
[
4.357183780858206,
4.357183780858206
],
[
4.451905167398602,
4.451905167398602
],
[
4.546626553938998,
4.546626553938998
],
[
4.641347940479393,
4.641347940479393
],
[
4.736069327019789,
4.736069327019789
],
[
4.830790713560185,
4.830790713560185
],
[
4.925512100100581,
4.925512100100581
],
[
5.020233486640976,
5.020233486640976
],
[
5.114954873181372,
5.114954873181372
],
[
5.209676259721768,
5.209676259721768
],
[
5.304397646262164,
5.304397646262164
],
[
5.39911903280256,
5.39911903280256
],
[
5.493840419342955,
5.493840419342955
],
[
5.588561805883351,
5.588561805883351
],
[
5.683283192423747,
5.683283192423747
],
[
5.7780045789641425,
5.7780045789641425
],
[
5.872725965504538,
5.872725965504538
],
[
5.967447352044934,
5.967447352044934
],
[
6.06216873858533,
6.06216873858533
],
[
6.1568901251257255,
6.1568901251257255
],
[
6.2516115116661215,
6.2516115116661215
],
[
6.346332898206517,
6.346332898206517
],
[
6.4410542847469126,
6.4410542847469126
],
[
6.5357756712873085,
6.5357756712873085
],
[
6.6304970578277045,
6.6304970578277045
],
[
6.7252184443681,
6.7252184443681
],
[
6.8199398309084955,
6.8199398309084955
],
[
6.9146612174488915,
6.9146612174488915
],
[
7.0093826039892875,
7.0093826039892875
],
[
7.104103990529683,
7.104103990529683
],
[
7.1988253770700785,
7.1988253770700785
],
[
7.2935467636104745,
7.2935467636104745
],
[
7.3882681501508705,
7.3882681501508705
],
[
7.482989536691266,
7.482989536691266
],
[
7.5777109232316615,
7.5777109232316615
],
[
7.6724323097720575,
7.6724323097720575
],
[
7.7671536963124534,
7.7671536963124534
],
[
7.861875082852849,
7.861875082852849
],
[
7.956596469393245,
7.956596469393245
],
[
8.051317855933641,
8.051317855933641
],
[
8.146039242474037,
8.146039242474037
],
[
8.240760629014432,
8.240760629014432
],
[
8.335482015554827,
8.335482015554827
],
[
8.430203402095223,
8.430203402095223
],
[
8.52492478863562,
8.52492478863562
],
[
8.619646175176015,
8.619646175176015
],
[
8.714367561716411,
8.714367561716411
],
[
8.809088948256807,
8.809088948256807
],
[
8.903810334797203,
8.903810334797203
],
[
8.9985317213376,
8.9985317213376
],
[
9.093253107877995,
9.093253107877995
],
[
9.18797449441839,
9.18797449441839
],
[
9.282695880958785,
9.282695880958785
],
[
9.377417267499181,
9.377417267499181
],
[
9.472138654039577,
9.472138654039577
],
[
9.566860040579973,
9.566860040579973
],
[
9.66158142712037,
9.66158142712037
],
[
9.756302813660765,
9.756302813660765
],
[
9.851024200201161,
9.851024200201161
],
[
9.945745586741557,
9.945745586741557
],
[
10.040466973281951,
10.040466973281951
],
[
10.135188359822347,
10.135188359822347
],
[
10.229909746362743,
10.229909746362743
],
[
10.32463113290314,
10.32463113290314
],
[
10.419352519443535,
10.419352519443535
],
[
10.514073905983931,
10.514073905983931
],
[
10.608795292524327,
10.608795292524327
],
[
10.703516679064723,
10.703516679064723
],
[
10.79823806560512,
10.79823806560512
],
[
10.892959452145513,
10.892959452145513
],
[
10.98768083868591,
10.98768083868591
],
[
11.082402225226305,
11.082402225226305
],
[
11.177123611766701,
11.177123611766701
],
[
11.271844998307097,
11.271844998307097
],
[
11.366566384847493,
11.366566384847493
],
[
11.46128777138789,
11.46128777138789
],
[
11.556009157928285,
11.556009157928285
],
[
11.650730544468681,
11.650730544468681
],
[
11.745451931009075,
11.745451931009075
],
[
11.840173317549471,
11.840173317549471
],
[
11.934894704089867,
11.934894704089867
],
[
12.029616090630263,
12.029616090630263
],
[
12.12433747717066,
12.12433747717066
],
[
12.219058863711055,
12.219058863711055
],
[
12.313780250251451,
12.313780250251451
],
[
12.408501636791847,
12.408501636791847
],
[
12.503223023332243,
12.503223023332243
],
[
12.597944409872637,
12.597944409872637
],
[
12.692665796413033,
12.692665796413033
],
[
12.78738718295343,
12.78738718295343
],
[
12.882108569493825,
12.882108569493825
],
[
12.976829956034221,
12.976829956034221
],
[
13.071551342574617,
13.071551342574617
],
[
13.166272729115013,
13.166272729115013
],
[
13.260994115655409,
13.260994115655409
],
[
13.355715502195805,
13.355715502195805
],
[
13.4504368887362,
13.4504368887362
],
[
13.545158275276595,
13.545158275276595
],
[
13.639879661816991,
13.639879661816991
],
[
13.734601048357387,
13.734601048357387
],
[
13.829322434897783,
13.829322434897783
],
[
13.924043821438179,
13.924043821438179
],
[
14.018765207978575,
14.018765207978575
],
[
14.113486594518971,
14.113486594518971
],
[
14.208207981059367,
14.208207981059367
],
[
14.302929367599761,
14.302929367599761
],
[
14.397650754140157,
14.397650754140157
],
[
14.492372140680553,
14.492372140680553
],
[
14.587093527220949,
14.587093527220949
],
[
14.681814913761345,
14.681814913761345
],
[
14.776536300301741,
14.776536300301741
],
[
14.871257686842137,
14.871257686842137
],
[
14.965979073382533,
14.965979073382533
],
[
15.060700459922929,
15.060700459922929
],
[
15.155421846463323,
15.155421846463323
],
[
15.250143233003719,
15.250143233003719
],
[
15.344864619544115,
15.344864619544115
],
[
15.439586006084511,
15.439586006084511
],
[
15.534307392624907,
15.534307392624907
],
[
15.629028779165303,
15.629028779165303
],
[
15.723750165705699,
15.723750165705699
],
[
15.818471552246095,
15.818471552246095
],
[
15.91319293878649,
15.91319293878649
],
[
16.007914325326887,
16.007914325326887
],
[
16.102635711867283,
16.102635711867283
],
[
16.19735709840768,
16.19735709840768
],
[
16.292078484948075,
16.292078484948075
],
[
16.38679987148847,
16.38679987148847
],
[
16.481521258028863,
16.481521258028863
],
[
16.57624264456926,
16.57624264456926
],
[
16.670964031109655,
16.670964031109655
],
[
16.76568541765005,
16.76568541765005
],
[
16.860406804190447,
16.860406804190447
],
[
16.955128190730843,
16.955128190730843
],
[
17.04984957727124,
17.04984957727124
],
[
17.144570963811635,
17.144570963811635
],
[
17.23929235035203,
17.23929235035203
],
[
17.334013736892427,
17.334013736892427
],
[
17.428735123432823,
17.428735123432823
],
[
17.52345650997322,
17.52345650997322
],
[
17.618177896513615,
17.618177896513615
],
[
17.71289928305401,
17.71289928305401
],
[
17.807620669594407,
17.807620669594407
],
[
17.902342056134803,
17.902342056134803
],
[
17.9970634426752,
17.9970634426752
],
[
18.091784829215594,
18.091784829215594
],
[
18.18650621575599,
18.18650621575599
],
[
18.281227602296383,
18.281227602296383
],
[
18.37594898883678,
18.37594898883678
],
[
18.470670375377175,
18.470670375377175
],
[
18.56539176191757,
18.56539176191757
],
[
18.660113148457967,
18.660113148457967
],
[
18.754834534998363,
18.754834534998363
],
[
18.84955592153876,
18.84955592153876
]
],
"z": [
[
0,
0
],
[
0.09457980779484494,
0.09457980779484494
],
[
0.18831166648971787,
0.18831166648971787
],
[
0.28035522921701445,
0.28035522921701445
],
[
0.3698852854165468,
0.3698852854165468
],
[
0.45609915920701594,
0.45609915920701594
],
[
0.5382239057242886,
0.5382239057242886
],
[
0.6155232409081792,
0.6155232409081792
],
[
0.6873041426091843,
0.6873041426091843
],
[
0.752923063833377,
0.752923063833377
],
[
0.8117917024210207,
0.8117917024210207
],
[
0.8633822754312233,
0.8633822754312233
],
[
0.9072322509454814,
0.9072322509454814
],
[
0.942948494867437,
0.942948494867437
],
[
0.9702107955409863,
0.9702107955409863
],
[
0.9887747345870026,
0.9887747345870026
],
[
0.9984738782203788,
0.9984738782203788
],
[
0.9992212694012756,
0.9992212694012756
],
[
0.9910102074427921,
0.9910102074427921
],
[
0.9739143080855378,
0.9739143080855378
],
[
0.9480868435005095,
0.9480868435005095
],
[
0.9137593681374366,
0.9137593681374366
],
[
0.8712396427384597,
0.8712396427384597
],
[
0.8209088751292626,
0.8209088751292626
],
[
0.7632183025251684,
0.7632183025251684
],
[
0.6986851459933066,
0.6986851459933066
],
[
0.6278879733408583,
0.6278879733408583
],
[
0.5514615120031076,
0.5514615120031076
],
[
0.47009095843600296,
0.47009095843600296
],
[
0.384505835032011,
0.384505835032011
],
[
0.29547344963467004,
0.29547344963467004
],
[
0.20379201629015234,
0.20379201629015234
],
[
0.11028349891127508,
0.11028349891127508
],
[
0.01578624201363682,
0.01578624201363682
],
[
-0.07885254540747635,
-0.07885254540747635
],
[
-0.17278438547409963,
-0.17278438547409963
],
[
-0.2651671383986785,
-0.2651671383986785
],
[
-0.3551725526334284,
-0.3551725526334284
],
[
-0.4419936905055789,
-0.4419936905055789
],
[
-0.5248521627644682,
-0.5248521627644682
],
[
-0.6030051071796143,
-0.6030051071796143
],
[
-0.6757518486236087,
-0.6757518486236087
],
[
-0.7424401809292832,
-0.7424401809292832
],
[
-0.8024722142015781,
-0.8024722142015781
],
[
-0.8553097351604116,
-0.8553097351604116
],
[
-0.9004790324567515,
-0.9004790324567515
],
[
-0.9375751437008251,
-0.9375751437008251
],
[
-0.9662654861260219,
-0.9662654861260219
],
[
-0.9862928383380027,
-0.9862928383380027
],
[
-0.9974776464163387,
-0.9974776464163387
],
[
-0.9997196336934779,
-0.9997196336934779
],
[
-0.9929986997786696,
-0.9929986997786696
],
[
-0.9773751007667072,
-0.9773751007667072
],
[
-0.9529889090158394,
-0.9529889090158394
],
[
-0.9200587573381745,
-0.9200587573381745
],
[
-0.8788798788614604,
-0.8788798788614604
],
[
-0.8298214601357258,
-0.8298214601357258
],
[
-0.7733233312153388,
-0.7733233312153388
],
[
-0.7098920223913332,
-0.7098920223913332
],
[
-0.6400962229271073,
-0.6400962229271073
],
[
-0.5645616825119181,
-0.5645616825119181
],
[
-0.48396560114283854,
-0.48396560114283854
],
[
-0.3990305577323414,
-0.3990305577323414
],
[
-0.3105180318741691,
-0.3105180318741691
],
[
-0.21922157684769145,
-0.21922157684769145
],
[
-0.12595970506771748,
-0.12595970506771748
],
[
-0.031568549764810244,
-0.031568549764810244
],
[
0.06310563131267323,
0.06310563131267323
],
[
0.15721404296725056,
0.15721404296725056
],
[
0.24991296237030833,
0.24991296237030833
],
[
0.34037130340411303,
0.34037130340411303
],
[
0.4277780677102091,
0.4277780677102091
],
[
0.5113496156423264,
0.5113496156423264
],
[
0.5903366919365283,
0.5903366919365283
],
[
0.6640311431104313,
0.6640311431104313
],
[
0.7317722663670769,
0.7317722663670769
],
[
0.7929527330827784,
0.7929527330827784
],
[
0.8470240337722987,
0.8470240337722987
],
[
0.8935013957148741,
0.8935013957148741
],
[
0.9319681291524349,
0.9319681291524349
],
[
0.9620793630944627,
0.9620793630944627
],
[
0.9835651372363698,
0.9835651372363698
],
[
0.9962328222710067,
0.9962328222710067
],
[
0.9999688468941563,
0.9999688468941563
],
[
0.9947397160206569,
0.9947397160206569
],
[
0.980592311082404,
0.980592311082404
],
[
0.9576534697159294,
0.9576534697159294
],
[
0.9261288486078416,
0.9261288486078416
],
[
0.886301079693209,
0.886301079693209
],
[
0.8385272362373777,
0.8385272362373777
],
[
0.7832356315188906,
0.7832356315188906
],
[
0.7209219788147165,
0.7209219788147165
],
[
0.6521449471151867,
0.6521449471151867
],
[
0.5775211524135885,
0.5775211524135885
],
[
0.4977196294756828,
0.4977196294756828
],
[
0.41345583365213356,
0.41345583365213356
],
[
0.325485226510211,
0.325485226510211
],
[
0.23459650279236954,
0.23459650279236954
],
[
0.14160451942495228,
0.14160451942495228
],
[
0.04734298997155845,
0.04734298997155845
],
[
-0.04734298997155772,
-0.04734298997155772
],
[
-0.14160451942495153,
-0.14160451942495153
],
[
-0.23459650279236882,
-0.23459650279236882
],
[
-0.325485226510212,
-0.325485226510212
],
[
-0.41345583365213456,
-0.41345583365213456
],
[
-0.4977196294756837,
-0.4977196294756837
],
[
-0.5775211524135879,
-0.5775211524135879
],
[
-0.6521449471151861,
-0.6521449471151861
],
[
-0.7209219788147161,
-0.7209219788147161
],
[
-0.7832356315188902,
-0.7832356315188902
],
[
-0.8385272362373773,
-0.8385272362373773
],
[
-0.8863010796932087,
-0.8863010796932087
],
[
-0.9261288486078413,
-0.9261288486078413
],
[
-0.9576534697159297,
-0.9576534697159297
],
[
-0.9805923110824042,
-0.9805923110824042
],
[
-0.9947397160206569,
-0.9947397160206569
],
[
-0.9999688468941563,
-0.9999688468941563
],
[
-0.9962328222710067,
-0.9962328222710067
],
[
-0.98356513723637,
-0.98356513723637
],
[
-0.9620793630944628,
-0.9620793630944628
],
[
-0.9319681291524349,
-0.9319681291524349
],
[
-0.893501395714874,
-0.893501395714874
],
[
-0.8470240337722986,
-0.8470240337722986
],
[
-0.7929527330827782,
-0.7929527330827782
],
[
-0.7317722663670775,
-0.7317722663670775
],
[
-0.6640311431104318,
-0.6640311431104318
],
[
-0.5903366919365288,
-0.5903366919365288
],
[
-0.511349615642327,
-0.511349615642327
],
[
-0.42777806771020976,
-0.42777806771020976
],
[
-0.34037130340411287,
-0.34037130340411287
],
[
-0.2499129623703082,
-0.2499129623703082
],
[
-0.15721404296725042,
-0.15721404296725042
],
[
-0.06310563131267308,
-0.06310563131267308
],
[
0.03156854976480951,
0.03156854976480951
],
[
0.12595970506771673,
0.12595970506771673
],
[
0.21922157684769072,
0.21922157684769072
],
[
0.31051803187416843,
0.31051803187416843
],
[
0.39903055773234075,
0.39903055773234075
],
[
0.4839656011428387,
0.4839656011428387
],
[
0.5645616825119182,
0.5645616825119182
],
[
0.6400962229271074,
0.6400962229271074
],
[
0.7098920223913332,
0.7098920223913332
],
[
0.7733233312153384,
0.7733233312153384
],
[
0.8298214601357253,
0.8298214601357253
],
[
0.87887987886146,
0.87887987886146
],
[
0.9200587573381743,
0.9200587573381743
],
[
0.9529889090158392,
0.9529889090158392
],
[
0.9773751007667072,
0.9773751007667072
],
[
0.9929986997786696,
0.9929986997786696
],
[
0.9997196336934779,
0.9997196336934779
],
[
0.9974776464163387,
0.9974776464163387
],
[
0.9862928383380029,
0.9862928383380029
],
[
0.966265486126022,
0.966265486126022
],
[
0.9375751437008253,
0.9375751437008253
],
[
0.9004790324567519,
0.9004790324567519
],
[
0.8553097351604121,
0.8553097351604121
],
[
0.802472214201578,
0.802472214201578
],
[
0.7424401809292831,
0.7424401809292831
],
[
0.6757518486236085,
0.6757518486236085
],
[
0.6030051071796142,
0.6030051071796142
],
[
0.5248521627644693,
0.5248521627644693
],
[
0.44199369050557996,
0.44199369050557996
],
[
0.3551725526334291,
0.3551725526334291
],
[
0.2651671383986792,
0.2651671383986792
],
[
0.1727843854740999,
0.1727843854740999
],
[
0.07885254540747665,
0.07885254540747665
],
[
-0.015786242013636972,
-0.015786242013636972
],
[
-0.11028349891127523,
-0.11028349891127523
],
[
-0.2037920162901525,
-0.2037920162901525
],
[
-0.29547344963467065,
-0.29547344963467065
],
[
-0.3845058350320115,
-0.3845058350320115
],
[
-0.47009095843600385,
-0.47009095843600385
],
[
-0.5514615120031084,
-0.5514615120031084
],
[
-0.6278879733408594,
-0.6278879733408594
],
[
-0.698685145993305,
-0.698685145993305
],
[
-0.7632183025251673,
-0.7632183025251673
],
[
-0.8209088751292616,
-0.8209088751292616
],
[
-0.8712396427384589,
-0.8712396427384589
],
[
-0.9137593681374362,
-0.9137593681374362
],
[
-0.9480868435005092,
-0.9480868435005092
],
[
-0.9739143080855376,
-0.9739143080855376
],
[
-0.991010207442792,
-0.991010207442792
],
[
-0.9992212694012755,
-0.9992212694012755
],
[
-0.9984738782203788,
-0.9984738782203788
],
[
-0.9887747345870026,
-0.9887747345870026
],
[
-0.9702107955409862,
-0.9702107955409862
],
[
-0.9429484948674369,
-0.9429484948674369
],
[
-0.9072322509454811,
-0.9072322509454811
],
[
-0.863382275431223,
-0.863382275431223
],
[
-0.8117917024210203,
-0.8117917024210203
],
[
-0.7529230638333764,
-0.7529230638333764
],
[
-0.6873041426091834,
-0.6873041426091834
],
[
-0.615523240908178,
-0.615523240908178
],
[
-0.5382239057242901,
-0.5382239057242901
],
[
-0.4560991592070175,
-0.4560991592070175
],
[
-0.36988528541654825,
-0.36988528541654825
],
[
-0.28035522921701567,
-0.28035522921701567
],
[
-0.18831166648971898,
-0.18831166648971898
],
[
-0.09457980779484587,
-0.09457980779484587
],
[
-7.347880794884119e-16,
-7.347880794884119e-16
]
]
}
],
"layout": {
"height": 600,
"scene": {
"camera": {
"center": {
"x": 0,
"y": 0,
"z": 0
},
"eye": {
"x": 2.5,
"y": 0,
"z": 0
},
"up": {
"x": 0,
"y": 0,
"z": 1
}
}
},
"title": "Ribbon plot",
"updatemenus": [
{
"buttons": [
{
"args": [
null,
{
"frame": {
"duration": 100,
"redraw": true
},
"fromcurrent": true,
"mode": "immediate",
"transition": {
"duration": 0
}
}
],
"label": "Play",
"method": "animate"
}
],
"pad": {
"r": 10,
"t": 0
},
"showactive": false,
"type": "buttons",
"x": 1.55,
"xanchor": "right",
"y": 1,
"yanchor": "top"
}
],
"width": 600
}
},
"text/html": [
"<div id=\"47b68029-45c2-496e-b552-853bdebdd2be\" style=\"height: 600px; width: 600px;\" class=\"plotly-graph-div\"></div><script type=\"text/javascript\">require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {};window.PLOTLYENV.BASE_URL=\"https://plot.ly\";\n",
" Plotly.plot(\n",
" '47b68029-45c2-496e-b552-853bdebdd2be',\n",
" [{\"colorscale\": [[0, \"rgb(100,100,255)\"], [0.5, \"rgb(100,100,255)\"], [1.0, \"rgb(100,100,255)\"]], \"showscale\": false, \"y\": [[0.0, 0.0], [0.09472138654039577, 0.09472138654039577], [0.18944277308079155, 0.18944277308079155], [0.28416415962118735, 0.28416415962118735], [0.3788855461615831, 0.3788855461615831], [0.47360693270197884, 0.47360693270197884], [0.5683283192423747, 0.5683283192423747], [0.6630497057827704, 0.6630497057827704], [0.7577710923231662, 0.7577710923231662], [0.8524924788635619, 0.8524924788635619], [0.9472138654039577, 0.9472138654039577], [1.0419352519443534, 1.0419352519443534], [1.1366566384847494, 1.1366566384847494], [1.2313780250251452, 1.2313780250251452], [1.326099411565541, 1.326099411565541], [1.4208207981059366, 1.4208207981059366], [1.5155421846463324, 1.5155421846463324], [1.6102635711867281, 1.6102635711867281], [1.7049849577271239, 1.7049849577271239], [1.7997063442675196, 1.7997063442675196], [1.8944277308079154, 1.8944277308079154], [1.9891491173483113, 1.9891491173483113], [2.083870503888707, 2.083870503888707], [2.178591890429103, 2.178591890429103], [2.273313276969499, 2.273313276969499], [2.3680346635098943, 2.3680346635098943], [2.4627560500502903, 2.4627560500502903], [2.557477436590686, 2.557477436590686], [2.652198823131082, 2.652198823131082], [2.7469202096714773, 2.7469202096714773], [2.8416415962118733, 2.8416415962118733], [2.936362982752269, 2.936362982752269], [3.031084369292665, 3.031084369292665], [3.1258057558330608, 3.1258057558330608], [3.2205271423734563, 3.2205271423734563], [3.3152485289138522, 3.3152485289138522], [3.4099699154542478, 3.4099699154542478], [3.5046913019946437, 3.5046913019946437], [3.5994126885350393, 3.5994126885350393], [3.6941340750754352, 3.6941340750754352], [3.7888554616158308, 3.7888554616158308], [3.8835768481562267, 3.8835768481562267], [3.9782982346966227, 3.9782982346966227], [4.073019621237019, 4.073019621237019], [4.167741007777414, 4.167741007777414], [4.26246239431781, 4.26246239431781], [4.357183780858206, 4.357183780858206], [4.451905167398602, 4.451905167398602], [4.546626553938998, 4.546626553938998], [4.641347940479393, 4.641347940479393], [4.736069327019789, 4.736069327019789], [4.830790713560185, 4.830790713560185], [4.925512100100581, 4.925512100100581], [5.020233486640976, 5.020233486640976], [5.114954873181372, 5.114954873181372], [5.209676259721768, 5.209676259721768], [5.304397646262164, 5.304397646262164], [5.39911903280256, 5.39911903280256], [5.493840419342955, 5.493840419342955], [5.588561805883351, 5.588561805883351], [5.683283192423747, 5.683283192423747], [5.7780045789641425, 5.7780045789641425], [5.872725965504538, 5.872725965504538], [5.967447352044934, 5.967447352044934], [6.06216873858533, 6.06216873858533], [6.1568901251257255, 6.1568901251257255], [6.2516115116661215, 6.2516115116661215], [6.346332898206517, 6.346332898206517], [6.4410542847469126, 6.4410542847469126], [6.5357756712873085, 6.5357756712873085], [6.6304970578277045, 6.6304970578277045], [6.7252184443681, 6.7252184443681], [6.8199398309084955, 6.8199398309084955], [6.9146612174488915, 6.9146612174488915], [7.0093826039892875, 7.0093826039892875], [7.104103990529683, 7.104103990529683], [7.1988253770700785, 7.1988253770700785], [7.2935467636104745, 7.2935467636104745], [7.3882681501508705, 7.3882681501508705], [7.482989536691266, 7.482989536691266], [7.5777109232316615, 7.5777109232316615], [7.6724323097720575, 7.6724323097720575], [7.7671536963124534, 7.7671536963124534], [7.861875082852849, 7.861875082852849], [7.956596469393245, 7.956596469393245], [8.051317855933641, 8.051317855933641], [8.146039242474037, 8.146039242474037], [8.240760629014432, 8.240760629014432], [8.335482015554827, 8.335482015554827], [8.430203402095223, 8.430203402095223], [8.52492478863562, 8.52492478863562], [8.619646175176015, 8.619646175176015], [8.714367561716411, 8.714367561716411], [8.809088948256807, 8.809088948256807], [8.903810334797203, 8.903810334797203], [8.9985317213376, 8.9985317213376], [9.093253107877995, 9.093253107877995], [9.18797449441839, 9.18797449441839], [9.282695880958785, 9.282695880958785], [9.377417267499181, 9.377417267499181], [9.472138654039577, 9.472138654039577], [9.566860040579973, 9.566860040579973], [9.66158142712037, 9.66158142712037], [9.756302813660765, 9.756302813660765], [9.851024200201161, 9.851024200201161], [9.945745586741557, 9.945745586741557], [10.040466973281951, 10.040466973281951], [10.135188359822347, 10.135188359822347], [10.229909746362743, 10.229909746362743], [10.32463113290314, 10.32463113290314], [10.419352519443535, 10.419352519443535], [10.514073905983931, 10.514073905983931], [10.608795292524327, 10.608795292524327], [10.703516679064723, 10.703516679064723], [10.79823806560512, 10.79823806560512], [10.892959452145513, 10.892959452145513], [10.98768083868591, 10.98768083868591], [11.082402225226305, 11.082402225226305], [11.177123611766701, 11.177123611766701], [11.271844998307097, 11.271844998307097], [11.366566384847493, 11.366566384847493], [11.46128777138789, 11.46128777138789], [11.556009157928285, 11.556009157928285], [11.650730544468681, 11.650730544468681], [11.745451931009075, 11.745451931009075], [11.840173317549471, 11.840173317549471], [11.934894704089867, 11.934894704089867], [12.029616090630263, 12.029616090630263], [12.12433747717066, 12.12433747717066], [12.219058863711055, 12.219058863711055], [12.313780250251451, 12.313780250251451], [12.408501636791847, 12.408501636791847], [12.503223023332243, 12.503223023332243], [12.597944409872637, 12.597944409872637], [12.692665796413033, 12.692665796413033], [12.78738718295343, 12.78738718295343], [12.882108569493825, 12.882108569493825], [12.976829956034221, 12.976829956034221], [13.071551342574617, 13.071551342574617], [13.166272729115013, 13.166272729115013], [13.260994115655409, 13.260994115655409], [13.355715502195805, 13.355715502195805], [13.4504368887362, 13.4504368887362], [13.545158275276595, 13.545158275276595], [13.639879661816991, 13.639879661816991], [13.734601048357387, 13.734601048357387], [13.829322434897783, 13.829322434897783], [13.924043821438179, 13.924043821438179], [14.018765207978575, 14.018765207978575], [14.113486594518971, 14.113486594518971], [14.208207981059367, 14.208207981059367], [14.302929367599761, 14.302929367599761], [14.397650754140157, 14.397650754140157], [14.492372140680553, 14.492372140680553], [14.587093527220949, 14.587093527220949], [14.681814913761345, 14.681814913761345], [14.776536300301741, 14.776536300301741], [14.871257686842137, 14.871257686842137], [14.965979073382533, 14.965979073382533], [15.060700459922929, 15.060700459922929], [15.155421846463323, 15.155421846463323], [15.250143233003719, 15.250143233003719], [15.344864619544115, 15.344864619544115], [15.439586006084511, 15.439586006084511], [15.534307392624907, 15.534307392624907], [15.629028779165303, 15.629028779165303], [15.723750165705699, 15.723750165705699], [15.818471552246095, 15.818471552246095], [15.91319293878649, 15.91319293878649], [16.007914325326887, 16.007914325326887], [16.102635711867283, 16.102635711867283], [16.19735709840768, 16.19735709840768], [16.292078484948075, 16.292078484948075], [16.38679987148847, 16.38679987148847], [16.481521258028863, 16.481521258028863], [16.57624264456926, 16.57624264456926], [16.670964031109655, 16.670964031109655], [16.76568541765005, 16.76568541765005], [16.860406804190447, 16.860406804190447], [16.955128190730843, 16.955128190730843], [17.04984957727124, 17.04984957727124], [17.144570963811635, 17.144570963811635], [17.23929235035203, 17.23929235035203], [17.334013736892427, 17.334013736892427], [17.428735123432823, 17.428735123432823], [17.52345650997322, 17.52345650997322], [17.618177896513615, 17.618177896513615], [17.71289928305401, 17.71289928305401], [17.807620669594407, 17.807620669594407], [17.902342056134803, 17.902342056134803], [17.9970634426752, 17.9970634426752], [18.091784829215594, 18.091784829215594], [18.18650621575599, 18.18650621575599], [18.281227602296383, 18.281227602296383], [18.37594898883678, 18.37594898883678], [18.470670375377175, 18.470670375377175], [18.56539176191757, 18.56539176191757], [18.660113148457967, 18.660113148457967], [18.754834534998363, 18.754834534998363], [18.84955592153876, 18.84955592153876]], \"x\": [[0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0], [0.0, 1.0]], \"z\": [[0.0, 0.0], [0.09457980779484494, 0.09457980779484494], [0.18831166648971787, 0.18831166648971787], [0.28035522921701445, 0.28035522921701445], [0.3698852854165468, 0.3698852854165468], [0.45609915920701594, 0.45609915920701594], [0.5382239057242886, 0.5382239057242886], [0.6155232409081792, 0.6155232409081792], [0.6873041426091843, 0.6873041426091843], [0.752923063833377, 0.752923063833377], [0.8117917024210207, 0.8117917024210207], [0.8633822754312233, 0.8633822754312233], [0.9072322509454814, 0.9072322509454814], [0.942948494867437, 0.942948494867437], [0.9702107955409863, 0.9702107955409863], [0.9887747345870026, 0.9887747345870026], [0.9984738782203788, 0.9984738782203788], [0.9992212694012756, 0.9992212694012756], [0.9910102074427921, 0.9910102074427921], [0.9739143080855378, 0.9739143080855378], [0.9480868435005095, 0.9480868435005095], [0.9137593681374366, 0.9137593681374366], [0.8712396427384597, 0.8712396427384597], [0.8209088751292626, 0.8209088751292626], [0.7632183025251684, 0.7632183025251684], [0.6986851459933066, 0.6986851459933066], [0.6278879733408583, 0.6278879733408583], [0.5514615120031076, 0.5514615120031076], [0.47009095843600296, 0.47009095843600296], [0.384505835032011, 0.384505835032011], [0.29547344963467004, 0.29547344963467004], [0.20379201629015234, 0.20379201629015234], [0.11028349891127508, 0.11028349891127508], [0.01578624201363682, 0.01578624201363682], [-0.07885254540747635, -0.07885254540747635], [-0.17278438547409963, -0.17278438547409963], [-0.2651671383986785, -0.2651671383986785], [-0.3551725526334284, -0.3551725526334284], [-0.4419936905055789, -0.4419936905055789], [-0.5248521627644682, -0.5248521627644682], [-0.6030051071796143, -0.6030051071796143], [-0.6757518486236087, -0.6757518486236087], [-0.7424401809292832, -0.7424401809292832], [-0.8024722142015781, -0.8024722142015781], [-0.8553097351604116, -0.8553097351604116], [-0.9004790324567515, -0.9004790324567515], [-0.9375751437008251, -0.9375751437008251], [-0.9662654861260219, -0.9662654861260219], [-0.9862928383380027, -0.9862928383380027], [-0.9974776464163387, -0.9974776464163387], [-0.9997196336934779, -0.9997196336934779], [-0.9929986997786696, -0.9929986997786696], [-0.9773751007667072, -0.9773751007667072], [-0.9529889090158394, -0.9529889090158394], [-0.9200587573381745, -0.9200587573381745], [-0.8788798788614604, -0.8788798788614604], [-0.8298214601357258, -0.8298214601357258], [-0.7733233312153388, -0.7733233312153388], [-0.7098920223913332, -0.7098920223913332], [-0.6400962229271073, -0.6400962229271073], [-0.5645616825119181, -0.5645616825119181], [-0.48396560114283854, -0.48396560114283854], [-0.3990305577323414, -0.3990305577323414], [-0.3105180318741691, -0.3105180318741691], [-0.21922157684769145, -0.21922157684769145], [-0.12595970506771748, -0.12595970506771748], [-0.031568549764810244, -0.031568549764810244], [0.06310563131267323, 0.06310563131267323], [0.15721404296725056, 0.15721404296725056], [0.24991296237030833, 0.24991296237030833], [0.34037130340411303, 0.34037130340411303], [0.4277780677102091, 0.4277780677102091], [0.5113496156423264, 0.5113496156423264], [0.5903366919365283, 0.5903366919365283], [0.6640311431104313, 0.6640311431104313], [0.7317722663670769, 0.7317722663670769], [0.7929527330827784, 0.7929527330827784], [0.8470240337722987, 0.8470240337722987], [0.8935013957148741, 0.8935013957148741], [0.9319681291524349, 0.9319681291524349], [0.9620793630944627, 0.9620793630944627], [0.9835651372363698, 0.9835651372363698], [0.9962328222710067, 0.9962328222710067], [0.9999688468941563, 0.9999688468941563], [0.9947397160206569, 0.9947397160206569], [0.980592311082404, 0.980592311082404], [0.9576534697159294, 0.9576534697159294], [0.9261288486078416, 0.9261288486078416], [0.886301079693209, 0.886301079693209], [0.8385272362373777, 0.8385272362373777], [0.7832356315188906, 0.7832356315188906], [0.7209219788147165, 0.7209219788147165], [0.6521449471151867, 0.6521449471151867], [0.5775211524135885, 0.5775211524135885], [0.4977196294756828, 0.4977196294756828], [0.41345583365213356, 0.41345583365213356], [0.325485226510211, 0.325485226510211], [0.23459650279236954, 0.23459650279236954], [0.14160451942495228, 0.14160451942495228], [0.04734298997155845, 0.04734298997155845], [-0.04734298997155772, -0.04734298997155772], [-0.14160451942495153, -0.14160451942495153], [-0.23459650279236882, -0.23459650279236882], [-0.325485226510212, -0.325485226510212], [-0.41345583365213456, -0.41345583365213456], [-0.4977196294756837, -0.4977196294756837], [-0.5775211524135879, -0.5775211524135879], [-0.6521449471151861, -0.6521449471151861], [-0.7209219788147161, -0.7209219788147161], [-0.7832356315188902, -0.7832356315188902], [-0.8385272362373773, -0.8385272362373773], [-0.8863010796932087, -0.8863010796932087], [-0.9261288486078413, -0.9261288486078413], [-0.9576534697159297, -0.9576534697159297], [-0.9805923110824042, -0.9805923110824042], [-0.9947397160206569, -0.9947397160206569], [-0.9999688468941563, -0.9999688468941563], [-0.9962328222710067, -0.9962328222710067], [-0.98356513723637, -0.98356513723637], [-0.9620793630944628, -0.9620793630944628], [-0.9319681291524349, -0.9319681291524349], [-0.893501395714874, -0.893501395714874], [-0.8470240337722986, -0.8470240337722986], [-0.7929527330827782, -0.7929527330827782], [-0.7317722663670775, -0.7317722663670775], [-0.6640311431104318, -0.6640311431104318], [-0.5903366919365288, -0.5903366919365288], [-0.511349615642327, -0.511349615642327], [-0.42777806771020976, -0.42777806771020976], [-0.34037130340411287, -0.34037130340411287], [-0.2499129623703082, -0.2499129623703082], [-0.15721404296725042, -0.15721404296725042], [-0.06310563131267308, -0.06310563131267308], [0.03156854976480951, 0.03156854976480951], [0.12595970506771673, 0.12595970506771673], [0.21922157684769072, 0.21922157684769072], [0.31051803187416843, 0.31051803187416843], [0.39903055773234075, 0.39903055773234075], [0.4839656011428387, 0.4839656011428387], [0.5645616825119182, 0.5645616825119182], [0.6400962229271074, 0.6400962229271074], [0.7098920223913332, 0.7098920223913332], [0.7733233312153384, 0.7733233312153384], [0.8298214601357253, 0.8298214601357253], [0.87887987886146, 0.87887987886146], [0.9200587573381743, 0.9200587573381743], [0.9529889090158392, 0.9529889090158392], [0.9773751007667072, 0.9773751007667072], [0.9929986997786696, 0.9929986997786696], [0.9997196336934779, 0.9997196336934779], [0.9974776464163387, 0.9974776464163387], [0.9862928383380029, 0.9862928383380029], [0.966265486126022, 0.966265486126022], [0.9375751437008253, 0.9375751437008253], [0.9004790324567519, 0.9004790324567519], [0.8553097351604121, 0.8553097351604121], [0.802472214201578, 0.802472214201578], [0.7424401809292831, 0.7424401809292831], [0.6757518486236085, 0.6757518486236085], [0.6030051071796142, 0.6030051071796142], [0.5248521627644693, 0.5248521627644693], [0.44199369050557996, 0.44199369050557996], [0.3551725526334291, 0.3551725526334291], [0.2651671383986792, 0.2651671383986792], [0.1727843854740999, 0.1727843854740999], [0.07885254540747665, 0.07885254540747665], [-0.015786242013636972, -0.015786242013636972], [-0.11028349891127523, -0.11028349891127523], [-0.2037920162901525, -0.2037920162901525], [-0.29547344963467065, -0.29547344963467065], [-0.3845058350320115, -0.3845058350320115], [-0.47009095843600385, -0.47009095843600385], [-0.5514615120031084, -0.5514615120031084], [-0.6278879733408594, -0.6278879733408594], [-0.698685145993305, -0.698685145993305], [-0.7632183025251673, -0.7632183025251673], [-0.8209088751292616, -0.8209088751292616], [-0.8712396427384589, -0.8712396427384589], [-0.9137593681374362, -0.9137593681374362], [-0.9480868435005092, -0.9480868435005092], [-0.9739143080855376, -0.9739143080855376], [-0.991010207442792, -0.991010207442792], [-0.9992212694012755, -0.9992212694012755], [-0.9984738782203788, -0.9984738782203788], [-0.9887747345870026, -0.9887747345870026], [-0.9702107955409862, -0.9702107955409862], [-0.9429484948674369, -0.9429484948674369], [-0.9072322509454811, -0.9072322509454811], [-0.863382275431223, -0.863382275431223], [-0.8117917024210203, -0.8117917024210203], [-0.7529230638333764, -0.7529230638333764], [-0.6873041426091834, -0.6873041426091834], [-0.615523240908178, -0.615523240908178], [-0.5382239057242901, -0.5382239057242901], [-0.4560991592070175, -0.4560991592070175], [-0.36988528541654825, -0.36988528541654825], [-0.28035522921701567, -0.28035522921701567], [-0.18831166648971898, -0.18831166648971898], [-0.09457980779484587, -0.09457980779484587], [-7.347880794884119e-16, -7.347880794884119e-16]], \"type\": \"surface\"}],\n",
" {\"width\": 600, \"height\": 600, \"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 2.5, \"z\": 0}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": 0, \"z\": 1}}}, \"updatemenus\": [{\"yanchor\": \"top\", \"showactive\": false, \"xanchor\": \"right\", \"buttons\": [{\"args\": [null, {\"frame\": {\"duration\": 100, \"redraw\": true}, \"transition\": {\"duration\": 0}, \"fromcurrent\": true, \"mode\": \"immediate\"}], \"method\": \"animate\", \"label\": \"Play\"}], \"pad\": {\"r\": 10, \"t\": 0}, \"y\": 1, \"x\": 1.55, \"type\": \"buttons\"}], \"title\": \"Ribbon plot\"},\n",
" {\"linkText\": \"Export to plot.ly\", \"showLink\": true}\n",
" ).then(function () {return Plotly.addFrames('47b68029-45c2-496e-b552-853bdebdd2be',[{\"layout\": {\"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 2.5, \"z\": 0.0}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": -0.0, \"z\": 1.0}}}, \"title\": \"Cur angle:0.0\"}}, {\"layout\": {\"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 2.309698831278217, \"z\": 0.9567085809127245}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": -0.3826834323650898, \"z\": 0.9238795325112867}}}, \"title\": \"Cur angle:22.500663602\"}}, {\"layout\": {\"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 1.7677669529663689, \"z\": 1.7677669529663687}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": -0.7071067811865475, \"z\": 0.7071067811865476}}}, \"title\": \"Cur angle:45.0013272041\"}}, {\"layout\": {\"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 0.9567085809127246, \"z\": 2.309698831278217}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": -0.9238795325112867, \"z\": 0.38268343236508984}}}, \"title\": \"Cur angle:67.5019908061\"}}, {\"layout\": {\"scene\": {\"camera\": {\"eye\": {\"y\": 0, \"x\": 1.5308084989341916e-16, \"z\": 2.5}, \"center\": {\"y\": 0, \"x\": 0, \"z\": 0}, \"up\": {\"y\": 0, \"x\": -1.0, \"z\": 6.123233995736766e-17}}}, \"title\": \"Cur angle:90.0026544081\"}}]);}).then(function(){Plotly.animate('47b68029-45c2-496e-b552-853bdebdd2be');})\n",
" });</script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"y=np.linspace(0,6*np.pi,200)\n",
"x=np.zeros(len(y))#([i*2, i*2+1])\n",
"z=np.sin(y)\n",
"\n",
"traces=[dict(\n",
" z=[[cz,cz] for cz in z],\n",
" x=[[cx,cx+1] for cx in x],\n",
" y=[[cy,cy] for cy in y],\n",
"colorscale=[ [i, 'rgb(100,100,255)'] for i in [0, 0.5, 1.0] ],\n",
"showscale=False,\n",
"type='surface',\n",
")]\n",
"\n",
"malpha=np.linspace(0,90,5)\n",
"malpha=[float(xx)/180*np.pi for xx in malpha]\n",
"\n",
"mfr=[]\n",
"for ii in malpha:\n",
" mcam= dict(up=dict(x=-np.sin(ii), y=0, z=np.cos(ii)),\n",
" center=dict(x=0, y=0, z=0),\n",
" eye=dict(x=2.5*np.cos(ii), y=0, z=2.5*np.sin(ii)),\n",
" )\n",
" mfr.append(dict(#data=traces,\n",
" layout= dict(scene=dict(camera=dict(up=dict(x=-np.sin(ii), y=0, z=np.cos(ii)),\n",
" center=dict(x=0, y=0, z=0),\n",
" eye=dict(x=2.5*np.cos(ii), y=0, z=2.5*np.sin(ii)),\n",
" )\n",
" ),\n",
" title=('Cur angle:'+str(ii/3.1415*180))\n",
" )\n",
" )\n",
" )\n",
"\n",
"\n",
"\n",
"\n",
"layout=dict(width=600, height=600, title='Ribbon plot',\n",
" scene=dict(camera=dict(up=dict(x=0, y=0, z=1),\n",
" center=dict(x=0, y=0, z=0),\n",
" eye=dict(x=2.5, y=0, z=0)\n",
" )\n",
" ),\n",
" updatemenus=[dict(type='buttons', showactive=False,\n",
" y=1,\n",
" x=1.55,\n",
" xanchor='right',\n",
" yanchor='top',\n",
" pad=dict(t=0, r=10),\n",
" buttons=[dict(\n",
" label='Play',\n",
" method='animate',\n",
" args=[None, dict(frame=dict(duration=100, redraw=True), \n",
" transition=dict(duration=0),\n",
" fromcurrent=True,\n",
" mode='immediate'\n",
" )\n",
" ]\n",
" )\n",
" ]\n",
" )\n",
" ] \n",
" )\n",
" \n",
"fig=dict(data=traces, layout=layout, frames=mfr)\n",
"\n",
"iplot(fig,filename='ribbon-plot-python2')\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment