{"action":"created","issue":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/16388","repository_url":"https://api.github.com/repos/mantidproject/mantid","labels_url":"https://api.github.com/repos/mantidproject/mantid/issues/16388/labels{/name}","comments_url":"https://api.github.com/repos/mantidproject/mantid/issues/16388/comments","events_url":"https://api.github.com/repos/mantidproject/mantid/issues/16388/events","html_url":"https://github.com/mantidproject/mantid/issues/16388","id":156532639,"number":16388,"title":"PlotMD: Does not respect the show all error bars flag","user":{"login":"martyngigg","id":733773,"avatar_url":"https://avatars.githubusercontent.com/u/733773?v=3","gravatar_id":"","url":"https://api.github.com/users/martyngigg","html_url":"https://github.com/martyngigg","followers_url":"https://api.github.com/users/martyngigg/followers","following_url":"https://api.github.com/users/martyngigg/following{/other_user}","gists_url":"https://api.github.com/users/martyngigg/gists{/gist_id}","starred_url":"https://api.github.com/users/martyngigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martyngigg/subscriptions","organizations_url":"https://api.github.com/users/martyngigg/orgs","repos_url":"https://api.github.com/users/martyngigg/repos","events_url":"https://api.github.com/users/martyngigg/events{/privacy}","received_events_url":"https://api.github.com/users/martyngigg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Misc:%20Bug","name":"Misc: Bug","color":"d4c5f9"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Priority:%20High","name":"Priority: High","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"FedeMPouzols","id":5257172,"avatar_url":"https://avatars.githubusercontent.com/u/5257172?v=3","gravatar_id":"","url":"https://api.github.com/users/FedeMPouzols","html_url":"https://github.com/FedeMPouzols","followers_url":"https://api.github.com/users/FedeMPouzols/followers","following_url":"https://api.github.com/users/FedeMPouzols/following{/other_user}","gists_url":"https://api.github.com/users/FedeMPouzols/gists{/gist_id}","starred_url":"https://api.github.com/users/FedeMPouzols/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FedeMPouzols/subscriptions","organizations_url":"https://api.github.com/users/FedeMPouzols/orgs","repos_url":"https://api.github.com/users/FedeMPouzols/repos","events_url":"https://api.github.com/users/FedeMPouzols/events{/privacy}","received_events_url":"https://api.github.com/users/FedeMPouzols/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mantidproject/mantid/milestones/5","html_url":"https://github.com/mantidproject/mantid/milestones/Release%203.7","labels_url":"https://api.github.com/repos/mantidproject/mantid/milestones/5/labels","id":1106939,"number":5,"title":"Release 3.7","description":"Code Freeze:13-May-2016\r\nBeta Testing: 17-May-2016 to 31-May-2016\r\n","creator":{"login":"peterfpeterson","id":404003,"avatar_url":"https://avatars.githubusercontent.com/u/404003?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfpeterson","html_url":"https://github.com/peterfpeterson","followers_url":"https://api.github.com/users/peterfpeterson/followers","following_url":"https://api.github.com/users/peterfpeterson/following{/other_user}","gists_url":"https://api.github.com/users/peterfpeterson/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfpeterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfpeterson/subscriptions","organizations_url":"https://api.github.com/users/peterfpeterson/orgs","repos_url":"https://api.github.com/users/peterfpeterson/repos","events_url":"https://api.github.com/users/peterfpeterson/events{/privacy}","received_events_url":"https://api.github.com/users/peterfpeterson/received_events","type":"User","site_admin":false},"open_issues":58,"closed_issues":948,"state":"open","created_at":"2015-05-12T15:38:13Z","updated_at":"2016-05-24T15:55:47Z","due_on":"2016-06-05T23:00:00Z","closed_at":null},"comments":2,"created_at":"2016-05-24T15:07:24Z","updated_at":"2016-05-24T16:11:17Z","closed_at":null,"body":"Beta test bug.\r\n\r\n### Expected behavior\r\n\r\nAll error bars should be shown if the appropriate option is checked\r\n\r\n### Actual behavior\r\n\r\nA plot with `plotMD` does not respect the state. \r\n\r\n### Steps to reproduce the behavior\r\n\r\n```python\r\n#Some problems with MD algorithms / workflow\r\n\r\n#Create an MD workspace, file backed because my system might not have enough memory:\r\n\r\nimport os\r\nimport numpy as np\r\n#\r\n\r\n#Create projections workspace for later cutting\r\nfrom mantid.api import Projection\r\n# Create an identity projection\r\nproj_id = Projection([1,1,0], [-1,1,0], [0,0,1])\r\nproj_id.setType(0, 'r') \r\nproj_id.setType(1, 'r')\r\nproj_id.setType(2, 'r') \r\nws_id = proj_id.createWorkspace()\r\n\r\n#Make MD mega file (like gen_sqw / accumulate_sqw)\r\npsi_arr=np.arange(0.0,92.0,2)\r\nrun_arr=range(15052,15098)\r\n\r\ninput_runs = list()\r\npsi = list()\r\ngs = list()\r\ngl = list()\r\n#note that gl, gs etc are not mandtory inputs. If we do not specify them then they are set to zero.\r\n\r\ninput_runs = list()\r\npsi = list()\r\ngs = list()\r\ngl = list()\r\nfor i in range(len(psi_arr)):\r\n    source_file = 'map'+str(run_arr[i])+'_ei400.nxspe'\r\n    input_runs.append(source_file)\r\n    psi.append(float(psi_arr[i]))\r\n    gl.append(0.0)\r\n    gs.append(0.0)\r\n\r\nprint(psi)\r\nprint(input_runs)\r\n\r\nmd_ws = CreateMD(input_runs, Emode='Direct', Alatt=[2.87,2.87,2.87], Angdeg=[ 90, 90, 90], u=[1, 0, 0,], v=[0,1,0], Psi=psi, Gl=gl, Gs=gs, EFix=400.0,Filename='test.nxs',FileBackEnd=True)\r\n#Up to this point everything works as we would expect it to.\r\n\r\n##Problem with PlotMD errorbars\r\nout_md_1d_nopix = CutMD(md_ws, Projection=ws_id, PBins=([-3,0.05,3],[-1.1,-0.9],[-0.1,0.1],[130,150]), NoPix=True)\r\nplotMD(out_md_1d_nopix,error_bars=True,normalization=2)\r\n#After fettling the axes limits, can see that not all errorbars are plotted. Resizing window up and down shows more / fewer errorbars (old behaviour)\r\n#Checkbox for \"show all errorbars\" was checked (since on by default)\r\n```\r\n\r\nI have the data for this script.\r\n\r\n### Platforms affected\r\nAll"},"comment":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/comments/221322421","html_url":"https://github.com/mantidproject/mantid/issues/16388#issuecomment-221322421","issue_url":"https://api.github.com/repos/mantidproject/mantid/issues/16388","id":221322421,"user":{"login":"martyngigg","id":733773,"avatar_url":"https://avatars.githubusercontent.com/u/733773?v=3","gravatar_id":"","url":"https://api.github.com/users/martyngigg","html_url":"https://github.com/martyngigg","followers_url":"https://api.github.com/users/martyngigg/followers","following_url":"https://api.github.com/users/martyngigg/following{/other_user}","gists_url":"https://api.github.com/users/martyngigg/gists{/gist_id}","starred_url":"https://api.github.com/users/martyngigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martyngigg/subscriptions","organizations_url":"https://api.github.com/users/martyngigg/orgs","repos_url":"https://api.github.com/users/martyngigg/repos","events_url":"https://api.github.com/users/martyngigg/events{/privacy}","received_events_url":"https://api.github.com/users/martyngigg/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T16:11:17Z","updated_at":"2016-05-24T16:11:17Z","body":"@FedeMPouzols That sounds plausible. I'm glad it wasn't to hard to find!"}}
{"actor":{"display_login":"martyngigg"}}