Elffuss BraidHub

kikocis/auto-code-rover public

main · 77.5 KiBRawPermalink
1{
2 "task_id": "matplotlib__matplotlib-23563",
3 "setup_info": {
4 "repo_path": "/home/haifeng/projects/reverse-prompt/SWE-bench/testbed/matplotlib__matplotlib/setup_matplotlib__matplotlib__3.5",
5 "env_name": "setup_matplotlib__matplotlib__3.5",
6 "pre_install": [],
7 "install": "python -m pip install -e .",
8 "test_cmd": "pytest --no-header -rA --tb=no -p no:cacheprovider lib/mpl_toolkits/tests/test_mplot3d.py"
9 },
10 "task_info": {
11 "instance_id": "matplotlib__matplotlib-23563",
12 "base_commit": "149a0398b391cfc4eddb5e659f50b3c66f32ea65",
13 "hints_text": "> x_s_0 = np.array(['my int number list'])\r\n\r\nPlease put some actual numbers in here. This example is not self-contained and cannot be run.\nThank you for your reply, here is the supplement:\n> > x_s_0 = np.array(['my int number list'])\r\n> \r\n> Please put some actual numbers in here. This example is not self-contained and cannot be run.\r\n\r\nThank you for your reply, here is the supplement:\r\n\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n#%% first run\r\nx_s_0 = np.array([93.7112568174671,108.494389857073,97.0666245255382,102.867552131133,101.908561142323,113.386818004841,103.607157682835,113.031077351221,90.5513737918711,99.5387780978244,87.9453402402526,102.478272045554,113.528741284099,109.963775835630,112.682593667100,102.186892980972,104.372143148149,109.904132067927,106.525635862339,110.190258227016,101.528394011013,101.272996794653,95.3105585553521,111.974155293592,97.2781797178892,111.493640918910,93.7583825395479,111.392852395913,107.486196693816,101.704674539529,107.614723702629,107.788312324468,104.905676344832,111.907910023426,107.600092540927,111.284492656058,105.343586373759,103.649750122835,91.0645304376027,115.038706492665,109.041084339790,107.495960673068,108.953913268617,103.364783270580,111.614563199763,111.964554542942,103.019469717046,111.298361732140,103.517531942681,100.007325197993,110.488906551371,113.488814376347,106.911117936350,112.119633819184,112.770694205454,100.515245229647,105.332689130825,113.365180428494,103.543105926575,103.382141782070,94.8531269471578,101.629000968912,107.148271346067,109.179612713936,113.979764917096,99.7810271482609,101.479289423795,110.870505417826,101.591046121142,92.0526355037734,108.389884162009,106.161876474674,112.143054192025,107.422487249273,101.995218239635,112.388419436076,110.872651253076,96.6946951253680,105.787678092911,111.595704476779,111.696691842985,112.787866750303,107.060604655217,107.842528705987,110.059751521752,102.118720180496,101.782288336447,102.873984185333,102.573433616326,87.6486594653360,98.2922295118188,108.190850458588,108.567494745079,102.911942215405,108.115944168772,100.346696274121,102.931687693508,103.579988834872,111.267380082874,106.728145099294,87.7582526489329,113.100076044908,100.671039001576,104.929856632868,114.621818004191,101.020016191046,109.434837383719,101.161898765961,107.592874883104,110.863053554707,111.650705975433,104.943133645576,113.098813202130,101.182130833400,101.784095173094,100.841168053600,107.171594119735,101.858941069534,102.185187776686,109.763958868748,111.267251188514,108.572302254592,102.330009317177,106.525777755464,101.648082618005,103.663538562512,80.5434365767384,107.029267367438,94.3551986444530,103.556338457393,109.894887900578,100.925436956541,108.639405588461,112.509422272465,109.960662172018,98.3005596261035,103.922930399970,92.2027094761718,108.439548438483,113.961517287255,111.091573882928,93.2943262698422,106.860935770613,100.165771065841,109.368631732714,110.031517833934,109.609384098735,110.097319640304,107.564407822454,101.281228555634,99.9204630788031,104.096934096485,107.989950487359,108.471181266604,110.539487279133,81.9835047599881,93.9896387768373,107.522454037838,109.079686307255,78.9960537110125,110.430689750552,101.136265453909,101.653352428203,101.334636845372,99.5891535330051,100.617784999946,104.827447665669,102.801966129642,102.055082323267,100.928702936585,104.484893540773,103.419178883774,101.582282593512,104.549963318703,105.921310374268,107.794208543242,113.230271640248,102.281741167177,105.231021995188,104.195494863853,113.070689815735,100.945935128105,96.3853458810228,109.701811831431,107.064347265837,101.809962040928,103.713433031401,112.810907864512,113.664592242193,107.635829219357,94.8612312572098,106.744985916694,100.387325925074,113.290735529078,114.199955121625,110.927422336136,106.035447960569,101.901106121191,101.277991974756,105.545178243330,114.631704134642,100.135242123379,112.469477140148,81.9528893053689,105.311140653857,108.119717014866,103.476378077476,111.140145692524,106.537652343538,108.801885653328,106.784900614924,102.184181725782,103.057599827474,104.240187884359,104.285377812584,100.102423724247,113.076455000910,106.853554653974,111.516975862421,104.293443021765,110.861797048312,106.132388626520,111.201965293784,104.553697990114,98.1092107690018,101.435274920617,113.882689469349,103.111655672338,102.080260769819,80.3884718672717,105.632572096492,106.720196875754,100.323810011093,111.289777927090,103.914768684272,100.546835551974,115.003158309586,110.778821084732,110.150132835435,110.778631159945,113.746713858050,107.255464319148,94.7705906989029,107.858602606713,102.319697043354,99.9519148573593,106.441471763837,105.873483043953,106.844445037039,113.230271640248,104.322822742354,109.803174088445,104.351014072058,102.956047084315,112.366486984739,95.7700865021076,107.426204445880,106.013436937658,98.3519680437837,101.346512814828,95.0319623555368,107.220565287657,108.296467272604,104.681892449599,113.813051918563,101.555075034087,113.072189158125,101.457813391412,113.793405420001,112.224762618297,98.0065725157598,108.735023416797,111.845052384526,109.681050131359,111.594419446658,105.656877240326,96.4345121239455,106.367494887096,100.603309187262,102.989501847040,110.101029391241,103.469610426468,99.7244644102246,108.502675756158,82.4613322231051,110.534798218605,86.5315477490321,108.253940357010,91.6609195372827,94.3535212194671,113.867191977689,103.679232328016,111.753832988811,109.274134983029,108.730809480685,101.761744729270,111.388016888196,112.516855030769,109.704376773726,115.145669614789,113.703415825736,106.307487648419,91.7268540115999,111.814654818274,96.9803499211703,108.216843210045,105.545899803366,108.877261414759,104.478625193474,104.119794771328,114.483548356419,109.039119010628,99.1890852932071,101.007773661211,110.735679790227,100.366624595147,102.926973101818,81.9223926397135,112.186208665970,105.006027415674,99.8314191868012,104.775272539949,114.924585513652,93.8975396967608,84.9254068708853,99.7405188457181,107.559979485011,105.889965593917,103.969296701005,100.062601477679,106.577001955816,104.600960980378,90.0031665168606,103.927239483683,97.0880174027733,98.2886531927487,104.431377317374,80.9255445294871,107.035477628172,107.910375742415,102.210101846980,106.537652343538,110.185753178913,112.252109563303,111.123501860055,111.775073446610,94.2629395376640,100.421500477437,84.4516958913569,102.226633849693,87.9684754563448,99.9634453973717,108.048647551552,109.430822953345,107.984308187164,108.668130332465,110.159460154136,104.870667273130,101.866875175348,114.199955121625,102.273542660754,104.166682899827,107.886389524442,102.432911501303,109.941601830009,110.613146643730,105.678505685059,112.836044573045,103.567979871375,105.250490223553,108.170237850634,103.590931218449,106.923147644244,106.965463406709,105.962510994295,100.588636926297,104.889479348711,113.167091870994,109.417431342022,111.199865154868,108.138101057649,103.408513330973,110.884144936383,105.577981212450,111.514218239096,105.296618998690,101.596637311270,114.395889560755,108.943798081225,94.3586014647227,111.307543881371,85.5258047661495,106.987183565509,109.998788104034,106.646573091450,78.3485169770689,111.508887373029,104.257305229574,111.595704476779,102.455746038857,100.011077158345,103.939615437792,107.372373933370,107.328264931886,100.304289665909,102.294727410539,112.676330955177,107.971983774778,105.721391473313,111.886567419361,79.4347605246743,113.865845733083,107.986305772924,106.054278664584,111.499558267650,96.4459622563839,108.241349665354,104.183403777393,112.912271088325,87.7582526489329,105.723973263752,113.863037276699,112.166858461573,104.299540189683,108.033088201723,97.6654393593677,105.724116142638,110.651718857709,112.927498361777,104.667429238875,101.010010916108,107.165515482762,102.053009422995,108.794510961220,104.616774516000,103.601420002713,106.387237208604,112.160998761796,109.640741719075,106.843156808321,98.0508259847073,105.855037841969,105.241764661101,109.102641423299,108.637122948404,100.320745506753,112.659077325991,105.732708777644,113.424501608769,107.517478972578,111.378329046336,110.994162161850,107.583918372327,98.8902185241936,113.086086646470,103.930979466431,112.188975256197,101.465251607966,108.718622711782,103.244004374293,104.441004071758,100.570040672206,101.431114979306,104.171900288854,101.234579658263,111.558169453596,99.5263582741235,103.605591606757,87.8748084913069,111.408509507347,113.017080482018,105.568232424155,82.0809536425391,104.597066483479,101.760003079602,101.683558580664,92.4987214079358,111.136362458019,110.857048082597,114.630494811780,111.203934569710,105.455100066584,99.4791257047580,101.759206812465,109.619205940937,109.032858268740,102.969240333046,101.347529148345,107.574833885062,112.754920387291,107.226853469508,111.510955460714,107.703485346648,106.670698272599,104.157654416195,106.941842673027,105.943431186335,88.7560447929532,107.463463207220,106.314797594265])\r\nx_e_0 = np.array([-90.0603386733250,-14.9916664348005,-73.0217990050363,-43.5647189708401,-48.4344701951478,9.85205810528046,-39.8090058484782,8.04560892722081,-106.106208146666,-60.4682160978098,-119.339632888561,-45.5414812089317,10.5727437748929,-7.53013212264324,6.27601060231481,-47.0211025745560,-35.9244136575638,-7.83300286302088,-24.9889889207052,-6.38005572400753,-50.3649568991307,-51.6618626277169,-81.9390928149445,2.67856424777433,-71.9475228450093,0.238514766901758,-89.8210345031326,-0.273288825610081,-20.1112660435519,-49.4698052975211,-19.4586065651753,-18.5771244515905,-33.2151348759370,2.34217111242538,-19.5329035277578,-0.823539017718218,-30.9914300399302,-39.5927216609741,-103.500401384172,18.2403392047510,-12.2155547115427,-20.0616846079883,-12.6582089549359,-41.0397818459483,0.852557476484250,2.62981168619747,-42.7932822643199,-0.753111921927015,-40.2641248881101,-58.0889363743152,-4.86352109528652,10.3699951462058,-23.0315129654893,3.41730343966901,6.72338467518648,-55.5097211107111,-31.0467661825443,9.74218260578816,-40.1342603316839,-40.9516354154120,-84.2619281283439,-49.8540752932321,-21.8272491915956,-11.5121083523286,12.8630394237655,-59.2380766869966,-50.6143097361371,-2.92576404772373,-50.0468098116534,-98.4828090273376,-15.5223458076219,-26.8361571882953,3.53623197043514,-20.4347822696467,-47.9944259083371,4.78219539612066,-2.91486750754908,-74.9104545533864,-28.7363346133016,0.756792979825974,1.26960629711252,6.81058676809435,-22.2724201891087,-18.3018139498646,-7.04276809060565,-47.3672836987299,-49.0756828427992,-43.5320570332654,-45.0582512503760,-120.846176311530,-66.7981832963423,-16.5330379123697,-14.6204401959495,-43.3393063551335,-16.9134116601867,-56.3656118251256,-43.2390389206213,-39.9469691163014,-0.910436574823180,-23.9606480748531,-120.289662698551,8.39598393280433,-54.7186011518751,-33.0923474997853,16.1233816411912,-52.9464968093922,-10.2160788143573,-52.2260178362158,-19.5695547564233,-2.96360456965756,1.03609030225736,-33.0249268987124,8.38957122378481,-52.1232795036046,-49.0665077357568,-53.8546867157153,-21.7088162689180,-48.6864406651847,-47.0297615929978,-8.54480163514626,-0.911091099711996,-14.5960276877909,-46.2943585680070,-24.9882683881577,-49.7571787789635,-39.5227040364311,-156.926460969511,-22.4315507725145,-86.7904054446129,-40.0670656094142,-7.87994469645629,-53.4267696674247,-14.2552773094490,5.39664716629163,-7.54594329017679,-66.7558830195829,-38.2055136428026,-97.7207341805968,-15.2701508715031,12.7703780548914,-1.80317953843449,-92.1775098130307,-23.2863377405814,-57.2843490862772,-10.5522707638126,-7.18613860964398,-9.32973150862806,-6.85199738113356,-19.7141103414825,-51.6200617885192,-58.5300217611495,-37.3219237821799,-17.5532069152816,-15.1095195357863,-4.60667242431627,-149.613802268553,-88.6467165399730,-19.9271514402843,-12.0195341226982,-164.784063066677,-5.15914570528766,-52.3561836607202,-49.7304187103495,-51.3488547726326,-60.2124099014961,-54.9890246935601,-33.6123796994818,-43.8977643433044,-47.6904364048257,-53.4101850378466,-35.3518677536598,-40.7635612067176,-50.0913109591104,-35.0214437617381,-28.0577505876546,-18.5471834834985,9.05711648483575,-46.5394639811929,-31.5630313654421,-36.8214327211007,8.24676081479488,-53.3226800594548,-76.4813283978389,-8.86038396552657,-22.2534152319584,-48.9351559162179,-39.2693401844282,6.92758942551295,11.2625942294016,-19.3514328616409,-84.2207744842966,-23.8751304921970,-56.1592946701350,9.36415179600373,13.9811641304591,-2.63674023430347,-27.4781605215199,-48.4723267534535,-51.6364971292885,-29.9677475808595,16.1735833599049,-57.4393748963876,5.19380599335480,-149.769267386948,-31.1561892358585,-16.8942531674626,-40.4731040003309,-1.55653214340541,-24.9279692920416,-13.4302043900541,-23.6724438633979,-47.0348703142230,-42.5996577630416,-36.5944817967765,-36.3650075776587,-57.6060265554933,8.27603639495359,-23.3238190122604,0.357009487980676,-36.3240524876265,-2.96998510256006,-26.9858963269544,-1.24261253161316,-35.0024791198516,-67.7275515149214,-50.8378151530155,12.3700908079463,-42.3251624656094,-47.5625803849521,-157.713370953500,-29.5239620516954,-24.0010091124130,-56.4818281490529,-0.796700439069596,-38.2469587924189,-55.3493056191992,18.0598257170404,-3.39133661154027,-6.58381225254215,-3.39230104861396,11.6796073651148,-21.2829238350600,-84.6810467652012,-18.2201907660659,-46.3467242405284,-58.3703097941779,-25.4163737726005,-28.3006175207900,-23.3700775993989,9.05711648483575,-36.1748624201735,-8.34566695467896,-36.0317069954170,-43.1153420615371,4.67082252296912,-79.6056123052976,-20.4159063647272,-27.5899323807152,-66.4948313435411,-51.2885486618626,-83.3538028601563,-21.4601409343994,-15.9967162833176,-34.3515083252244,12.0164716893596,-50.2294708035381,8.25437446760793,-50.7233649162273,11.9167068724409,3.95114693159597,-68.2487480279416,-13.7697304773736,2.02298035092325,-8.96581176987750,0.750267603594253,-29.4005406584565,-76.2316624734861,-25.7920279656912,-55.0625327946394,-42.9454589514342,-6.83315928527946,-40.5074700967436,-59.5253019748419,-14.9495906825915,-147.187396910555,-4.63048344914577,-126.518863762854,-16.2126677382325,-100.471940655952,-86.7989233999160,12.2913946263705,-39.4430111772979,1.55976873668861,-11.0321247643596,-13.7911288229037,-49.1800031725725,-0.297843508499014,5.43439067407465,-8.84735920197086,18.7834973793298,11.4597401835328,-26.0967444097675,-100.137125740299,1.86862166851904,-73.4599009946786,-16.4010468564466,-29.9640835027698,-13.0474466678254,-35.3836983884551,-37.2058373949242,15.4212490931509,-12.2255346427481,-62.2439543302707,-53.0086643118486,-3.61040787934623,-56.2644159152080,-43.2629795925569,-149.924129295605,3.75537016337059,-32.7055526631766,-58.9821861789103,-33.8773247149374,17.6608334703322,-89.1143951867934,-134.674838739706,-59.4437776353936,-19.7365974158472,-28.2169192183017,-37.9700658087055,-57.8082437152396,-24.7281521667437,-34.7624779025439,-108.890001821274,-38.1836321382516,-72.9131660863509,-66.8163438258708,-35.6236228561157,-154.986118784416,-22.4000151009942,-17.9572870538180,-46.9032480743782,-24.9279692920416,-6.40293233470499,4.09001457527491,-1.64104943761440,1.66762767027751,-87.2588967062428,-55.9857564720182,-137.080340615576,-46.8192986510895,-119.222152382275,-58.3117577723162,-17.2551435303773,-10.2364640707956,-17.5818584861528,-14.1094132096678,-6.53644817697747,-33.3929107588948,-48.6461513173682,13.9811641304591,-46.5810959539186,-36.9677397236971,-18.0790889432024,-45.7718218153355,-7.64273160718606,-4.23263055623480,-29.2907115292495,7.05523349994155,-40.0079505701134,-31.4641718036523,-16.6377086277235,-39.8914037497433,-22.9704261717361,-22.7555469513103,-27.8485340546960,-55.1370384590656,-33.2973831375060,8.73628994708037,-10.3044666030373,-1.25327702604133,-16.8008990943817,-40.8177208280414,-2.85650264384637,-29.8011742752748,0.343006291162553,-31.2299301248261,-50.0184177774350,14.9761181873480,-12.7095738235913,-86.7731259410846,-0.706485016170547,-131.626021368481,-22.6452520985529,-7.35234000685310,-24.3748703039516,-168.072251214114,0.315936181160950,-36.5075600073246,0.756792979825974,-45.6558681530919,-58.0698839392746,-38.1207871080273,-20.6892574256396,-20.9132427044268,-56.5809523597792,-46.4735199053368,6.24420858393350,-17.6444417877756,-29.0729377208468,2.23379348063503,-162.556312161957,12.2845584033062,-17.5717147561146,-27.3825383050416,0.268563032849940,-76.1735187608642,-16.2766032045948,-36.8828311948890,7.44231134576313,-120.289662698551,-29.0598274025080,12.2702970764794,3.65710992667184,-36.2930911008391,-17.3341538274100,-69.9810204114946,-29.0591018642679,-4.03676105543666,7.51963536068861,-34.4249524336208,-52.9973035431825,-21.7396835556652,-47.7009625815624,-13.4676530379978,-34.6821768513832,-39.8381417581222,-25.6917765603521,3.62735440185796,-9.17049767658733,-23.3766192180905,-68.0240291441343,-28.3942821599720,-31.5084801641374,-11.9029681635169,-14.2668685437161,-56.4973896860605,6.15659474518631,-29.0154685086625,10.0434152488911,-19.9524147956458,-0.347038318782282,-2.29783574846880,-19.6150358712924,-63.7615982198273,8.32494584071945,-38.1646405254197,3.76941889407181,-50.6855936914795,-13.8530131716408,-41.6530964494514,-35.5747382477176,-55.2314701400548,-50.8589393132298,-36.9412458495090,-51.8569446453310,0.566190328464799,-60.5312838975895,-39.8169583746102,-119.697792740727,-0.193782095658378,7.97453289863228,-29.8506785712374,-149.118957352754,-34.7822541374255,-49.1888472604777,-49.5770320261708,-96.2175871396584,-1.57574338842906,-2.99410032561643,16.1674424247351,-1.23261255876321,-30.4251640911401,-60.7711306377347,-49.1928907008345,-9.27985624530763,-12.2573266573022,-43.0483468135016,-51.2833877255799,-19.6611668501000,6.64328530907723,-21.4282095798581,0.326437919605411,-19.0078754011959,-24.2523627602837,-37.0135863163458,-22.8754929133773,-27.9454212197021,-115.222879411074,-20.2267065695564,-26.0596245430043])\r\ny_s_0 = x_s_0.copy()\r\ny_e_0 = x_e_0.copy()\r\nz_s_0 = x_s_0.copy()\r\nz_e_0 = x_e_0.copy()\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\nax.view_init(elev=90, azim=0)\r\nax.set_zlim3d(-10, 10)\r\nclr_list = 'r-'\r\n\r\nfor n in range(np.size(z_s_0, axis=0)):\r\nax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n[int(y_s_0[n]), int(y_e_0[n])],\r\n[int(z_s_0[n]), int(z_e_0[n])], clr_list)\r\n\r\nplt.xlabel('x')\r\nplt.ylabel('y')\r\nplt.title('90-0')\r\nplt.show()\r\n\r\n#%% then run\r\nx_s_0 = np.array([93.7112568174671,108.494389857073,97.0666245255382,102.867552131133,101.908561142323,113.386818004841,103.607157682835,113.031077351221,90.5513737918711,99.5387780978244,87.9453402402526,102.478272045554,113.528741284099,109.963775835630,112.682593667100,102.186892980972,104.372143148149,109.904132067927,106.525635862339,110.190258227016,101.528394011013,101.272996794653,95.3105585553521,111.974155293592,97.2781797178892,111.493640918910,93.7583825395479,111.392852395913,107.486196693816,101.704674539529,107.614723702629,107.788312324468,104.905676344832,111.907910023426,107.600092540927,111.284492656058,105.343586373759,103.649750122835,91.0645304376027,115.038706492665,109.041084339790,107.495960673068,108.953913268617,103.364783270580,111.614563199763,111.964554542942,103.019469717046,111.298361732140,103.517531942681,100.007325197993,110.488906551371,113.488814376347,106.911117936350,112.119633819184,112.770694205454,100.515245229647,105.332689130825,113.365180428494,103.543105926575,103.382141782070,94.8531269471578,101.629000968912,107.148271346067,109.179612713936,113.979764917096,99.7810271482609,101.479289423795,110.870505417826,101.591046121142,92.0526355037734,108.389884162009,106.161876474674,112.143054192025,107.422487249273,101.995218239635,112.388419436076,110.872651253076,96.6946951253680,105.787678092911,111.595704476779,111.696691842985,112.787866750303,107.060604655217,107.842528705987,110.059751521752,102.118720180496,101.782288336447,102.873984185333,102.573433616326,87.6486594653360,98.2922295118188,108.190850458588,108.567494745079,102.911942215405,108.115944168772,100.346696274121,102.931687693508,103.579988834872,111.267380082874,106.728145099294,87.7582526489329,113.100076044908,100.671039001576,104.929856632868,114.621818004191,101.020016191046,109.434837383719,101.161898765961,107.592874883104,110.863053554707,111.650705975433,104.943133645576,113.098813202130,101.182130833400,101.784095173094,100.841168053600,107.171594119735,101.858941069534,102.185187776686,109.763958868748,111.267251188514,108.572302254592,102.330009317177,106.525777755464,101.648082618005,103.663538562512,80.5434365767384,107.029267367438,94.3551986444530,103.556338457393,109.894887900578,100.925436956541,108.639405588461,112.509422272465,109.960662172018,98.3005596261035,103.922930399970,92.2027094761718,108.439548438483,113.961517287255,111.091573882928,93.2943262698422,106.860935770613,100.165771065841,109.368631732714,110.031517833934,109.609384098735,110.097319640304,107.564407822454,101.281228555634,99.9204630788031,104.096934096485,107.989950487359,108.471181266604,110.539487279133,81.9835047599881,93.9896387768373,107.522454037838,109.079686307255,78.9960537110125,110.430689750552,101.136265453909,101.653352428203,101.334636845372,99.5891535330051,100.617784999946,104.827447665669,102.801966129642,102.055082323267,100.928702936585,104.484893540773,103.419178883774,101.582282593512,104.549963318703,105.921310374268,107.794208543242,113.230271640248,102.281741167177,105.231021995188,104.195494863853,113.070689815735,100.945935128105,96.3853458810228,109.701811831431,107.064347265837,101.809962040928,103.713433031401,112.810907864512,113.664592242193,107.635829219357,94.8612312572098,106.744985916694,100.387325925074,113.290735529078,114.199955121625,110.927422336136,106.035447960569,101.901106121191,101.277991974756,105.545178243330,114.631704134642,100.135242123379,112.469477140148,81.9528893053689,105.311140653857,108.119717014866,103.476378077476,111.140145692524,106.537652343538,108.801885653328,106.784900614924,102.184181725782,103.057599827474,104.240187884359,104.285377812584,100.102423724247,113.076455000910,106.853554653974,111.516975862421,104.293443021765,110.861797048312,106.132388626520,111.201965293784,104.553697990114,98.1092107690018,101.435274920617,113.882689469349,103.111655672338,102.080260769819,80.3884718672717,105.632572096492,106.720196875754,100.323810011093,111.289777927090,103.914768684272,100.546835551974,115.003158309586,110.778821084732,110.150132835435,110.778631159945,113.746713858050,107.255464319148,94.7705906989029,107.858602606713,102.319697043354,99.9519148573593,106.441471763837,105.873483043953,106.844445037039,113.230271640248,104.322822742354,109.803174088445,104.351014072058,102.956047084315,112.366486984739,95.7700865021076,107.426204445880,106.013436937658,98.3519680437837,101.346512814828,95.0319623555368,107.220565287657,108.296467272604,104.681892449599,113.813051918563,101.555075034087,113.072189158125,101.457813391412,113.793405420001,112.224762618297,98.0065725157598,108.735023416797,111.845052384526,109.681050131359,111.594419446658,105.656877240326,96.4345121239455,106.367494887096,100.603309187262,102.989501847040,110.101029391241,103.469610426468,99.7244644102246,108.502675756158,82.4613322231051,110.534798218605,86.5315477490321,108.253940357010,91.6609195372827,94.3535212194671,113.867191977689,103.679232328016,111.753832988811,109.274134983029,108.730809480685,101.761744729270,111.388016888196,112.516855030769,109.704376773726,115.145669614789,113.703415825736,106.307487648419,91.7268540115999,111.814654818274,96.9803499211703,108.216843210045,105.545899803366,108.877261414759,104.478625193474,104.119794771328,114.483548356419,109.039119010628,99.1890852932071,101.007773661211,110.735679790227,100.366624595147,102.926973101818,81.9223926397135,112.186208665970,105.006027415674,99.8314191868012,104.775272539949,114.924585513652,93.8975396967608,84.9254068708853,99.7405188457181,107.559979485011,105.889965593917,103.969296701005,100.062601477679,106.577001955816,104.600960980378,90.0031665168606,103.927239483683,97.0880174027733,98.2886531927487,104.431377317374,80.9255445294871,107.035477628172,107.910375742415,102.210101846980,106.537652343538,110.185753178913,112.252109563303,111.123501860055,111.775073446610,94.2629395376640,100.421500477437,84.4516958913569,102.226633849693,87.9684754563448,99.9634453973717,108.048647551552,109.430822953345,107.984308187164,108.668130332465,110.159460154136,104.870667273130,101.866875175348,114.199955121625,102.273542660754,104.166682899827,107.886389524442,102.432911501303,109.941601830009,110.613146643730,105.678505685059,112.836044573045,103.567979871375,105.250490223553,108.170237850634,103.590931218449,106.923147644244,106.965463406709,105.962510994295,100.588636926297,104.889479348711,113.167091870994,109.417431342022,111.199865154868,108.138101057649,103.408513330973,110.884144936383,105.577981212450,111.514218239096,105.296618998690,101.596637311270,114.395889560755,108.943798081225,94.3586014647227,111.307543881371,85.5258047661495,106.987183565509,109.998788104034,106.646573091450,78.3485169770689,111.508887373029,104.257305229574,111.595704476779,102.455746038857,100.011077158345,103.939615437792,107.372373933370,107.328264931886,100.304289665909,102.294727410539,112.676330955177,107.971983774778,105.721391473313,111.886567419361,79.4347605246743,113.865845733083,107.986305772924,106.054278664584,111.499558267650,96.4459622563839,108.241349665354,104.183403777393,112.912271088325,87.7582526489329,105.723973263752,113.863037276699,112.166858461573,104.299540189683,108.033088201723,97.6654393593677,105.724116142638,110.651718857709,112.927498361777,104.667429238875,101.010010916108,107.165515482762,102.053009422995,108.794510961220,104.616774516000,103.601420002713,106.387237208604,112.160998761796,109.640741719075,106.843156808321,98.0508259847073,105.855037841969,105.241764661101,109.102641423299,108.637122948404,100.320745506753,112.659077325991,105.732708777644,113.424501608769,107.517478972578,111.378329046336,110.994162161850,107.583918372327,98.8902185241936,113.086086646470,103.930979466431,112.188975256197,101.465251607966,108.718622711782,103.244004374293,104.441004071758,100.570040672206,101.431114979306,104.171900288854,101.234579658263,111.558169453596,99.5263582741235,103.605591606757,87.8748084913069,111.408509507347,113.017080482018,105.568232424155,82.0809536425391,104.597066483479,101.760003079602,101.683558580664,92.4987214079358,111.136362458019,110.857048082597,114.630494811780,111.203934569710,105.455100066584,99.4791257047580,101.759206812465,109.619205940937,109.032858268740,102.969240333046,101.347529148345,107.574833885062,112.754920387291,107.226853469508,111.510955460714,107.703485346648,106.670698272599,104.157654416195,106.941842673027,105.943431186335,88.7560447929532,107.463463207220,106.314797594265])\r\nx_e_0 = np.array([-90.0603386733250,-14.9916664348005,-73.0217990050363,-43.5647189708401,-48.4344701951478,9.85205810528046,-39.8090058484782,8.04560892722081,-106.106208146666,-60.4682160978098,-119.339632888561,-45.5414812089317,10.5727437748929,-7.53013212264324,6.27601060231481,-47.0211025745560,-35.9244136575638,-7.83300286302088,-24.9889889207052,-6.38005572400753,-50.3649568991307,-51.6618626277169,-81.9390928149445,2.67856424777433,-71.9475228450093,0.238514766901758,-89.8210345031326,-0.273288825610081,-20.1112660435519,-49.4698052975211,-19.4586065651753,-18.5771244515905,-33.2151348759370,2.34217111242538,-19.5329035277578,-0.823539017718218,-30.9914300399302,-39.5927216609741,-103.500401384172,18.2403392047510,-12.2155547115427,-20.0616846079883,-12.6582089549359,-41.0397818459483,0.852557476484250,2.62981168619747,-42.7932822643199,-0.753111921927015,-40.2641248881101,-58.0889363743152,-4.86352109528652,10.3699951462058,-23.0315129654893,3.41730343966901,6.72338467518648,-55.5097211107111,-31.0467661825443,9.74218260578816,-40.1342603316839,-40.9516354154120,-84.2619281283439,-49.8540752932321,-21.8272491915956,-11.5121083523286,12.8630394237655,-59.2380766869966,-50.6143097361371,-2.92576404772373,-50.0468098116534,-98.4828090273376,-15.5223458076219,-26.8361571882953,3.53623197043514,-20.4347822696467,-47.9944259083371,4.78219539612066,-2.91486750754908,-74.9104545533864,-28.7363346133016,0.756792979825974,1.26960629711252,6.81058676809435,-22.2724201891087,-18.3018139498646,-7.04276809060565,-47.3672836987299,-49.0756828427992,-43.5320570332654,-45.0582512503760,-120.846176311530,-66.7981832963423,-16.5330379123697,-14.6204401959495,-43.3393063551335,-16.9134116601867,-56.3656118251256,-43.2390389206213,-39.9469691163014,-0.910436574823180,-23.9606480748531,-120.289662698551,8.39598393280433,-54.7186011518751,-33.0923474997853,16.1233816411912,-52.9464968093922,-10.2160788143573,-52.2260178362158,-19.5695547564233,-2.96360456965756,1.03609030225736,-33.0249268987124,8.38957122378481,-52.1232795036046,-49.0665077357568,-53.8546867157153,-21.7088162689180,-48.6864406651847,-47.0297615929978,-8.54480163514626,-0.911091099711996,-14.5960276877909,-46.2943585680070,-24.9882683881577,-49.7571787789635,-39.5227040364311,-156.926460969511,-22.4315507725145,-86.7904054446129,-40.0670656094142,-7.87994469645629,-53.4267696674247,-14.2552773094490,5.39664716629163,-7.54594329017679,-66.7558830195829,-38.2055136428026,-97.7207341805968,-15.2701508715031,12.7703780548914,-1.80317953843449,-92.1775098130307,-23.2863377405814,-57.2843490862772,-10.5522707638126,-7.18613860964398,-9.32973150862806,-6.85199738113356,-19.7141103414825,-51.6200617885192,-58.5300217611495,-37.3219237821799,-17.5532069152816,-15.1095195357863,-4.60667242431627,-149.613802268553,-88.6467165399730,-19.9271514402843,-12.0195341226982,-164.784063066677,-5.15914570528766,-52.3561836607202,-49.7304187103495,-51.3488547726326,-60.2124099014961,-54.9890246935601,-33.6123796994818,-43.8977643433044,-47.6904364048257,-53.4101850378466,-35.3518677536598,-40.7635612067176,-50.0913109591104,-35.0214437617381,-28.0577505876546,-18.5471834834985,9.05711648483575,-46.5394639811929,-31.5630313654421,-36.8214327211007,8.24676081479488,-53.3226800594548,-76.4813283978389,-8.86038396552657,-22.2534152319584,-48.9351559162179,-39.2693401844282,6.92758942551295,11.2625942294016,-19.3514328616409,-84.2207744842966,-23.8751304921970,-56.1592946701350,9.36415179600373,13.9811641304591,-2.63674023430347,-27.4781605215199,-48.4723267534535,-51.6364971292885,-29.9677475808595,16.1735833599049,-57.4393748963876,5.19380599335480,-149.769267386948,-31.1561892358585,-16.8942531674626,-40.4731040003309,-1.55653214340541,-24.9279692920416,-13.4302043900541,-23.6724438633979,-47.0348703142230,-42.5996577630416,-36.5944817967765,-36.3650075776587,-57.6060265554933,8.27603639495359,-23.3238190122604,0.357009487980676,-36.3240524876265,-2.96998510256006,-26.9858963269544,-1.24261253161316,-35.0024791198516,-67.7275515149214,-50.8378151530155,12.3700908079463,-42.3251624656094,-47.5625803849521,-157.713370953500,-29.5239620516954,-24.0010091124130,-56.4818281490529,-0.796700439069596,-38.2469587924189,-55.3493056191992,18.0598257170404,-3.39133661154027,-6.58381225254215,-3.39230104861396,11.6796073651148,-21.2829238350600,-84.6810467652012,-18.2201907660659,-46.3467242405284,-58.3703097941779,-25.4163737726005,-28.3006175207900,-23.3700775993989,9.05711648483575,-36.1748624201735,-8.34566695467896,-36.0317069954170,-43.1153420615371,4.67082252296912,-79.6056123052976,-20.4159063647272,-27.5899323807152,-66.4948313435411,-51.2885486618626,-83.3538028601563,-21.4601409343994,-15.9967162833176,-34.3515083252244,12.0164716893596,-50.2294708035381,8.25437446760793,-50.7233649162273,11.9167068724409,3.95114693159597,-68.2487480279416,-13.7697304773736,2.02298035092325,-8.96581176987750,0.750267603594253,-29.4005406584565,-76.2316624734861,-25.7920279656912,-55.0625327946394,-42.9454589514342,-6.83315928527946,-40.5074700967436,-59.5253019748419,-14.9495906825915,-147.187396910555,-4.63048344914577,-126.518863762854,-16.2126677382325,-100.471940655952,-86.7989233999160,12.2913946263705,-39.4430111772979,1.55976873668861,-11.0321247643596,-13.7911288229037,-49.1800031725725,-0.297843508499014,5.43439067407465,-8.84735920197086,18.7834973793298,11.4597401835328,-26.0967444097675,-100.137125740299,1.86862166851904,-73.4599009946786,-16.4010468564466,-29.9640835027698,-13.0474466678254,-35.3836983884551,-37.2058373949242,15.4212490931509,-12.2255346427481,-62.2439543302707,-53.0086643118486,-3.61040787934623,-56.2644159152080,-43.2629795925569,-149.924129295605,3.75537016337059,-32.7055526631766,-58.9821861789103,-33.8773247149374,17.6608334703322,-89.1143951867934,-134.674838739706,-59.4437776353936,-19.7365974158472,-28.2169192183017,-37.9700658087055,-57.8082437152396,-24.7281521667437,-34.7624779025439,-108.890001821274,-38.1836321382516,-72.9131660863509,-66.8163438258708,-35.6236228561157,-154.986118784416,-22.4000151009942,-17.9572870538180,-46.9032480743782,-24.9279692920416,-6.40293233470499,4.09001457527491,-1.64104943761440,1.66762767027751,-87.2588967062428,-55.9857564720182,-137.080340615576,-46.8192986510895,-119.222152382275,-58.3117577723162,-17.2551435303773,-10.2364640707956,-17.5818584861528,-14.1094132096678,-6.53644817697747,-33.3929107588948,-48.6461513173682,13.9811641304591,-46.5810959539186,-36.9677397236971,-18.0790889432024,-45.7718218153355,-7.64273160718606,-4.23263055623480,-29.2907115292495,7.05523349994155,-40.0079505701134,-31.4641718036523,-16.6377086277235,-39.8914037497433,-22.9704261717361,-22.7555469513103,-27.8485340546960,-55.1370384590656,-33.2973831375060,8.73628994708037,-10.3044666030373,-1.25327702604133,-16.8008990943817,-40.8177208280414,-2.85650264384637,-29.8011742752748,0.343006291162553,-31.2299301248261,-50.0184177774350,14.9761181873480,-12.7095738235913,-86.7731259410846,-0.706485016170547,-131.626021368481,-22.6452520985529,-7.35234000685310,-24.3748703039516,-168.072251214114,0.315936181160950,-36.5075600073246,0.756792979825974,-45.6558681530919,-58.0698839392746,-38.1207871080273,-20.6892574256396,-20.9132427044268,-56.5809523597792,-46.4735199053368,6.24420858393350,-17.6444417877756,-29.0729377208468,2.23379348063503,-162.556312161957,12.2845584033062,-17.5717147561146,-27.3825383050416,0.268563032849940,-76.1735187608642,-16.2766032045948,-36.8828311948890,7.44231134576313,-120.289662698551,-29.0598274025080,12.2702970764794,3.65710992667184,-36.2930911008391,-17.3341538274100,-69.9810204114946,-29.0591018642679,-4.03676105543666,7.51963536068861,-34.4249524336208,-52.9973035431825,-21.7396835556652,-47.7009625815624,-13.4676530379978,-34.6821768513832,-39.8381417581222,-25.6917765603521,3.62735440185796,-9.17049767658733,-23.3766192180905,-68.0240291441343,-28.3942821599720,-31.5084801641374,-11.9029681635169,-14.2668685437161,-56.4973896860605,6.15659474518631,-29.0154685086625,10.0434152488911,-19.9524147956458,-0.347038318782282,-2.29783574846880,-19.6150358712924,-63.7615982198273,8.32494584071945,-38.1646405254197,3.76941889407181,-50.6855936914795,-13.8530131716408,-41.6530964494514,-35.5747382477176,-55.2314701400548,-50.8589393132298,-36.9412458495090,-51.8569446453310,0.566190328464799,-60.5312838975895,-39.8169583746102,-119.697792740727,-0.193782095658378,7.97453289863228,-29.8506785712374,-149.118957352754,-34.7822541374255,-49.1888472604777,-49.5770320261708,-96.2175871396584,-1.57574338842906,-2.99410032561643,16.1674424247351,-1.23261255876321,-30.4251640911401,-60.7711306377347,-49.1928907008345,-9.27985624530763,-12.2573266573022,-43.0483468135016,-51.2833877255799,-19.6611668501000,6.64328530907723,-21.4282095798581,0.326437919605411,-19.0078754011959,-24.2523627602837,-37.0135863163458,-22.8754929133773,-27.9454212197021,-115.222879411074,-20.2267065695564,-26.0596245430043])\r\ny_s_0 = x_s_0.copy()\r\ny_e_0 = x_e_0.copy()\r\nz_s_0 = x_s_0.copy()\r\nz_e_0 = x_e_0.copy()\r\n\r\nx_s_0 = [x_s_0,x_s_0]\r\nx_e_0 = [x_e_0,x_e_0]\r\ny_s_0 = [y_s_0,y_s_0]\r\ny_e_0 = [y_e_0,y_e_0]\r\nz_s_0 = [z_s_0,z_s_0]\r\nz_e_0 = [z_e_0,z_e_0]\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\nax.view_init(elev=90, azim=0)\r\nax.set_zlim3d(-10, 10)\r\nclr_list = 'r-'\r\n\r\nfor n in range(np.size(z_s_0, axis=0)):\r\nax.plot([x_s_0[n], x_e_0[n]],\r\n[y_s_0[n], y_e_0[n]],\r\n[z_s_0[n], z_e_0[n]], clr_list)\r\n\r\nplt.xlabel('x')\r\nplt.ylabel('y')\r\nplt.title('90-0')\r\nplt.show()\r\n#%% then run (the same code as first run, but AttributeError: 'Line3D' object has no attribute '_verts3d')\r\nx_s_0 = np.array([93.7112568174671,108.494389857073,97.0666245255382,102.867552131133,101.908561142323,113.386818004841,103.607157682835,113.031077351221,90.5513737918711,99.5387780978244,87.9453402402526,102.478272045554,113.528741284099,109.963775835630,112.682593667100,102.186892980972,104.372143148149,109.904132067927,106.525635862339,110.190258227016,101.528394011013,101.272996794653,95.3105585553521,111.974155293592,97.2781797178892,111.493640918910,93.7583825395479,111.392852395913,107.486196693816,101.704674539529,107.614723702629,107.788312324468,104.905676344832,111.907910023426,107.600092540927,111.284492656058,105.343586373759,103.649750122835,91.0645304376027,115.038706492665,109.041084339790,107.495960673068,108.953913268617,103.364783270580,111.614563199763,111.964554542942,103.019469717046,111.298361732140,103.517531942681,100.007325197993,110.488906551371,113.488814376347,106.911117936350,112.119633819184,112.770694205454,100.515245229647,105.332689130825,113.365180428494,103.543105926575,103.382141782070,94.8531269471578,101.629000968912,107.148271346067,109.179612713936,113.979764917096,99.7810271482609,101.479289423795,110.870505417826,101.591046121142,92.0526355037734,108.389884162009,106.161876474674,112.143054192025,107.422487249273,101.995218239635,112.388419436076,110.872651253076,96.6946951253680,105.787678092911,111.595704476779,111.696691842985,112.787866750303,107.060604655217,107.842528705987,110.059751521752,102.118720180496,101.782288336447,102.873984185333,102.573433616326,87.6486594653360,98.2922295118188,108.190850458588,108.567494745079,102.911942215405,108.115944168772,100.346696274121,102.931687693508,103.579988834872,111.267380082874,106.728145099294,87.7582526489329,113.100076044908,100.671039001576,104.929856632868,114.621818004191,101.020016191046,109.434837383719,101.161898765961,107.592874883104,110.863053554707,111.650705975433,104.943133645576,113.098813202130,101.182130833400,101.784095173094,100.841168053600,107.171594119735,101.858941069534,102.185187776686,109.763958868748,111.267251188514,108.572302254592,102.330009317177,106.525777755464,101.648082618005,103.663538562512,80.5434365767384,107.029267367438,94.3551986444530,103.556338457393,109.894887900578,100.925436956541,108.639405588461,112.509422272465,109.960662172018,98.3005596261035,103.922930399970,92.2027094761718,108.439548438483,113.961517287255,111.091573882928,93.2943262698422,106.860935770613,100.165771065841,109.368631732714,110.031517833934,109.609384098735,110.097319640304,107.564407822454,101.281228555634,99.9204630788031,104.096934096485,107.989950487359,108.471181266604,110.539487279133,81.9835047599881,93.9896387768373,107.522454037838,109.079686307255,78.9960537110125,110.430689750552,101.136265453909,101.653352428203,101.334636845372,99.5891535330051,100.617784999946,104.827447665669,102.801966129642,102.055082323267,100.928702936585,104.484893540773,103.419178883774,101.582282593512,104.549963318703,105.921310374268,107.794208543242,113.230271640248,102.281741167177,105.231021995188,104.195494863853,113.070689815735,100.945935128105,96.3853458810228,109.701811831431,107.064347265837,101.809962040928,103.713433031401,112.810907864512,113.664592242193,107.635829219357,94.8612312572098,106.744985916694,100.387325925074,113.290735529078,114.199955121625,110.927422336136,106.035447960569,101.901106121191,101.277991974756,105.545178243330,114.631704134642,100.135242123379,112.469477140148,81.9528893053689,105.311140653857,108.119717014866,103.476378077476,111.140145692524,106.537652343538,108.801885653328,106.784900614924,102.184181725782,103.057599827474,104.240187884359,104.285377812584,100.102423724247,113.076455000910,106.853554653974,111.516975862421,104.293443021765,110.861797048312,106.132388626520,111.201965293784,104.553697990114,98.1092107690018,101.435274920617,113.882689469349,103.111655672338,102.080260769819,80.3884718672717,105.632572096492,106.720196875754,100.323810011093,111.289777927090,103.914768684272,100.546835551974,115.003158309586,110.778821084732,110.150132835435,110.778631159945,113.746713858050,107.255464319148,94.7705906989029,107.858602606713,102.319697043354,99.9519148573593,106.441471763837,105.873483043953,106.844445037039,113.230271640248,104.322822742354,109.803174088445,104.351014072058,102.956047084315,112.366486984739,95.7700865021076,107.426204445880,106.013436937658,98.3519680437837,101.346512814828,95.0319623555368,107.220565287657,108.296467272604,104.681892449599,113.813051918563,101.555075034087,113.072189158125,101.457813391412,113.793405420001,112.224762618297,98.0065725157598,108.735023416797,111.845052384526,109.681050131359,111.594419446658,105.656877240326,96.4345121239455,106.367494887096,100.603309187262,102.989501847040,110.101029391241,103.469610426468,99.7244644102246,108.502675756158,82.4613322231051,110.534798218605,86.5315477490321,108.253940357010,91.6609195372827,94.3535212194671,113.867191977689,103.679232328016,111.753832988811,109.274134983029,108.730809480685,101.761744729270,111.388016888196,112.516855030769,109.704376773726,115.145669614789,113.703415825736,106.307487648419,91.7268540115999,111.814654818274,96.9803499211703,108.216843210045,105.545899803366,108.877261414759,104.478625193474,104.119794771328,114.483548356419,109.039119010628,99.1890852932071,101.007773661211,110.735679790227,100.366624595147,102.926973101818,81.9223926397135,112.186208665970,105.006027415674,99.8314191868012,104.775272539949,114.924585513652,93.8975396967608,84.9254068708853,99.7405188457181,107.559979485011,105.889965593917,103.969296701005,100.062601477679,106.577001955816,104.600960980378,90.0031665168606,103.927239483683,97.0880174027733,98.2886531927487,104.431377317374,80.9255445294871,107.035477628172,107.910375742415,102.210101846980,106.537652343538,110.185753178913,112.252109563303,111.123501860055,111.775073446610,94.2629395376640,100.421500477437,84.4516958913569,102.226633849693,87.9684754563448,99.9634453973717,108.048647551552,109.430822953345,107.984308187164,108.668130332465,110.159460154136,104.870667273130,101.866875175348,114.199955121625,102.273542660754,104.166682899827,107.886389524442,102.432911501303,109.941601830009,110.613146643730,105.678505685059,112.836044573045,103.567979871375,105.250490223553,108.170237850634,103.590931218449,106.923147644244,106.965463406709,105.962510994295,100.588636926297,104.889479348711,113.167091870994,109.417431342022,111.199865154868,108.138101057649,103.408513330973,110.884144936383,105.577981212450,111.514218239096,105.296618998690,101.596637311270,114.395889560755,108.943798081225,94.3586014647227,111.307543881371,85.5258047661495,106.987183565509,109.998788104034,106.646573091450,78.3485169770689,111.508887373029,104.257305229574,111.595704476779,102.455746038857,100.011077158345,103.939615437792,107.372373933370,107.328264931886,100.304289665909,102.294727410539,112.676330955177,107.971983774778,105.721391473313,111.886567419361,79.4347605246743,113.865845733083,107.986305772924,106.054278664584,111.499558267650,96.4459622563839,108.241349665354,104.183403777393,112.912271088325,87.7582526489329,105.723973263752,113.863037276699,112.166858461573,104.299540189683,108.033088201723,97.6654393593677,105.724116142638,110.651718857709,112.927498361777,104.667429238875,101.010010916108,107.165515482762,102.053009422995,108.794510961220,104.616774516000,103.601420002713,106.387237208604,112.160998761796,109.640741719075,106.843156808321,98.0508259847073,105.855037841969,105.241764661101,109.102641423299,108.637122948404,100.320745506753,112.659077325991,105.732708777644,113.424501608769,107.517478972578,111.378329046336,110.994162161850,107.583918372327,98.8902185241936,113.086086646470,103.930979466431,112.188975256197,101.465251607966,108.718622711782,103.244004374293,104.441004071758,100.570040672206,101.431114979306,104.171900288854,101.234579658263,111.558169453596,99.5263582741235,103.605591606757,87.8748084913069,111.408509507347,113.017080482018,105.568232424155,82.0809536425391,104.597066483479,101.760003079602,101.683558580664,92.4987214079358,111.136362458019,110.857048082597,114.630494811780,111.203934569710,105.455100066584,99.4791257047580,101.759206812465,109.619205940937,109.032858268740,102.969240333046,101.347529148345,107.574833885062,112.754920387291,107.226853469508,111.510955460714,107.703485346648,106.670698272599,104.157654416195,106.941842673027,105.943431186335,88.7560447929532,107.463463207220,106.314797594265])\r\nx_e_0 = np.array([-90.0603386733250,-14.9916664348005,-73.0217990050363,-43.5647189708401,-48.4344701951478,9.85205810528046,-39.8090058484782,8.04560892722081,-106.106208146666,-60.4682160978098,-119.339632888561,-45.5414812089317,10.5727437748929,-7.53013212264324,6.27601060231481,-47.0211025745560,-35.9244136575638,-7.83300286302088,-24.9889889207052,-6.38005572400753,-50.3649568991307,-51.6618626277169,-81.9390928149445,2.67856424777433,-71.9475228450093,0.238514766901758,-89.8210345031326,-0.273288825610081,-20.1112660435519,-49.4698052975211,-19.4586065651753,-18.5771244515905,-33.2151348759370,2.34217111242538,-19.5329035277578,-0.823539017718218,-30.9914300399302,-39.5927216609741,-103.500401384172,18.2403392047510,-12.2155547115427,-20.0616846079883,-12.6582089549359,-41.0397818459483,0.852557476484250,2.62981168619747,-42.7932822643199,-0.753111921927015,-40.2641248881101,-58.0889363743152,-4.86352109528652,10.3699951462058,-23.0315129654893,3.41730343966901,6.72338467518648,-55.5097211107111,-31.0467661825443,9.74218260578816,-40.1342603316839,-40.9516354154120,-84.2619281283439,-49.8540752932321,-21.8272491915956,-11.5121083523286,12.8630394237655,-59.2380766869966,-50.6143097361371,-2.92576404772373,-50.0468098116534,-98.4828090273376,-15.5223458076219,-26.8361571882953,3.53623197043514,-20.4347822696467,-47.9944259083371,4.78219539612066,-2.91486750754908,-74.9104545533864,-28.7363346133016,0.756792979825974,1.26960629711252,6.81058676809435,-22.2724201891087,-18.3018139498646,-7.04276809060565,-47.3672836987299,-49.0756828427992,-43.5320570332654,-45.0582512503760,-120.846176311530,-66.7981832963423,-16.5330379123697,-14.6204401959495,-43.3393063551335,-16.9134116601867,-56.3656118251256,-43.2390389206213,-39.9469691163014,-0.910436574823180,-23.9606480748531,-120.289662698551,8.39598393280433,-54.7186011518751,-33.0923474997853,16.1233816411912,-52.9464968093922,-10.2160788143573,-52.2260178362158,-19.5695547564233,-2.96360456965756,1.03609030225736,-33.0249268987124,8.38957122378481,-52.1232795036046,-49.0665077357568,-53.8546867157153,-21.7088162689180,-48.6864406651847,-47.0297615929978,-8.54480163514626,-0.911091099711996,-14.5960276877909,-46.2943585680070,-24.9882683881577,-49.7571787789635,-39.5227040364311,-156.926460969511,-22.4315507725145,-86.7904054446129,-40.0670656094142,-7.87994469645629,-53.4267696674247,-14.2552773094490,5.39664716629163,-7.54594329017679,-66.7558830195829,-38.2055136428026,-97.7207341805968,-15.2701508715031,12.7703780548914,-1.80317953843449,-92.1775098130307,-23.2863377405814,-57.2843490862772,-10.5522707638126,-7.18613860964398,-9.32973150862806,-6.85199738113356,-19.7141103414825,-51.6200617885192,-58.5300217611495,-37.3219237821799,-17.5532069152816,-15.1095195357863,-4.60667242431627,-149.613802268553,-88.6467165399730,-19.9271514402843,-12.0195341226982,-164.784063066677,-5.15914570528766,-52.3561836607202,-49.7304187103495,-51.3488547726326,-60.2124099014961,-54.9890246935601,-33.6123796994818,-43.8977643433044,-47.6904364048257,-53.4101850378466,-35.3518677536598,-40.7635612067176,-50.0913109591104,-35.0214437617381,-28.0577505876546,-18.5471834834985,9.05711648483575,-46.5394639811929,-31.5630313654421,-36.8214327211007,8.24676081479488,-53.3226800594548,-76.4813283978389,-8.86038396552657,-22.2534152319584,-48.9351559162179,-39.2693401844282,6.92758942551295,11.2625942294016,-19.3514328616409,-84.2207744842966,-23.8751304921970,-56.1592946701350,9.36415179600373,13.9811641304591,-2.63674023430347,-27.4781605215199,-48.4723267534535,-51.6364971292885,-29.9677475808595,16.1735833599049,-57.4393748963876,5.19380599335480,-149.769267386948,-31.1561892358585,-16.8942531674626,-40.4731040003309,-1.55653214340541,-24.9279692920416,-13.4302043900541,-23.6724438633979,-47.0348703142230,-42.5996577630416,-36.5944817967765,-36.3650075776587,-57.6060265554933,8.27603639495359,-23.3238190122604,0.357009487980676,-36.3240524876265,-2.96998510256006,-26.9858963269544,-1.24261253161316,-35.0024791198516,-67.7275515149214,-50.8378151530155,12.3700908079463,-42.3251624656094,-47.5625803849521,-157.713370953500,-29.5239620516954,-24.0010091124130,-56.4818281490529,-0.796700439069596,-38.2469587924189,-55.3493056191992,18.0598257170404,-3.39133661154027,-6.58381225254215,-3.39230104861396,11.6796073651148,-21.2829238350600,-84.6810467652012,-18.2201907660659,-46.3467242405284,-58.3703097941779,-25.4163737726005,-28.3006175207900,-23.3700775993989,9.05711648483575,-36.1748624201735,-8.34566695467896,-36.0317069954170,-43.1153420615371,4.67082252296912,-79.6056123052976,-20.4159063647272,-27.5899323807152,-66.4948313435411,-51.2885486618626,-83.3538028601563,-21.4601409343994,-15.9967162833176,-34.3515083252244,12.0164716893596,-50.2294708035381,8.25437446760793,-50.7233649162273,11.9167068724409,3.95114693159597,-68.2487480279416,-13.7697304773736,2.02298035092325,-8.96581176987750,0.750267603594253,-29.4005406584565,-76.2316624734861,-25.7920279656912,-55.0625327946394,-42.9454589514342,-6.83315928527946,-40.5074700967436,-59.5253019748419,-14.9495906825915,-147.187396910555,-4.63048344914577,-126.518863762854,-16.2126677382325,-100.471940655952,-86.7989233999160,12.2913946263705,-39.4430111772979,1.55976873668861,-11.0321247643596,-13.7911288229037,-49.1800031725725,-0.297843508499014,5.43439067407465,-8.84735920197086,18.7834973793298,11.4597401835328,-26.0967444097675,-100.137125740299,1.86862166851904,-73.4599009946786,-16.4010468564466,-29.9640835027698,-13.0474466678254,-35.3836983884551,-37.2058373949242,15.4212490931509,-12.2255346427481,-62.2439543302707,-53.0086643118486,-3.61040787934623,-56.2644159152080,-43.2629795925569,-149.924129295605,3.75537016337059,-32.7055526631766,-58.9821861789103,-33.8773247149374,17.6608334703322,-89.1143951867934,-134.674838739706,-59.4437776353936,-19.7365974158472,-28.2169192183017,-37.9700658087055,-57.8082437152396,-24.7281521667437,-34.7624779025439,-108.890001821274,-38.1836321382516,-72.9131660863509,-66.8163438258708,-35.6236228561157,-154.986118784416,-22.4000151009942,-17.9572870538180,-46.9032480743782,-24.9279692920416,-6.40293233470499,4.09001457527491,-1.64104943761440,1.66762767027751,-87.2588967062428,-55.9857564720182,-137.080340615576,-46.8192986510895,-119.222152382275,-58.3117577723162,-17.2551435303773,-10.2364640707956,-17.5818584861528,-14.1094132096678,-6.53644817697747,-33.3929107588948,-48.6461513173682,13.9811641304591,-46.5810959539186,-36.9677397236971,-18.0790889432024,-45.7718218153355,-7.64273160718606,-4.23263055623480,-29.2907115292495,7.05523349994155,-40.0079505701134,-31.4641718036523,-16.6377086277235,-39.8914037497433,-22.9704261717361,-22.7555469513103,-27.8485340546960,-55.1370384590656,-33.2973831375060,8.73628994708037,-10.3044666030373,-1.25327702604133,-16.8008990943817,-40.8177208280414,-2.85650264384637,-29.8011742752748,0.343006291162553,-31.2299301248261,-50.0184177774350,14.9761181873480,-12.7095738235913,-86.7731259410846,-0.706485016170547,-131.626021368481,-22.6452520985529,-7.35234000685310,-24.3748703039516,-168.072251214114,0.315936181160950,-36.5075600073246,0.756792979825974,-45.6558681530919,-58.0698839392746,-38.1207871080273,-20.6892574256396,-20.9132427044268,-56.5809523597792,-46.4735199053368,6.24420858393350,-17.6444417877756,-29.0729377208468,2.23379348063503,-162.556312161957,12.2845584033062,-17.5717147561146,-27.3825383050416,0.268563032849940,-76.1735187608642,-16.2766032045948,-36.8828311948890,7.44231134576313,-120.289662698551,-29.0598274025080,12.2702970764794,3.65710992667184,-36.2930911008391,-17.3341538274100,-69.9810204114946,-29.0591018642679,-4.03676105543666,7.51963536068861,-34.4249524336208,-52.9973035431825,-21.7396835556652,-47.7009625815624,-13.4676530379978,-34.6821768513832,-39.8381417581222,-25.6917765603521,3.62735440185796,-9.17049767658733,-23.3766192180905,-68.0240291441343,-28.3942821599720,-31.5084801641374,-11.9029681635169,-14.2668685437161,-56.4973896860605,6.15659474518631,-29.0154685086625,10.0434152488911,-19.9524147956458,-0.347038318782282,-2.29783574846880,-19.6150358712924,-63.7615982198273,8.32494584071945,-38.1646405254197,3.76941889407181,-50.6855936914795,-13.8530131716408,-41.6530964494514,-35.5747382477176,-55.2314701400548,-50.8589393132298,-36.9412458495090,-51.8569446453310,0.566190328464799,-60.5312838975895,-39.8169583746102,-119.697792740727,-0.193782095658378,7.97453289863228,-29.8506785712374,-149.118957352754,-34.7822541374255,-49.1888472604777,-49.5770320261708,-96.2175871396584,-1.57574338842906,-2.99410032561643,16.1674424247351,-1.23261255876321,-30.4251640911401,-60.7711306377347,-49.1928907008345,-9.27985624530763,-12.2573266573022,-43.0483468135016,-51.2833877255799,-19.6611668501000,6.64328530907723,-21.4282095798581,0.326437919605411,-19.0078754011959,-24.2523627602837,-37.0135863163458,-22.8754929133773,-27.9454212197021,-115.222879411074,-20.2267065695564,-26.0596245430043])\r\ny_s_0 = x_s_0.copy()\r\ny_e_0 = x_e_0.copy()\r\nz_s_0 = x_s_0.copy()\r\nz_e_0 = x_e_0.copy()\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\nax.view_init(elev=90, azim=0)\r\nax.set_zlim3d(-10, 10)\r\nclr_list = 'r-'\r\n\r\nfor n in range(np.size(z_s_0, axis=0)):\r\nax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n[int(y_s_0[n]), int(y_e_0[n])],\r\n[int(z_s_0[n]), int(z_e_0[n])], clr_list)\r\n\r\nplt.xlabel('x')\r\nplt.ylabel('y')\r\nplt.title('90-0')\r\nplt.show()\nThis appears to be a minimum example running with current main (`projection` is no longer allowed to be passed to `gca`)\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nx_s_0 = 100*np.random.rand(100, 1)\r\nx_e_0 = 100*np.random.rand(100, 1)\r\ny_s_0 = 100*np.random.rand(100, 1)\r\ny_e_0 = 100*np.random.rand(100, 1)\r\nz_s_0 = 100*np.random.rand(100, 1)\r\nz_e_0 = 100*np.random.rand(100, 1)\r\n\r\nfig = plt.figure()\r\nax = fig.add_subplot(projection='3d')\r\n\r\nfor n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([x_s_0[n], x_e_0[n]],\r\n [y_s_0[n], y_e_0[n]],\r\n [z_s_0[n], z_e_0[n]])\r\nplt.show()\r\n\r\n# Doesn't happen with\r\nfor n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n [int(y_s_0[n]), int(y_e_0[n])],\r\n [int(z_s_0[n]), int(z_e_0[n])])\r\n# or\r\nfor n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([float(x_s_0[n]), float(x_e_0[n])],\r\n [float(y_s_0[n]), float(y_e_0[n])],\r\n [float(z_s_0[n]), float(z_e_0[n])])\r\n```\r\nso it seems like some parts doesn't like ndarray\r\n```\r\nIn [3]: type(x_e_0[5])\r\nOut[3]: numpy.ndarray\r\n```\nThe reason it is not set is here:\r\nhttps://github.com/matplotlib/matplotlib/blob/11a3e1b81747558d0e36c6d967cc61360e9853c6/lib/mpl_toolkits/mplot3d/art3d.py#L174\r\n\r\nwhich causes a first exception\r\n```\r\n File \"C:\\Users\\Oscar\\miniconda3\\lib\\site-packages\\numpy\\lib\\stride_tricks.py\", line 348, in _broadcast_to\r\n it = np.nditer(\r\n\r\nValueError: input operand has more dimensions than allowed by the axis remapping\r\n```\r\nas `zs` is a column vector rather than a row vector/list when there is no `int`/`float` casting involved.\n> The reason it is not set is here:\r\n> \r\n> https://github.com/matplotlib/matplotlib/blob/11a3e1b81747558d0e36c6d967cc61360e9853c6/lib/mpl_toolkits/mplot3d/art3d.py#L174\r\n> \r\n> which causes a first exception\r\n> \r\n> ```\r\n> File \"C:\\Users\\Oscar\\miniconda3\\lib\\site-packages\\numpy\\lib\\stride_tricks.py\", line 348, in _broadcast_to\r\n> it = np.nditer(\r\n> \r\n> ValueError: input operand has more dimensions than allowed by the axis remapping\r\n> ```\r\n> \r\n> as `zs` is a column vector rather than a row vector/list when there is no `int`/`float` casting involved.\r\n\r\nThank you for your reply. I know how the first exception happens, but `AttributeError: 'Line3D' object has no attribute '_verts3d'` still makes me confused. Here is the code to reproduce the error directly. Thanks a lot for your help.\r\n\r\n``` python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\n# raw code\r\nx_s_0 = 100*np.random.rand(100, 1).flatten()\r\nx_e_0 = 100*np.random.rand(100, 1).flatten()\r\ny_s_0 = 100*np.random.rand(100, 1).flatten()\r\ny_e_0 = 100*np.random.rand(100, 1).flatten()\r\nz_s_0 = 100*np.random.rand(100, 1).flatten()\r\nz_e_0 = 100*np.random.rand(100, 1).flatten()\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\nax.view_init(elev=90, azim=0)\r\nax.set_zlim3d(-10, 10)\r\nclr_list = 'r-'\r\n\r\nfor n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n [int(y_s_0[n]), int(y_e_0[n])],\r\n [int(z_s_0[n]), int(z_e_0[n])], clr_list)\r\n\r\nplt.xlabel('x')\r\nplt.ylabel('y')\r\nplt.title('90-0')\r\nplt.show()\r\n\r\ntry:\r\n # first error code: 'ValueError: input operand has more dimensions than allowed by the axis remapping'\r\n # here using 'try except' to let the error happen and skip to next part of the code\r\n x_s_0 = 100*np.random.rand(100, 1).flatten()\r\n x_e_0 = 100*np.random.rand(100, 1).flatten()\r\n y_s_0 = 100*np.random.rand(100, 1).flatten()\r\n y_e_0 = 100*np.random.rand(100, 1).flatten()\r\n z_s_0 = 100*np.random.rand(100, 1).flatten()\r\n z_e_0 = 100*np.random.rand(100, 1).flatten()\r\n\r\n x_s_0 = [x_s_0,x_s_0]\r\n x_e_0 = [x_e_0,x_e_0]\r\n y_s_0 = [y_s_0,y_s_0]\r\n y_e_0 = [y_e_0,y_e_0]\r\n z_s_0 = [z_s_0,z_s_0]\r\n z_e_0 = [z_e_0,z_e_0]\r\n\r\n fig = plt.figure()\r\n ax = fig.gca(projection='3d')\r\n ax.view_init(elev=90, azim=0)\r\n ax.set_zlim3d(-10, 10)\r\n clr_list = 'r-'\r\n\r\n for n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([x_s_0[n], x_e_0[n]],\r\n [y_s_0[n], y_e_0[n]],\r\n [z_s_0[n], z_e_0[n]], clr_list)\r\n\r\n plt.xlabel('x')\r\n plt.ylabel('y')\r\n plt.title('90-0')\r\n plt.show()\r\nexcept:\r\n\r\n # second error code: 'AttributeError: 'Line3D' object has no attribute '_verts3d''\r\n # the code is same as raw code, why would it get error?\r\n\r\n x_s_0 = 100*np.random.rand(100, 1).flatten()\r\n x_e_0 = 100*np.random.rand(100, 1).flatten()\r\n y_s_0 = 100*np.random.rand(100, 1).flatten()\r\n y_e_0 = 100*np.random.rand(100, 1).flatten()\r\n z_s_0 = 100*np.random.rand(100, 1).flatten()\r\n z_e_0 = 100*np.random.rand(100, 1).flatten()\r\n\r\n fig = plt.figure()\r\n ax = fig.gca(projection='3d')\r\n ax.view_init(elev=90, azim=0)\r\n ax.set_zlim3d(-10, 10)\r\n clr_list = 'r-'\r\n\r\n for n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n [int(y_s_0[n]), int(y_e_0[n])],\r\n [int(z_s_0[n]), int(z_e_0[n])], clr_list)\r\n\r\n plt.xlabel('x')\r\n plt.ylabel('y')\r\n plt.title('90-0')\r\n plt.show()\r\n```\nAs the first exception happens, the next row is not executed:\r\nhttps://github.com/matplotlib/matplotlib/blob/11a3e1b81747558d0e36c6d967cc61360e9853c6/lib/mpl_toolkits/mplot3d/art3d.py#L175\r\nSo `_verts3d` is not set to anything.\nThank you very much for your answer!\nI still think this is a bug though.",
14 "created_at": "2022-08-05T15:52:55Z",
15 "test_patch": "diff --git a/lib/mpl_toolkits/tests/test_mplot3d.py b/lib/mpl_toolkits/tests/test_mplot3d.py\n--- a/lib/mpl_toolkits/tests/test_mplot3d.py\n+++ b/lib/mpl_toolkits/tests/test_mplot3d.py\n@@ -1786,6 +1786,13 @@ def test_text_3d(fig_test, fig_ref):\n assert t3d.get_position_3d() == (0.5, 0.5, 1)\n \n \n+def test_draw_single_lines_from_Nx1():\n+ # Smoke test for GH#23459\n+ fig = plt.figure()\n+ ax = fig.add_subplot(projection='3d')\n+ ax.plot([[0], [1]], [[0], [1]], [[0], [1]])\n+\n+\n @check_figures_equal(extensions=[\"png\"])\n def test_pathpatch_3d(fig_test, fig_ref):\n ax = fig_ref.add_subplot(projection=\"3d\")\n",
16 "repo": "matplotlib/matplotlib",
17 "problem_statement": "[Bug]: 'Line3D' object has no attribute '_verts3d'\n### Bug summary\n\nI use matplotlib 3D to visualize some lines in 3D. When I first run the following code, the code can run right. But, if I give `x_s_0[n]` a numpy array, it will report the error 'input operand has more dimensions than allowed by the axis remapping'. The point is when next I give `x_s_0[n]` and other variables an int number, the AttributeError: 'Line3D' object has no attribute '_verts3d' will appear and can not be fixed whatever I change the variables or delete them. The error can be only fixed when I restart the kernel of ipython console. I don't know why it happens, so I come here for help.\n\n### Code for reproduction\n\n```python\nx_s_0 = np.array(['my int number list'])\r\nx_e_0 = np.array(['my int number list'])\r\ny_s_0 = np.array(['my int number list'])\r\ny_e_0 = np.array(['my int number list'])\r\nz_s_0 = np.array(['my int number list'])\r\nz_e_0 = np.array(['my int number list'])\r\n\r\nfig = plt.figure()\r\n ax = fig.gca(projection='3d')\r\n ax.view_init(elev=90, azim=0)\r\n ax.set_zlim3d(-10, 10)\r\n clr_list = 'r-'\r\n\r\n for n in range(np.size(z_s_0, axis=0)):\r\n ax.plot([int(x_s_0[n]), int(x_e_0[n])],\r\n [int(y_s_0[n]), int(y_e_0[n])],\r\n [int(z_s_0[n]), int(z_e_0[n])], clr_list)\r\n\r\n plt.xlabel('x')\r\n plt.ylabel('y')\r\n # ax.zlabel('z')\r\n plt.title('90-0')\r\n plt.show()\n```\n\n\n### Actual outcome\n\nTraceback (most recent call last):\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/IPython/core/interactiveshell.py\", line 3444, in run_code\r\n exec(code_obj, self.user_global_ns, self.user_ns)\r\n File \"<ipython-input-80-e04907066a16>\", line 20, in <module>\r\n plt.show()\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/pyplot.py\", line 368, in show\r\n return _backend_mod.show(*args, **kwargs)\r\n File \"/home/hanyaning/.pycharm_helpers/pycharm_matplotlib_backend/backend_interagg.py\", line 29, in __call__\r\n manager.show(**kwargs)\r\n File \"/home/hanyaning/.pycharm_helpers/pycharm_matplotlib_backend/backend_interagg.py\", line 112, in show\r\n self.canvas.show()\r\n File \"/home/hanyaning/.pycharm_helpers/pycharm_matplotlib_backend/backend_interagg.py\", line 68, in show\r\n FigureCanvasAgg.draw(self)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py\", line 436, in draw\r\n self.figure.draw(self.renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/artist.py\", line 73, in draw_wrapper\r\n result = draw(artist, renderer, *args, **kwargs)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/artist.py\", line 50, in draw_wrapper\r\n return draw(artist, renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/figure.py\", line 2803, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/image.py\", line 132, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/artist.py\", line 50, in draw_wrapper\r\n return draw(artist, renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/mpl_toolkits/mplot3d/axes3d.py\", line 469, in draw\r\n super().draw(renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/artist.py\", line 50, in draw_wrapper\r\n return draw(artist, renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/axes/_base.py\", line 3082, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/image.py\", line 132, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/matplotlib/artist.py\", line 50, in draw_wrapper\r\n return draw(artist, renderer)\r\n File \"/home/hanyaning/anaconda3/envs/SBeA/lib/python3.8/site-packages/mpl_toolkits/mplot3d/art3d.py\", line 215, in draw\r\n xs3d, ys3d, zs3d = self._verts3d\r\nAttributeError: 'Line3D' object has no attribute '_verts3d'\n\n### Expected outcome\n\nSome 3D lines\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nLocal: windows + pycharm, Remote: Ubuntu 20.04\n\n### Matplotlib Version\n\n3.5.0\n\n### Matplotlib Backend\n\nmodule://backend_interagg\n\n### Python version\n\n3.8.12\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip\n",
18 "version": "3.5",
19 "FAIL_TO_PASS": [
20 "lib/mpl_toolkits/tests/test_mplot3d.py::test_draw_single_lines_from_Nx1"
21 ],
22 "PASS_TO_PASS": [
23 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_alpha[png]",
24 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_calling_conventions",
25 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_edge_style[png]",
26 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_named_colors[png]",
27 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_rgb_data[png]",
28 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_simple[png]",
29 "lib/mpl_toolkits/tests/test_mplot3d.py::TestVoxels::test_xyz[png]",
30 "lib/mpl_toolkits/tests/test_mplot3d.py::test_add_collection3d_zs_array[png]",
31 "lib/mpl_toolkits/tests/test_mplot3d.py::test_add_collection3d_zs_scalar[png]",
32 "lib/mpl_toolkits/tests/test_mplot3d.py::test_aspects[png]",
33 "lib/mpl_toolkits/tests/test_mplot3d.py::test_autoscale",
34 "lib/mpl_toolkits/tests/test_mplot3d.py::test_ax3d_tickcolour",
35 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_cla[png]",
36 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_focal_length[png]",
37 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_focal_length_checks",
38 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_isometric[png]",
39 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_labelpad[png]",
40 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_ortho[png]",
41 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_repr",
42 "lib/mpl_toolkits/tests/test_mplot3d.py::test_axes3d_rotated[png]",
43 "lib/mpl_toolkits/tests/test_mplot3d.py::test_bar3d[png]",
44 "lib/mpl_toolkits/tests/test_mplot3d.py::test_bar3d_colors",
45 "lib/mpl_toolkits/tests/test_mplot3d.py::test_bar3d_lightsource",
46 "lib/mpl_toolkits/tests/test_mplot3d.py::test_bar3d_notshaded[png]",
47 "lib/mpl_toolkits/tests/test_mplot3d.py::test_bar3d_shaded[png]",
48 "lib/mpl_toolkits/tests/test_mplot3d.py::test_colorbar_pos",
49 "lib/mpl_toolkits/tests/test_mplot3d.py::test_computed_zorder[png]",
50 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contour3d[png]",
51 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contour3d_1d_input",
52 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contour3d_extend3d[png]",
53 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contourf3d[png]",
54 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contourf3d_extend[png-both-levels0]",
55 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contourf3d_extend[png-max-levels2]",
56 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contourf3d_extend[png-min-levels1]",
57 "lib/mpl_toolkits/tests/test_mplot3d.py::test_contourf3d_fill[png]",
58 "lib/mpl_toolkits/tests/test_mplot3d.py::test_equal_box_aspect[png]",
59 "lib/mpl_toolkits/tests/test_mplot3d.py::test_errorbar3d[png]",
60 "lib/mpl_toolkits/tests/test_mplot3d.py::test_errorbar3d_errorevery[png]",
61 "lib/mpl_toolkits/tests/test_mplot3d.py::test_format_coord",
62 "lib/mpl_toolkits/tests/test_mplot3d.py::test_get_axis_position",
63 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_xlim3d-left-inf]",
64 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_xlim3d-left-nan]",
65 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_xlim3d-right-inf]",
66 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_xlim3d-right-nan]",
67 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_ylim3d-bottom-inf]",
68 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_ylim3d-bottom-nan]",
69 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_ylim3d-top-inf]",
70 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_ylim3d-top-nan]",
71 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_zlim3d-bottom-inf]",
72 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_zlim3d-bottom-nan]",
73 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_zlim3d-top-inf]",
74 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invalid_axes_limits[set_zlim3d-top-nan]",
75 "lib/mpl_toolkits/tests/test_mplot3d.py::test_inverted[png]",
76 "lib/mpl_toolkits/tests/test_mplot3d.py::test_inverted_cla",
77 "lib/mpl_toolkits/tests/test_mplot3d.py::test_invisible_axes[png]",
78 "lib/mpl_toolkits/tests/test_mplot3d.py::test_line3d_set_get_data_3d",
79 "lib/mpl_toolkits/tests/test_mplot3d.py::test_lines3d[png]",
80 "lib/mpl_toolkits/tests/test_mplot3d.py::test_lines_dists[png]",
81 "lib/mpl_toolkits/tests/test_mplot3d.py::test_lines_dists_nowarning",
82 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins",
83 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[TypeError-args6-kwargs6-Cannot",
84 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[TypeError-args7-kwargs7-Cannot",
85 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[TypeError-args8-kwargs8-Cannot",
86 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[TypeError-args9-kwargs9-Must",
87 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args0-kwargs0-margin",
88 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args1-kwargs1-margin",
89 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args2-kwargs2-margin",
90 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args3-kwargs3-margin",
91 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args4-kwargs4-margin",
92 "lib/mpl_toolkits/tests/test_mplot3d.py::test_margins_errors[ValueError-args5-kwargs5-margin",
93 "lib/mpl_toolkits/tests/test_mplot3d.py::test_marker_draw_order_data_reversed[png--50]",
94 "lib/mpl_toolkits/tests/test_mplot3d.py::test_marker_draw_order_data_reversed[png-130]",
95 "lib/mpl_toolkits/tests/test_mplot3d.py::test_marker_draw_order_view_rotated[png]",
96 "lib/mpl_toolkits/tests/test_mplot3d.py::test_minor_ticks[png]",
97 "lib/mpl_toolkits/tests/test_mplot3d.py::test_mixedsamplesraises",
98 "lib/mpl_toolkits/tests/test_mplot3d.py::test_mixedsubplots[png]",
99 "lib/mpl_toolkits/tests/test_mplot3d.py::test_pan",
100 "lib/mpl_toolkits/tests/test_mplot3d.py::test_patch_collection_modification[png]",
101 "lib/mpl_toolkits/tests/test_mplot3d.py::test_patch_modification",
102 "lib/mpl_toolkits/tests/test_mplot3d.py::test_pathpatch_3d[png]",
103 "lib/mpl_toolkits/tests/test_mplot3d.py::test_plot_3d_from_2d[png]",
104 "lib/mpl_toolkits/tests/test_mplot3d.py::test_plot_scalar[png]",
105 "lib/mpl_toolkits/tests/test_mplot3d.py::test_plotsurface_1d_raises",
106 "lib/mpl_toolkits/tests/test_mplot3d.py::test_poly3dcollection_alpha[png]",
107 "lib/mpl_toolkits/tests/test_mplot3d.py::test_poly3dcollection_closed[png]",
108 "lib/mpl_toolkits/tests/test_mplot3d.py::test_poly3dcollection_verts_validation",
109 "lib/mpl_toolkits/tests/test_mplot3d.py::test_poly_collection_2d_to_3d_empty",
110 "lib/mpl_toolkits/tests/test_mplot3d.py::test_proj_axes_cube[png]",
111 "lib/mpl_toolkits/tests/test_mplot3d.py::test_proj_axes_cube_ortho[png]",
112 "lib/mpl_toolkits/tests/test_mplot3d.py::test_proj_transform",
113 "lib/mpl_toolkits/tests/test_mplot3d.py::test_quiver3D_smoke[png]",
114 "lib/mpl_toolkits/tests/test_mplot3d.py::test_quiver3d[png]",
115 "lib/mpl_toolkits/tests/test_mplot3d.py::test_quiver3d_empty[png]",
116 "lib/mpl_toolkits/tests/test_mplot3d.py::test_quiver3d_masked[png]",
117 "lib/mpl_toolkits/tests/test_mplot3d.py::test_rot",
118 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scalarmap_update[png]",
119 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d[png]",
120 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_color[png]",
121 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_linewidth[png]",
122 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_linewidth_modification[png]",
123 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_modification[png]",
124 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_sorting[png-False]",
125 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter3d_sorting[png-True]",
126 "lib/mpl_toolkits/tests/test_mplot3d.py::test_scatter_spiral[png]",
127 "lib/mpl_toolkits/tests/test_mplot3d.py::test_shared_axes_retick",
128 "lib/mpl_toolkits/tests/test_mplot3d.py::test_stem3d[png]",
129 "lib/mpl_toolkits/tests/test_mplot3d.py::test_subfigure_simple",
130 "lib/mpl_toolkits/tests/test_mplot3d.py::test_surface3d[png]",
131 "lib/mpl_toolkits/tests/test_mplot3d.py::test_surface3d_masked[png]",
132 "lib/mpl_toolkits/tests/test_mplot3d.py::test_surface3d_masked_strides[png]",
133 "lib/mpl_toolkits/tests/test_mplot3d.py::test_surface3d_shaded[png]",
134 "lib/mpl_toolkits/tests/test_mplot3d.py::test_text3d[png]",
135 "lib/mpl_toolkits/tests/test_mplot3d.py::test_text3d_modification[png]",
136 "lib/mpl_toolkits/tests/test_mplot3d.py::test_text_3d[png]",
137 "lib/mpl_toolkits/tests/test_mplot3d.py::test_ticklabel_format[png]",
138 "lib/mpl_toolkits/tests/test_mplot3d.py::test_tight_layout_text[png]",
139 "lib/mpl_toolkits/tests/test_mplot3d.py::test_tricontour[png]",
140 "lib/mpl_toolkits/tests/test_mplot3d.py::test_trisurf3d[png]",
141 "lib/mpl_toolkits/tests/test_mplot3d.py::test_trisurf3d_shaded[png]",
142 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[False-x]",
143 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[False-y]",
144 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[False-z]",
145 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[None-x]",
146 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[None-y]",
147 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[None-z]",
148 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[True-x]",
149 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[True-y]",
150 "lib/mpl_toolkits/tests/test_mplot3d.py::test_unautoscale[True-z]",
151 "lib/mpl_toolkits/tests/test_mplot3d.py::test_view_init_vertical_axis[x-proj_expected2-axis_lines_expected2-tickdirs_expected2]",
152 "lib/mpl_toolkits/tests/test_mplot3d.py::test_view_init_vertical_axis[y-proj_expected1-axis_lines_expected1-tickdirs_expected1]",
153 "lib/mpl_toolkits/tests/test_mplot3d.py::test_view_init_vertical_axis[z-proj_expected0-axis_lines_expected0-tickdirs_expected0]",
154 "lib/mpl_toolkits/tests/test_mplot3d.py::test_wireframe3d[png]",
155 "lib/mpl_toolkits/tests/test_mplot3d.py::test_wireframe3dzerocstride[png]",
156 "lib/mpl_toolkits/tests/test_mplot3d.py::test_wireframe3dzerorstride[png]",
157 "lib/mpl_toolkits/tests/test_mplot3d.py::test_wireframe3dzerostrideraises",
158 "lib/mpl_toolkits/tests/test_mplot3d.py::test_world"
159 ],
160 "environment_setup_commit": "de98877e3dc45de8dd441d008f23d88738dc015d",
161 "patch": "diff --git a/lib/mpl_toolkits/mplot3d/art3d.py b/lib/mpl_toolkits/mplot3d/art3d.py\n--- a/lib/mpl_toolkits/mplot3d/art3d.py\n+++ b/lib/mpl_toolkits/mplot3d/art3d.py\n@@ -171,6 +171,7 @@ def __init__(self, xs, ys, zs, *args, **kwargs):\n def set_3d_properties(self, zs=0, zdir='z'):\n xs = self.get_xdata()\n ys = self.get_ydata()\n+ zs = cbook._to_unmasked_float_array(zs).ravel()\n zs = np.broadcast_to(zs, len(xs))\n self._verts3d = juggle_axes(xs, ys, zs, zdir)\n self.stale = True\n",
162 "pr_link": "https://github.com/matplotlib/matplotlib/pull/23563"
163 }
164}