{"action":"created","issue":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/842","labels_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/842/comments","events_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/842/events","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/842","id":125944320,"number":842,"title":"add labels to plot according to Tag property of line","user":{"login":"murmlgrmpf","id":1469147,"avatar_url":"https://avatars.githubusercontent.com/u/1469147?v=3","gravatar_id":"","url":"https://api.github.com/users/murmlgrmpf","html_url":"https://github.com/murmlgrmpf","followers_url":"https://api.github.com/users/murmlgrmpf/followers","following_url":"https://api.github.com/users/murmlgrmpf/following{/other_user}","gists_url":"https://api.github.com/users/murmlgrmpf/gists{/gist_id}","starred_url":"https://api.github.com/users/murmlgrmpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murmlgrmpf/subscriptions","organizations_url":"https://api.github.com/users/murmlgrmpf/orgs","repos_url":"https://api.github.com/users/murmlgrmpf/repos","events_url":"https://api.github.com/users/murmlgrmpf/events{/privacy}","received_events_url":"https://api.github.com/users/murmlgrmpf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2016-01-11T13:31:29Z","updated_at":"2016-01-11T13:59:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/842","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/842","diff_url":"https://github.com/matlab2tikz/matlab2tikz/pull/842.diff","patch_url":"https://github.com/matlab2tikz/matlab2tikz/pull/842.patch"},"body":"The autolabel option of matlab2tikz is working fine, but if you change your plots, because e.g. you plot an additional line, all labels change.\r\nTherefore, it is convenient to add the label you want to have in tex to the Tag property of your line in matlab. When exporting with autolabels, the original labels are reproduced for compatibility and additionally the Tag will show up as a label."},"comment":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/comments/170557661","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/842#issuecomment-170557661","issue_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/842","id":170557661,"user":{"login":"murmlgrmpf","id":1469147,"avatar_url":"https://avatars.githubusercontent.com/u/1469147?v=3","gravatar_id":"","url":"https://api.github.com/users/murmlgrmpf","html_url":"https://github.com/murmlgrmpf","followers_url":"https://api.github.com/users/murmlgrmpf/followers","following_url":"https://api.github.com/users/murmlgrmpf/following{/other_user}","gists_url":"https://api.github.com/users/murmlgrmpf/gists{/gist_id}","starred_url":"https://api.github.com/users/murmlgrmpf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murmlgrmpf/subscriptions","organizations_url":"https://api.github.com/users/murmlgrmpf/orgs","repos_url":"https://api.github.com/users/murmlgrmpf/repos","events_url":"https://api.github.com/users/murmlgrmpf/events{/privacy}","received_events_url":"https://api.github.com/users/murmlgrmpf/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T13:59:37Z","updated_at":"2016-01-11T13:59:37Z","body":"Then I would parse the tag field in matlab2tikz for the 'tikzLabel:' flag and add the label accordingly."}}