{"action":"opened","issue":{"url":"https://api.github.com/repos/iagapov/ocelot/issues/48","labels_url":"https://api.github.com/repos/iagapov/ocelot/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/iagapov/ocelot/issues/48/comments","events_url":"https://api.github.com/repos/iagapov/ocelot/issues/48/events","html_url":"https://github.com/iagapov/ocelot/issues/48","id":118012067,"number":48,"title":"plot sextupole in gui.accelerator","user":{"login":"iagapov","id":6952937,"avatar_url":"https://avatars.githubusercontent.com/u/6952937?v=3","gravatar_id":"","url":"https://api.github.com/users/iagapov","html_url":"https://github.com/iagapov","followers_url":"https://api.github.com/users/iagapov/followers","following_url":"https://api.github.com/users/iagapov/following{/other_user}","gists_url":"https://api.github.com/users/iagapov/gists{/gist_id}","starred_url":"https://api.github.com/users/iagapov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iagapov/subscriptions","organizations_url":"https://api.github.com/users/iagapov/orgs","repos_url":"https://api.github.com/users/iagapov/repos","events_url":"https://api.github.com/users/iagapov/events{/privacy}","received_events_url":"https://api.github.com/users/iagapov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-20T10:38:12Z","updated_at":"2015-11-20T10:38:12Z","closed_at":null,"body":"from ocelot import *\r\nfrom ocelot.gui.accelerator import *\r\n\r\nd2 = Drift(l=1.0)\r\nsf1 = Sextupole(l=0.25, k2= 260)\r\n\r\nbeam = Beam()\r\nbeam.E = 5.0\r\nbeam.sigma_E = 0.002\r\nbeam.beta_x = 1\r\nbeam.beta_y = 1\r\n\r\n\r\n\r\ntw0 = Twiss(beam)\r\n\r\nlat = MagneticLattice( (d2,sf1,d2))\r\n\r\ntws=twiss(lat, Twiss(beam), nPoints = 1000)\r\n\r\nplot_opt_func(lat, tws)\r\n\r\nplt.show()\r\n\r\n\r\n"}}