{"action":"created","comment":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/46419654","id":46419654,"diff_hunk":"@@ -4005,17 +4010,37 @@ function warnFacetedInterp(m2t)\n     else\n         arrowLength = '{sqrt((\\thisrow{u})^2+(\\thisrow{v})^2)}';\n     end\n+\n     plotOpts = opts_add(plotOpts, 'point meta', arrowLength);\n+    plotOpts = opts_add(plotOpts, 'point meta min', '0');\n \n     if showArrowHead\n         %TODO: scale the arrows more rigorously to match MATLAB behavior\n-        %There is a \"MaxHeadSize\" property (at least in R2014b) that plays a\n-        %role in determining the quiver size.\n+        %There is a \"MaxHeadSize\" property that plays a role.\n+        % Currently, this is quite hard to do, since the size of the arrows\n+        % is defined in pgfplots in absolute units (here we specify that those\n+        % should be scaled up/down according to the data), while the data itself\n+        % is in axis coordinates (or some scaled variant). I.e. we need the\n+        % physical dimensions of the axis to compute the correct scaling!\n+        userInfo(m2t, ['Please change the \"arrowHeadSizeFactor\" option', ...","path":"src/matlab2tikz.m","position":46,"original_position":46,"commit_id":"7ad583441cd9ce4f57da937cfaa0b89f16977f85","original_commit_id":"7ad583441cd9ce4f57da937cfaa0b89f16977f85","user":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"body":"What code are you referring to? As I see it, the code `userInfo(...)` is already after the comments `% There is a ...`.","created_at":"2015-12-02T14:27:25Z","updated_at":"2015-12-02T14:27:25Z","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/781#discussion_r46419654","pull_request_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781","_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/46419654"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/781#discussion_r46419654"},"pull_request":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781"}}},"pull_request":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781","id":46559115,"html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/781","diff_url":"https://github.com/matlab2tikz/matlab2tikz/pull/781.diff","patch_url":"https://github.com/matlab2tikz/matlab2tikz/pull/781.patch","issue_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/781","number":781,"state":"open","locked":false,"title":"Native quivers improved","user":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"body":"This is a partial fix for #691:\r\n - Octave now converts to native quiver plots in pgfplots\r\n - I've used @PeterPablo's default scaling, I did experiment a bit with different values, but for our test suites, these values seem OK\r\n - new parameter `'arrowHeadSizeFactor'` to allow tweaking this by hand\r\n\r\nThe actual scaling problem is again absolute (physical dimensions) vs. relative (axis units) measurements. I think by the current approach, we can already allow useable results.\r\n\r\nIn attachment: graphical results of the quiver plots:\r\n\r\n[octave.pdf](https://github.com/matlab2tikz/matlab2tikz/files/6268/octave.pdf)\r\n[hg1.pdf](https://github.com/matlab2tikz/matlab2tikz/files/6262/hg1.pdf)\r\n[hg2.pdf](https://github.com/matlab2tikz/matlab2tikz/files/6264/hg2.pdf)\r\n\r\nI've discovered some new problems as well and some small things that need fixing but are non-critical IMHO (e.g. handling of `MaxHeadSize`). For those I will create issue reports.","created_at":"2015-10-01T18:28:42Z","updated_at":"2015-12-02T14:27:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a46d32dfc11ed9c6a455bd4827b472714694322","assignee":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/milestones/11","html_url":"https://github.com/matlab2tikz/matlab2tikz/milestones/1.1%20Release","labels_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/milestones/11/labels","id":1027955,"number":11,"title":"1.1 Release","description":"","creator":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":54,"state":"open","created_at":"2015-03-18T19:15:33Z","updated_at":"2015-12-02T14:22:15Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781/commits","review_comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781/comments","review_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/781/comments","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/7ad583441cd9ce4f57da937cfaa0b89f16977f85","head":{"label":"egeerardyn:nativeQuivers-improved","ref":"nativeQuivers-improved","sha":"7ad583441cd9ce4f57da937cfaa0b89f16977f85","user":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"repo":{"id":27400367,"name":"matlab2tikz","full_name":"egeerardyn/matlab2tikz","owner":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/egeerardyn/matlab2tikz","description":"A converter that takes a MATLAB(R) figure and spits out a TikZ (Pgfplots) figure for smooth integration into LaTeX. ","fork":true,"url":"https://api.github.com/repos/egeerardyn/matlab2tikz","forks_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/forks","keys_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/teams","hooks_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/hooks","issue_events_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/issues/events{/number}","events_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/events","assignees_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/assignees{/user}","branches_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/branches{/branch}","tags_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/tags","blobs_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/git/refs{/sha}","trees_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/statuses/{sha}","languages_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/languages","stargazers_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/stargazers","contributors_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/contributors","subscribers_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/subscribers","subscription_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/subscription","commits_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/commits{/sha}","git_commits_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/git/commits{/sha}","comments_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/comments{/number}","issue_comment_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/issues/comments{/number}","contents_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/contents/{+path}","compare_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/merges","archive_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/downloads","issues_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/issues{/number}","pulls_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/pulls{/number}","milestones_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/milestones{/number}","notifications_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/labels{/name}","releases_url":"https://api.github.com/repos/egeerardyn/matlab2tikz/releases{/id}","created_at":"2014-12-01T21:18:54Z","updated_at":"2014-12-02T15:10:41Z","pushed_at":"2015-12-02T12:27:46Z","git_url":"git://github.com/egeerardyn/matlab2tikz.git","ssh_url":"git@github.com:egeerardyn/matlab2tikz.git","clone_url":"https://github.com/egeerardyn/matlab2tikz.git","svn_url":"https://github.com/egeerardyn/matlab2tikz","homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","size":7386,"stargazers_count":0,"watchers_count":0,"language":"Matlab","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matlab2tikz:develop","ref":"develop","sha":"decd4961afb0aee70f320f793ade35941c8f54c3","user":{"login":"matlab2tikz","id":10036397,"avatar_url":"https://avatars.githubusercontent.com/u/10036397?v=3","gravatar_id":"","url":"https://api.github.com/users/matlab2tikz","html_url":"https://github.com/matlab2tikz","followers_url":"https://api.github.com/users/matlab2tikz/followers","following_url":"https://api.github.com/users/matlab2tikz/following{/other_user}","gists_url":"https://api.github.com/users/matlab2tikz/gists{/gist_id}","starred_url":"https://api.github.com/users/matlab2tikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matlab2tikz/subscriptions","organizations_url":"https://api.github.com/users/matlab2tikz/orgs","repos_url":"https://api.github.com/users/matlab2tikz/repos","events_url":"https://api.github.com/users/matlab2tikz/events{/privacy}","received_events_url":"https://api.github.com/users/matlab2tikz/received_events","type":"Organization","site_admin":false},"repo":{"id":579842,"name":"matlab2tikz","full_name":"matlab2tikz/matlab2tikz","owner":{"login":"matlab2tikz","id":10036397,"avatar_url":"https://avatars.githubusercontent.com/u/10036397?v=3","gravatar_id":"","url":"https://api.github.com/users/matlab2tikz","html_url":"https://github.com/matlab2tikz","followers_url":"https://api.github.com/users/matlab2tikz/followers","following_url":"https://api.github.com/users/matlab2tikz/following{/other_user}","gists_url":"https://api.github.com/users/matlab2tikz/gists{/gist_id}","starred_url":"https://api.github.com/users/matlab2tikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matlab2tikz/subscriptions","organizations_url":"https://api.github.com/users/matlab2tikz/orgs","repos_url":"https://api.github.com/users/matlab2tikz/repos","events_url":"https://api.github.com/users/matlab2tikz/events{/privacy}","received_events_url":"https://api.github.com/users/matlab2tikz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matlab2tikz/matlab2tikz","description":"This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.","fork":false,"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz","forks_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/forks","keys_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/teams","hooks_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/hooks","issue_events_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/events{/number}","events_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/events","assignees_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/assignees{/user}","branches_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/branches{/branch}","tags_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/tags","blobs_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/refs{/sha}","trees_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/{sha}","languages_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/languages","stargazers_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/stargazers","contributors_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/contributors","subscribers_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/subscribers","subscription_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/subscription","commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/commits{/sha}","git_commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/commits{/sha}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/comments{/number}","issue_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/comments{/number}","contents_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/contents/{+path}","compare_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/merges","archive_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/downloads","issues_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues{/number}","pulls_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls{/number}","milestones_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/milestones{/number}","notifications_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/labels{/name}","releases_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/releases{/id}","created_at":"2010-03-25T22:52:27Z","updated_at":"2015-11-30T13:30:32Z","pushed_at":"2015-12-02T14:22:16Z","git_url":"git://github.com/matlab2tikz/matlab2tikz.git","ssh_url":"git@github.com:matlab2tikz/matlab2tikz.git","clone_url":"https://github.com/matlab2tikz/matlab2tikz.git","svn_url":"https://github.com/matlab2tikz/matlab2tikz","homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","size":9886,"stargazers_count":330,"watchers_count":330,"language":"Matlab","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":111,"forks":94,"open_issues":111,"watchers":330,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/781"},"issue":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/781"},"comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/781/comments"},"review_comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781/comments"},"review_comment":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/781/commits"},"statuses":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/7ad583441cd9ce4f57da937cfaa0b89f16977f85"}}}}