Skip to content

trying out mpl-pan-zoom #3

Open
@robert-kozar-nnl

Description

@robert-kozar-nnl

Ian,
It was nice meeting and talking with you during the sprints at SciPy. I've been trying to implement mpl-pan-zoom in the GUI that I was showing you and Elliot. I got the zoom factory to work, but I'm not sure how to activate the pan feature. This is a stripped down version of what I thought should work. Am I missing something?
-Rob

  import matplotlib.pyplot as plt
  from mpl_pan_zoom import zoom_factory, PanManager
  
  fig, ax = plt.subplots()
  plt.plot([0, 1, 2], [2, 1, 0], 'o')
  PanManager(fig, 1)
  zoom_factory(ax)
  plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions