Skip to content

Instantly share code, notes, and snippets.

@mdbecker
Created January 17, 2020 04:26
Show Gist options
  • Save mdbecker/727a362ff573a459c5d7a66dfc46836e to your computer and use it in GitHub Desktop.
Save mdbecker/727a362ff573a459c5d7a66dfc46836e to your computer and use it in GitHub Desktop.
bad_ticks.json
{"date":{"4":1576826679362,"5":1576826680953,"6":1576826682705,"7":1576826715094,"8":1576826738398,"9":1576826749536,"10":1576826964746,"11":1576827009901,"12":1576827049302,"13":1576827049369,"14":1576827067127,"15":1576827067174,"16":1576827067715,"17":1576827071028,"18":1576827128560,"19":1576827181988,"20":1576827228449,"21":1576827233823,"22":1576827236225,"23":1576827244532,"24":1576827326470,"25":1576827331045,"26":1576827338079,"27":1576827342801,"28":1576827342887,"29":1576827362202,"30":1576827369175,"31":1576827406098,"32":1576827475226,"33":1576827479353,"34":1576827479381,"35":1576827481299,"36":1576827481300,"37":1576827484089,"38":1576827484095,"39":1576827495704,"40":1576827501289,"41":1576827508178,"42":1576827515849,"154":1576832407342,"155":1576832407392,"156":1576832428810,"157":1576832428828,"158":1576832429440,"179":1576840413638,"180":1576840413746,"181":1576840440551,"182":1576840440565,"183":1576840441194,"184":1576841274254,"185":1576841274351,"186":1576841285635,"187":1576841285658,"188":1576841286334,"210":1576846475476,"211":1576846475557,"212":1576846489751,"213":1576846489765,"214":1576846490315,"215":1576849177567,"216":1576849177661,"217":1576849191895,"218":1576849191915,"219":1576849192458,"225":1576854482939,"226":1576854483038,"227":1576854499756,"228":1576854499773,"229":1576854500470,"457":1577104767965,"458":1577104768010,"459":1577104787166,"460":1577104787182,"461":1577104787674,"474":1577115156689,"475":1577115156784,"560":1577438751966,"561":1577438752027,"562":1577438767243,"563":1577438767268,"564":1577438767872,"580":1577440236148,"600":1577447106208,"601":1577447106295,"602":1577447122889,"603":1577447122903,"604":1577447123328,"605":1577449273037,"606":1577449273107,"607":1577449288535,"608":1577449288547,"609":1577449289073,"634":1577450947442,"635":1577450947559,"636":1577450961047,"637":1577450961048,"638":1577450961482,"639":1577460083128,"640":1577460094225,"641":1577460094295,"642":1577460112795,"643":1577460112808,"644":1577460113238,"716":1577693906744,"717":1577693906746,"718":1577693931556,"719":1577693931621,"720":1577693947237,"721":1577693947256,"722":1577693947795,"723":1577694041602,"724":1577694041651,"725":1577694059747,"726":1577694059764,"727":1577694060266,"728":1577694130473,"729":1577694130515,"730":1577694136691,"731":1577694136689,"732":1577694137226,"733":1577694145756,"734":1577694145796,"741":1577695987476,"742":1577695987553,"743":1577696000836,"744":1577696000856,"745":1577696001453,"746":1577698188485,"747":1577698188586,"748":1577698206912,"749":1577698206929,"750":1577698207383,"792":1577719185960,"793":1577719186024,"794":1577719199692,"795":1577719199702,"796":1577719200043,"797":1577721414086,"798":1577721414180,"799":1577721425827,"822":1577776998201,"823":1577776999761,"824":1577777142421,"825":1577777142527,"826":1577777183918,"827":1577777191784,"828":1577777258327,"829":1577777259820,"830":1577777330397,"831":1577777336662,"832":1577777339226,"833":1577777371508,"834":1577777373976,"835":1577777384743,"836":1577777400225,"837":1577777402501,"838":1577777457055,"839":1577777493886,"840":1577777499660,"841":1577777552074,"842":1577777577265,"843":1577777587005,"844":1577777587011,"845":1577777587563,"846":1577777641453,"847":1577777641535,"848":1577777652790,"849":1577777652822,"850":1577777653361,"851":1577777705059,"852":1577777711914,"853":1577777723999,"854":1577777842781,"855":1577783297372,"856":1577783297483,"857":1577783309836,"858":1577783309855,"859":1577783310257,"861":1577790798340,"862":1577790798416,"863":1577790814674,"864":1577790814703,"865":1577790815112,"866":1577792652502,"867":1577792652563,"868":1577792667055,"869":1577792667086,"870":1577792667621,"871":1577796040901,"872":1577796041002,"873":1577796057009,"874":1577796057025,"875":1577796057462,"876":1577797247736,"877":1577797247827,"878":1577797278207,"879":1577797278232,"880":1577797278583,"881":1577803189050,"882":1577803189124}}
df = pd.read_json('bad_ticks.json')
fig, ax = plt.subplots(1, 1)
ax.plot_date(df['date'], np.random.uniform(0, 0.5, df.shape[0]), alpha=0.5)
plt.tight_layout()
fig.autofmt_xdate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment