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

add whiskers and vectors objects for plotting #16

Open
beckermr opened this issue Jun 16, 2014 · 0 comments
Open

add whiskers and vectors objects for plotting #16

beckermr opened this issue Jun 16, 2014 · 0 comments

Comments

@beckermr
Copy link
Collaborator

This one is pretty self explanatory. The question here is about what the interface should be. There are a few options.

  1. Accept points and a vector like biggles.Whiskers(xloc,yloc,vec) where vec is a (N,2) numpy array or maybe list of tuples/lists.
  2. Accept points and vector components like biggles.Whiskers(xloc,yloc,u,v) where u and v are the x and y components of a vector.
  3. Accept points and Q,U or e1,e2 spin-2 fields, biggles.Whiskers(xloc,yloc,Q,U). This last interface is much more astrophysics domain specific, so might not be the best idea.

We can easily make a biggles.Vectors object at the same time that is called like this biggles.Vectors(xloc,yloc,u,v) and plots a vector at location (xloc,yloc) pointing to (u,v). The trick here is specifying the shape of the head of the vector. Simple lines would be easy. A filled triangle head would be a bit more difficult.

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