Skip to content

adding missing numpy import in backend-tools #9021

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

Merged
merged 1 commit into from
Aug 11, 2017

Conversation

fariza
Copy link
Member

@fariza fariza commented Aug 11, 2017

Since bad2657 when zooming the following error appears

Traceback (most recent call last):
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backends/backend_gtk3.py", line 243, in motion_notify_event
    FigureCanvasBase.motion_notify_event(self, x, y, guiEvent=event)
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backend_bases.py", line 1987, in motion_notify_event
    self.callbacks.process(s, event)
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/cbook/__init__.py", line 365, in process
    proxy(*args, **kwargs)
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/cbook/__init__.py", line 227, in __call__
    return mtd(*args, **kwargs)
  File "/home/fariza/workspace/matplotlib/lib/matplotlib/backend_tools.py", line 899, in _mouse_move
    (x1, y1), (x2, y2) = np.clip(
NameError: name 'np' is not defined

It is a simple forgotten import

@fariza
Copy link
Member Author

fariza commented Aug 11, 2017

@anntzer Little fix for your change

@WeatherGod WeatherGod merged commit 2bc6b59 into matplotlib:master Aug 11, 2017
@WeatherGod
Copy link
Member

surprised the linter didn't notice this

@QuLogic QuLogic added this to the 2.1 (next point release) milestone Aug 11, 2017
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

Successfully merging this pull request may close these issues.

3 participants