Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with data clipping for scatter plot when sizes are used #311

Open
astrofrog opened this issue May 3, 2018 · 0 comments
Open

Bug with data clipping for scatter plot when sizes are used #311

astrofrog opened this issue May 3, 2018 · 0 comments

Comments

@astrofrog
Copy link
Member

Traceback (most recent call last):
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/qt/connect.py", line 204, in update_prop
    setattr(instance, prop, val)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 254, in __setattr__
    super(HasCallbackProperties, self).__setattr__(attribute, value)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 79, in __set__
    self.notify(instance, old, new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 128, in notify
    cback(new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/utils/matplotlib.py", line 162, in wrapper
    result = func(*args, **kwargs)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/common/vispy_data_viewer.py", line 83, in _toggle_clip
    layer_artist.set_clip(self.state.clip_limits)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 208, in set_clip
    self._update_data()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 193, in _update_data
    self._multiscat.set_data_values(self.id, x, y, z)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 55, in set_data_values
    self._update()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 149, in _update
    self.set_data(data, edge_color=colors, face_color=colors, size=sizes)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/extern/vispy/visuals/markers.py", line 568, in set_data
    data['a_size'] = size
ValueError: could not broadcast input array from shape (30924) into shape (17624)
Traceback (most recent call last):
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 254, in __setattr__
    super(HasCallbackProperties, self).__setattr__(attribute, value)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 79, in __set__
    self.notify(instance, old, new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 128, in notify
    cback(new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/utils/matplotlib.py", line 162, in wrapper
    result = func(*args, **kwargs)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/common/vispy_data_viewer.py", line 85, in _toggle_clip
    layer_artist.set_clip(None)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 208, in set_clip
    self._update_data()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 193, in _update_data
    self._multiscat.set_data_values(self.id, x, y, z)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 55, in set_data_values
    self._update()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 149, in _update
    self.set_data(data, edge_color=colors, face_color=colors, size=sizes)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/extern/vispy/visuals/markers.py", line 568, in set_data
    data['a_size'] = size
ValueError: could not broadcast input array from shape (30924) into shape (112393)
Traceback (most recent call last):
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 254, in __setattr__
    super(HasCallbackProperties, self).__setattr__(attribute, value)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 79, in __set__
    self.notify(instance, old, new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 128, in notify
    cback(new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/utils/matplotlib.py", line 162, in wrapper
    result = func(*args, **kwargs)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/common/vispy_data_viewer.py", line 83, in _toggle_clip
    layer_artist.set_clip(self.state.clip_limits)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 208, in set_clip
    self._update_data()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 193, in _update_data
    self._multiscat.set_data_values(self.id, x, y, z)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 55, in set_data_values
    self._update()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 149, in _update
    self.set_data(data, edge_color=colors, face_color=colors, size=sizes)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/extern/vispy/visuals/markers.py", line 568, in set_data
    data['a_size'] = size
ValueError: could not broadcast input array from shape (30924) into shape (17624)
Traceback (most recent call last):
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 254, in __setattr__
    super(HasCallbackProperties, self).__setattr__(attribute, value)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 79, in __set__
    self.notify(instance, old, new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 128, in notify
    cback(new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/utils/matplotlib.py", line 162, in wrapper
    result = func(*args, **kwargs)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/common/vispy_data_viewer.py", line 85, in _toggle_clip
    layer_artist.set_clip(None)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 208, in set_clip
    self._update_data()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 193, in _update_data
    self._multiscat.set_data_values(self.id, x, y, z)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 55, in set_data_values
    self._update()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 149, in _update
    self.set_data(data, edge_color=colors, face_color=colors, size=sizes)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/extern/vispy/visuals/markers.py", line 568, in set_data
    data['a_size'] = size
ValueError: could not broadcast input array from shape (30924) into shape (112393)
Traceback (most recent call last):
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 254, in __setattr__
    super(HasCallbackProperties, self).__setattr__(attribute, value)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 79, in __set__
    self.notify(instance, old, new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/external/echo/core.py", line 128, in notify
    cback(new)
  File "/Users/tom/Dropbox/Code/Glue/glue/dist/glue-core-0.13.2/glue/utils/matplotlib.py", line 162, in wrapper
    result = func(*args, **kwargs)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/common/vispy_data_viewer.py", line 83, in _toggle_clip
    layer_artist.set_clip(self.state.clip_limits)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 208, in set_clip
    self._update_data()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/layer_artist.py", line 193, in _update_data
    self._multiscat.set_data_values(self.id, x, y, z)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 55, in set_data_values
    self._update()
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/scatter/multi_scatter.py", line 149, in _update
    self.set_data(data, edge_color=colors, face_color=colors, size=sizes)
  File "/Users/tom/Dropbox/Code/Glue/glue-vispy-viewers/glue_vispy_viewers/extern/vispy/visuals/markers.py", line 568, in set_data
    data['a_size'] = size
ValueError: could not broadcast input array from shape (30924) into shape (17624)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant