# Get this figure: p = download_plot("https://plotly.com/~Peterhowell9/18/") # Get this figure's data: data = download_plot("https://plotly.com/~Peterhowell9/18/").plot.data # Add data to this figure: post(plot(scatter(x=[1, 2], y=[2, 3])); filename="PROFIT QUALITY", fileopt="extend")) # Get y data of first trace: y1 = download_plot("https://plotly.com/~Peterhowell9/18/").plot.data[1]["y"] # Get figure documentation: https://plotly.com/julia/get-requests/ # Add data documentation: https://plotly.com/julia/file-options/ # You can reproduce this figure in Julia with the following code! # Learn about API authentication here: https://plotly.com/julia/getting-started # Find your api_key here: https://plotly.com/settings/api using Plotly Plotly.signin("username", "api_key") trace1 = scatter(Dict( :uid => "6b9daf", :mode => "markers", :name => "A", :type => "scatter", :x => [6268.43, 1212.82, 2447.9, 2647.43, 437.05, 1282.49, 1435.77, 25053.1, 9132.79, 1849.9, 604.58, 2456, 846.85, 1430.26, 2965.21, 636.99, 868.84, 4919.71, 5395.67, 8430.08, 1386.44, 12995.77, 21473.87, 5097.82, 28671.83, 3643.47, 9826.19, 45479.95, 1562.63, 2575.67, 35138.39, 544.6, 1639.93, 33910.3, 1070.71, 43321.49, 4121.65, 1223.74, 17714.87, 1802.79, 25971.03, 2431.81, 6399.29, 2004.02, 20181.32, 19705.97, 13695.9, 1936.49, 1647.95, 1380.41, 1614.27, 1075.18, 1526.62, 3443.52, 1383.78, 1784.53, 22228.56, 1782.96, 3562.56, 2239.03, 6317.84, 1697.51, 3967.43, 594.15, 1307.75, 760.38, 774.22, 1806.81, 15647.91, 2549.27, 25166.78, 1404.41, -161.7, 1491.39, 3361.89, 1062.66, 17143.75, 2079.67, 2905.26, 958.18, 1182.49, 5952.84, 898.44, 6151.24, 11649.83, 1887.23, 1073.69, 2066.49, 26212.82, 2273.72, 5037.12, 3277.6, 2370.07, 241.06, 1404.36, 371.94, 1767.09, 1743.01, 6009.53, 18772.34, 1247.84, 1277.05, 1523.81, 11651.72, 1517.47, 28206.04, 4105.61, 12734.27, 17130.09, 1300.09, 25928.18], :y => [54.4, 55.05, 51.5, 54.55, 52.4, 57.7, 56.9, 63.25, 61.1, 61, 56.15, 64.3, 51.7, 56.35, 72.3, 54.55, 48.5, 52.95, 58.1, 58.05, 60.2, 56.5, 57.6, 64.3, 52.5, 54.6, 54, 59.6, 50.05, 76.5, 54.6, 51.35, 57.95, 56.75, 52.6, 53.2, 56, 53.45, 53.55, 61.2, 55.45, 54.65, 52.2, 48.95, 59.25, 66.45, 53.55, 59.25, 49.5, 55.3, 62.3, 57.1, 59.1, 57.75, 54.45, 62.75, 58.25, 59.85, 57.9, 61.25, 53.5, 54.1, 63.8, 50.35, 59.85, 52, 55.55, 61.1, 50.1, 65.7, 63.3, 56.85, 50.6, 57.8, 52.9, 53.1, 59.8, 54.4, 59.35, 50.95, 56.45, 55.45, 58.4, 55.55, 66.5, 61.7, 55.85, 65.55, 49.95, 58.75, 60.05, 60.7, 52.65, 58.25, 55, 53.2, 59.5, 65.5, 55.5, 55.7, 56.8, 56.7, 53.2, 52.15, 52.6, 55.75, 52.25, 51.75, 55.7, 53.95, 60.45], :text => ["10 Clos Ty Tafol", "Aneurin Way", "Bath Road", "Bath Villas / Bath Avenue", "Beaufort Court", "Brodawel", "Bronallt Road", "Bryn Derwen", "Brynallt Court", "Bryneithin Road", "Brynmead", "Bwllfa Road", "Cadnant Road", "Caebad Terrace", "Cae-nan", "Caerphilly Avenue", "Caledfwlch", "Cartref Y Drindod", "Cefn Hengoed Road", "Charles Street", "Church Road", "Clos Andreas", "Clos David Morgan", "Clos Dewi Medi", "Clos Maes Yr Ysgol", "Clos Ty Gwyn", "Clos Ty Tafol", "Cockett affordable housing", "Copperworks Road Houses", "Crickhowell Place", "Cwmdu / Mile End / Brickyard", "Dale Close", "De La Beche / Talbot Street", "Dol y Dderwen", "Dolau Fawr", "Drovers Court", "Eiddwen Road", "Elusendy Court", "Embankment / Copperworks Bungalows", "Ffordd Tollborth", "Gelli Rhedyn", "George Powell House", "Ger Y Mor", "Glantawe Street Houses", "Gower View Road", "Graham Berry / Heol Frank Bungalows", "Gwaun Henllan", "Gwysfa Road", "Hafod Terraced properties", "Harddfan", "Heol Dal Y Coppa", "Heol Goffa", "Heol Gwenallt", "Heol Hafdy", "Heol Maes Y Cerrig", "Heol Rhuddos", "Heol Y Gelynen", "Heol Y Wylan", "Heol Yr Eos", "Highfield", "Hollett Road", "Horeb Road", "Huntingdon Way", "Jersey Street", "Lan Coed", "Lan Street", "Llangyfelach Road", "Llwyn Y Golomen", "Llys John Davies", "Llys Y Brenin", "Llys y Felin / Llys Arthur bungalows", "Lon Draenog", "Lon Tyr Haul", "Maes Glas", "Maes Maddock / Lime Street", "Maes Y Gwernen Drive", "Maes Yr Awel", "Mansel Road", "Marlborough Road", "Martin Street", "Moorview Close", "Mount Pleasant houses", "Mysydd Terrace", "Pant Glas", "Parc Y Garreg", "Parry Road", "Penmachno", "Penydre", "Philadelphia Court", "Pottery Street", "Powys Avenue", "Radnor Drive", "Railway Terrace", "Ravenhill Road", "Rhodfa Fadog", "Russell Street", "Sandy Road", "Sardis Close", "Slate Street", "Swan Gardens", "Swansea Road", "Swansea Road Bungalow", "Teglan Park", "Tir Yr Hen Ysgol", "Trinity Street", "Ty Eithin House", "Ty Gwyn", "Ty Horeb", "Whiteford Mews", "Woodend Road", "Woodland Court"] )) trace2 = scatter(Dict( :uid => "979fcc", :mode => "markers", :name => "B", :type => "scatter", :x => [41441.71, 46506.16, 43037.09, 47798.81, 24022.22, 30642.01, -45.51, 13511.56, -27.51, -1072.19, 4011.25, -341.29, 43755.69, -531.38, 622.53, -371.7, 35930.75, 358.11, 149.07, -655.51, 438.2, 1226.45, 3215.26, 1310.6, 8107.61, 491.1, 8730.41, 1.09, 509.14, -1028.2, 510.4, -13.55, 3460.63, -5661.97, -144.74, 1392.96, 291.18, -175.88, 6190.64, -500.31, 842.99, 312.98, 1154.99, 27230.25, 7246.27, 1258.52, 782.74, 729.81, -353.63, 14704.37, -189.5, -125.39, -242.23, 356.21, 5425.83, -884.36, 246.58, 6846.23, 7229.09, 381.23, 186.25, -1125.72, 2141.97, 25688.92, 4334.93, 25825.91, 1068.95, 33922.26, 23840.64, 581.09, 1611.28, 1615.8, 2555.52, 1534.99, 22717.5, 575.69, 1462.03, -495.11, -825.04, -8583.93, 967.37, 9857.9, 1795.45, -1420.93, -8.31, -241.01, 1085.69, -2894.75, 564.37, 1241.88, 19230.48, 782.14, 858.87, 4402.97, -10395.97, 10757.55, 48332.32, 28763.15, 13238.22, 509.76, 2250.09, -98.86, 8252.16, 8252.16, 15841.21, 5645.07, -10045.94, 823.27, -338.3, 2355.49, 26907.24, 857.86, 5386.49, 1601.84, 6697.57, 3165.64, 1101.82, 564.67, -2603.41], :y => [48.85, 50.5, 54.6, 47.4, 50.1, 54.1, 48.3, 50.15, 46.8, 44.7, 50.35, 42, 47.35, 48.7, 48.85, 42.15, 53.15, 46.9, 47.55, 50.6, 49.2, 45.95, 51.55, 47.35, 50.7, 42.2, 43.9, 54.3, 48.7, 45.1, 46.8, 48.25, 47.4, 39.85, 45.35, 48.35, 44.6, 45.55, 48.25, 50.15, 51.6, 46.3, 54.45, 47.75, 48.55, 51.1, 50.7, 47.3, 44.65, 50.05, 48.55, 45.2, 41.7, 47.8, 45.5, 55.05, 51.35, 47.9, 46.05, 46.5, 45.95, 42.8, 41.2, 45.1, 40.15, 49.25, 49.7, 52.45, 50.8, 47.15, 44, 40.25, 44.2, 44.75, 46.9, 47.4, 48.2, 48.45, 35.7, 43, 49.05, 52.85, 54.3, 39.5, 47, 46.4, 47.35, 50.55, 48.95, 55.85, 47.65, 47.85, 45.4, 43.5, 46.25, 41.65, 48.65, 56.8, 41.95, 46.45, 58.9, 41.25, 50.5, 50.5, 45.65, 50.1, 42.75, 45.15, 40.25, 53.45, 44.8, 46.4, 47.4, 58.45, 50.05, 49.85, 50.45, 43.65, 48.45], :text => ["1 Bernard Street", "21 Sketty Road", "27 Crown Street", "3 Bernard Street", "4 Hazel Court", "42 King Edward Road", "8 Brynmill Crescent", "Ann St / Bigyn / Llys y Pobydd", "Arfryn", "Arwelfa", "Berwick Road", "Bolgoed Road", "Brecon / Radnor House", "Bryn Hawddgar", "Bryn Morlais", "Bryn Road", "Bryn Uchaf", "Brynheulog", "Buckingham Rd / Cefn Rd / Llanerch Rd", "Cae Nan", "Cae Rowlands Street", "Chemical Road / Waun Road", "Chiltern Cl / Station Rd", "Christina Street", "Clarence Terrace", "Clase Road / Tirpenry Street", "Clos Caer Elms", "Clos Crucywel", "Clos Gors Fawr", "Clos Sant Paul / Old Lodge", "Coldstream Street", "Conway Road", "Cwrt Tomos", "Denbigh Crescent", "Derwent Street", "Dolau Fan", "Druce Street", "Dythel Park", "Eaton House", "Elmhurst Crescent", "Felinfoel", "Felinfoel Road", "Ffordd Y Mynydd", "Francis Court", "Garnant Traditional Build", "Garngoch Terrace", "Gelli Fawr", "Gelli Street", "Glamorgan Street", "Gloucester Place", "Glyncollen Drive", "Grafog Street", "Hatfield Crt / Lancaster Crt", "Heol Fedw", "Heol Marlais", "Heol Pennant", "Heol Pentyla", "King Edward Road", "Lime Tree / Clos Yr Orsaf", "Llansamlet houses", "Llwyn Crwn Road", "Llwyn Derw", "Llwyn Yr Eos", "Llys Ael Y Bryn", "Llys Bethel Heol Gwili", "Llys Cennech", "Llys Lotwen", "Llys Pentre", "Lon Ty Cwm", "Lower Trostre Road", "Lucania Buildings", "Madoc Street", "Maes Gareth Edwards", "Maes Y Meillion", "Marcroft Road Flats", "Marine Street", "Mewslade Avenue", "Midland Place", "Millbrook Street", "Morriston traditional build", "Neath Road Flats", "Neptune Buildings", "Nevill Street", "New Dock Road / Stafford Street", "Parc Gwenfadog houses", "Parc Y Helig", "Pemberton Street", "Penrhiw Road", "Penrhyn Court", "Pentland Close", "Pen-y-morfa new", "Peter Cash House", "Pinewood Close / Ruggles Terrace", "Port Tennant Traditional Build", "Regency House", "Rhes Gwaith Tyn", "Robense House", "Sandfields Traditional House", "Sir John Morris House", "Solva Road", "Springfield Street", "St Helens Avenue", "St Helens Road", "St Helens Road", "St Nicholas Square", "St Teilo new / St Michaels Av", "St Thomas Traditional Build", "Stanley Street", "Sybil Street", "Tir Einon", "Traherne Court", "Trinity Terrace", "Ty Hermon", "Tyle Teg", "Upper Strand", "Victoria Avenue", "Wye Close / Brokesby", "Y Berllan", "Zion Row"] )) trace3 = scatter(Dict( :uid => "21a4b2", :mode => "markers", :name => "C", :type => "scatter", :x => [119.95, -2909.97, -1803.26, -2654.25, -2170.26, 6.46, -3673.19, -19760.55, -3771.03, -7511.76, -6391.14, -11683.67, -35401.13, 40516.17, -8515.82, -5984.27, 506.08, 570.48, -5673.02, 10442.72, -1738.54, -2236.65, -28793.68, -4554.05, -1343.21, 27730.93, 5313.04, -2115.97, -6413.48, -3957.07, -5631.22, -2094.64, -1269.5, -1348.09, -3028.07, -266.21, -5974.82, -11013.49, -2853.03, -2724.24, -2499.15, -3837.98, -5426.23, -1099.52, 1534.52, -6056.13, -3532.52, -10335.9, -901.8, -4453.8, -22175.71, -1456.14, 263.31, -11669.95, 367.85, -5835.72, 1204.44, -8756.47, -8251.05, -1130.96, -1264.71, -52.02, 2576.45, 586.11, -9776.67, -3439.59, -4558.02, -4220.03, 3306.18, -14802.76, -7443.98, -4808.66, -13830.37, -3625.83, -8635.35, -1545.63, -2916.82, -2874.1, -15470.15], :y => [44.15, 45.2, 35.6, 38.8, 39.2, 38.7, 34.4, 32.85, 34.8, 32.85, 31.3, 42.45, 40.6, 44.5, 32.1, 41.8, 36.05, 46.25, 23.5, 43.85, 40.65, 34.95, 38.75, 26.3, 40.5, 43.8, 46.1, 37.4, 33.25, 30.55, 36.3, 44.05, 41.45, 35, 39.85, 40.6, 34.95, 39.5, 38.5, 43.2, 40.85, 29.8, 35.25, 47.65, 43.3, 26.9, 45.4, 39.85, 51.1, 35.65, 36.9, 47.8, 46.3, 41.25, 45.9, 38.85, 39.35, 37.8, 37.25, 44.95, 40.4, 32.55, 44.1, 39.2, 39, 42.6, 38.4, 34.8, 42.85, 43.2, 45.4, 27.7, 34.9, 33.8, 41.15, 47.9, 44.45, 36.5, 28.9], :text => ["116 Port Tennant Road", "227 High Street", "69 Martin Street", "8-10 College Street", "Alexandra Road", "Annesley Street", "Bond Street", "Bridge Street", "Bryn Eglur", "Brynteg", "Caemawr houses", "Cawdor Park", "Chapmans", "Clos Yr Afon", "Clyndu Street", "Crown Street", "Crythan Road", "Cwmrhydyceirw Road", "Cwrt Cil Meri", "Cwrt Jiwbili", "Cwrt Y Aeron", "Dylan", "Exchange Court", "Fabian Way / Bevans Row", "Fairfield Court", "Ffynnon Las", "Florence Asher House", "Foxhole Road", "Gathen Close", "Gathen Terrace", "Gellionen Road", "Ger Y Ffrwd", "Gilbert Crescent", "Glandafen Road", "Glantawe Street Flats", "Havard Road", "Havelock House", "Hen Orsaf Yr Heddlu", "Heol Dulais", "Heol Frank Flats", "Heol Gwili", "Heol Llanelli", "High Street", "Hillbrook Close", "Is Y Llan", "Jersey Road", "Llanllienwen Road", "Llys Ariandy / Wind Street", "Lon Gwesyn", "Maes Yr Haf", "Neath Road", "Nelson Terrace", "Nixon Terrace", "Peniel Green Road", "Pennant Road", "Pentrechwyth Road", "Pen-y-morfa old", "Plasmarl traditional build", "Port Tennant Road Flats", "Prospect Place", "St Teilo Street flats", "St Teilo Street old", "Stone Street", "Talbot Road", "Tan Y Gelli", "Tir Ysgol", "Tregarne Close", "Trewyddfa Road", "Tumble", "Ty Beddoe", "Ty Myrtwydd", "Uplands Terrace", "Waun Wen Road", "West End", "West Street", "Westwinds Close", "Whitley Road", "Wychtree Street", "Ystalyfera flats"] )) data = [trace1, trace2, trace3] layout = Layout(Dict( :title => "PROFIT / QUALITY COMPARISON", :width => 1121, :xaxis => Dict( :type => "linear", :range => [-40483.61501288961, 53414.805012889614], :title => "PROFIT", :autorange => true ), :yaxis => Dict( :type => "linear", :range => [19.802115319003754, 80.19788468099625], :title => "QUALITY SCORE", :autorange => true ), :height => 514, :barmode => "group", :autosize => true )) p = plot(data, layout) response = post(p) plot_url = response.url