{"action":"opened","issue":{"url":"https://api.github.com/repos/FreddyDurkee/EEG/issues/1","labels_url":"https://api.github.com/repos/FreddyDurkee/EEG/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/FreddyDurkee/EEG/issues/1/comments","events_url":"https://api.github.com/repos/FreddyDurkee/EEG/issues/1/events","html_url":"https://github.com/FreddyDurkee/EEG/issues/1","id":122151289,"number":1,"title":"EEG-skrypt","user":{"login":"FreddyDurkee","id":16282372,"avatar_url":"https://avatars.githubusercontent.com/u/16282372?v=3","gravatar_id":"","url":"https://api.github.com/users/FreddyDurkee","html_url":"https://github.com/FreddyDurkee","followers_url":"https://api.github.com/users/FreddyDurkee/followers","following_url":"https://api.github.com/users/FreddyDurkee/following{/other_user}","gists_url":"https://api.github.com/users/FreddyDurkee/gists{/gist_id}","starred_url":"https://api.github.com/users/FreddyDurkee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreddyDurkee/subscriptions","organizations_url":"https://api.github.com/users/FreddyDurkee/orgs","repos_url":"https://api.github.com/users/FreddyDurkee/repos","events_url":"https://api.github.com/users/FreddyDurkee/events{/privacy}","received_events_url":"https://api.github.com/users/FreddyDurkee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T22:56:16Z","updated_at":"2015-12-14T22:56:16Z","closed_at":null,"body":"import numpy as np\r\nimport matplotlib.pyplot as plt\r\nimport h5py\r\nimport os\r\n\r\n#zmieniam katalog na ten, na którym umieszczony mam plik i wywołuję go\r\nos.chdir(\"C:\\Users\\Dominika\\Desktop\\Dominika\\szkola\\przetwarzanie_sygnalow\")\r\nplik=h5py.File(\"RecordSession_2005.01.01_01.18.03.hdf5\")\r\n\r\n#wczytanie danych z pliku\r\ndata=plik[\"RawData\"]\r\nsamples=np.array(data[\"Samples\"])\r\nsample=samples.T\r\n\r\n#zmienne\r\nczas=7\r\nN=92170.\r\nfs=250\r\nt=np.arange(0,N/fs,1./fs)\r\nx=fs*czas\r\nta=t[70*250:x+70*250]\r\n\r\n#tablica z danym przedziałem danych\r\na=[]\r\nfor i in range(len(sample)):\r\n    a.append(sample[i][70*250:x+70*250])\r\n\r\n#utworzenie okna z 15 wykresami eeg\r\nf, ax = plt.subplots(15, sharex=True)\r\nfor i in range(len(ax)):\r\n    ax[i].plot(ta,a[i])\r\n    ax[i].set_yticks([ (max(a[i])- min(a[i]))/2 +min(a[i])]) # miejsce po lewej stronie wykresu gdzie chcę umieścić napis\r\n    ax[i].set_yticklabels([\"Kanal \" +str(i+1)])# napis na osi OY\r\n    \r\n    f.subplots_adjust(hspace=0)# usunięcie odstępów między wykresami\r\nax[0].set_title('Wykres EEG')\r\n\r\nplt.show()\r\n\r\n"}}