{"action":"created","issue":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/172","labels_url":"https://api.github.com/repos/ejeschke/ginga/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/ejeschke/ginga/issues/172/comments","events_url":"https://api.github.com/repos/ejeschke/ginga/issues/172/events","html_url":"https://github.com/ejeschke/ginga/issues/172","id":110529981,"number":172,"title":"Canvas Image object pushed to background layer","user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-08T20:00:44Z","updated_at":"2015-10-12T20:06:11Z","closed_at":null,"body":"In my plugin, I build my canvas like this:\r\n```python\r\nself.canvas.setSurface(self.fitsimage)\r\n...\r\nm_obj = self.dc.Image(0, 0, RGMImage(...), linewidth=10)\r\np_obj = self.dc.Point(x, y, r)\r\nt_obj = self.dc.Text(x, y, 'label')\r\nself.tag = self.canvas.add(self.dc.CompoundObject(m_obj, p_obj, t_obj))\r\n```\r\nThe point and text objects show up fine, but the image is somehow behind `self.fitsimage` (when `linewidth` is non-zero, I see some color I set for the image object behind the data). Am I missing something here?"},"comment":{"url":"https://api.github.com/repos/ejeschke/ginga/issues/comments/147505519","html_url":"https://github.com/ejeschke/ginga/issues/172#issuecomment-147505519","issue_url":"https://api.github.com/repos/ejeschke/ginga/issues/172","id":147505519,"user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T20:06:11Z","updated_at":"2015-10-12T20:06:11Z","body":"@ejeschke , I get:\r\n```python\r\nTraceback (most recent call last):\r\n    self.fitsimage.get_canvas().lower_object(self.canvas)\r\n  File \".../ginga-2.5.20151003224836-py2.7.egg/ginga/canvas/CompoundMixin.py\", line 187, in lower_object\r\n    self.objects.remove(obj)\r\nValueError: list.remove(x): x not in list\r\n```\r\nMy `self.fitsimage.get_canvas().objects` only has one object that is a `NormImage`. My `self.canvas` is a `DrawingCanvas` with a single `CompoundObject`, which contains `[Image, Point, Text]` that I added."}}