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

Request for quiver plot #171

Open
abahm opened this issue Sep 5, 2014 · 5 comments
Open

Request for quiver plot #171

abahm opened this issue Sep 5, 2014 · 5 comments

Comments

@abahm
Copy link

abahm commented Sep 5, 2014

One feature is that is missing from the Julia plotting eco-system (Winston, Gadly, Plotly) generally is a 2D quiver plot (or vector plot, as can be seen here: http://en.wikipedia.org/wiki/File:VectorField.svg). This is a scatter plot with arrows pointing in certain directions instead of points. Quiver plots are highly useful in physics and in analysis of ordinary differential equations (and of course, I need one for my research :-) I consider Winston the first place to go to do my plotting, and having it supported here would increase the draw for undergraduate ODE teachers to turn to this great language for teaching support. I think it would be a big win for Julia if Winston supported this type of plot.

@lobingera
Copy link

something like #172 ?

You see x-y grid with 15 steps, random length and direction.

@abahm
Copy link
Author

abahm commented Sep 9, 2014

Yes! This would be great - perhaps it can be merged into the main repo.

On Tue, Sep 9, 2014 at 12:03 PM, Andreas Lobinger [email protected]
wrote:

something like #172 #172 ?

You see x-y grid with 15 steps, random length and direction.


Reply to this email directly or view it on GitHub
#171 (comment).

@lobingera
Copy link

A pull request is already the polite question to include the code into the main repo...

I never worked with quiver, is the interface x,y, direction, length OK?
Winston would have some infrastructure (i was impressed, that line color and line width didn't even need code from my side) to color the arrows also. Is this an option?
And for the style of the arrow, the current thing is just 3 lines, any better idea?

@abahm
Copy link
Author

abahm commented Sep 10, 2014

The quiver plot interfaces I've seen so far usually offer a (x, y, dx, dy)
interface where dx,dy are the offset from the x,y position that the head
of the arrow should land on, as opposed to (x,y,theta,r).

Perhaps it would be possible to include that interface as an option via
pairing up the xy as (v, dv)?

Secondarily, it would be nice to have the color and line width be
optionally vectors as well, so that multiple colors and scales of arrow are
possible.

I don't care too much about the arrow head style personally. But if there
is an easy way to offer variety, that would be nice for the community. It
could always be added later.

Thanks,
Alan

On Wed, Sep 10, 2014 at 1:39 AM, Andreas Lobinger [email protected]
wrote:

A pull request is already the polite question to include the code into the
main repo...

I never worked with quiver, is the interface x,y, direction, length OK?
Winston would have some infrastructure (i was impressed, that line color
and line width didn't even need code from my side) to color the arrows
also. Is this an option?
And for the style of the arrow, the current thing is just 3 lines, any
better idea?


Reply to this email directly or view it on GitHub
#171 (comment).

@nolta
Copy link
Member

nolta commented Sep 11, 2014

Yes, let's go with (x, y, dx, dy).

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

3 participants