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 support for Matplotlib streamplot #384

Closed
guyer opened this issue Sep 19, 2014 · 16 comments
Closed

Add support for Matplotlib streamplot #384

guyer opened this issue Sep 19, 2014 · 16 comments

Comments

@guyer
Copy link
Member

guyer commented Sep 19, 2014

A request was made on the mailing list (not in gmane for some reason):

In short, is there a way to change the matplotlibVectorViewer function from plotting quiver() to plotting streamplot()?

Imported from trac ticket #641, created by guyer on 06-12-2013 at 14:01, last modified: 09-30-2013 at 21:44

@fipymigrate
Copy link

In d6d37e0:

#CommitTicketReference repository="fipy" revision="d6d37e0d78388731a7a1861a82f632566105b14a"
Prelimary viewer using Matplotlib `streamplot()`

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 588854d:

#CommitTicketReference repository="fipy" revision="588854d2929223b81538219fa5591567df9cd6db"
Switch to griddata

Remove cruft

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 2a36a2d:

#CommitTicketReference repository="fipy" revision="2a36a2da366c498bc3a4db7574503f575eb45b74"
Change `swapaxes(0,1)` to `.T`

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 8b7b9ec:

#CommitTicketReference repository="fipy" revision="8b7b9ecf7ba04d9038967d253d82b0248ee4f767"
Comment on concave meshes

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In bc98aef:

#CommitTicketReference repository="fipy" revision="bc98aefaf99c86c753cd361d395b3282cdd2d8cd"
Change `min` and `max` to `numerix.nanmin` and `numerix.nanmax`

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 545fc38:

#CommitTicketReference repository="fipy" revision="545fc384303e30ed270a6e37668d14607e3d6249"
Restore data clipping and log scaling

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 3ee93da:

#CommitTicketReference repository="fipy" revision="3ee93da42a9be47394738fcb7364465c9e24f0ff"
(Failed) attempt to remove stream lines without clearing axes

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 2665df6:

#CommitTicketReference repository="fipy" revision="2665df612606ea53fb1b0043dd0d878ccf5655cd"
Document need for `.cla()`

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In ae8babf:

#CommitTicketReference repository="fipy" revision="ae8babf5ef9eb596b751324d7c0d0babdf5674ee"
Consolidate calculation of mesh extents

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 4230131:

#CommitTicketReference repository="fipy" revision="4230131ab70a580d1f554279a7dd15506c9b4f6e"
Allow plotting a `FaceVariable`

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 75dab6a:

#CommitTicketReference repository="fipy" revision="75dab6a6679bba5fe9432973881111c8410be204"
Remove obsolete arguments and tests

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@fipymigrate
Copy link

In 7f188ba:

#CommitTicketReference repository="fipy" revision="7f188ba479a61afebc89d5c8c1a4bf9b375d14a5"
Add support for all `pyplot.streamplot()` arguments

Special handling for linewidth and color, each of which must be a scalar
`MeshVariable` that agrees with the supplied variables.

Addresses issue #384

Trac comment by Jonathan Guyer guyer@nist.gov on 06-12-2013 at 14:14

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

Pull request


The following changes since commit 873c55ef480a761592953b8ca81f5581f061ba20:

  Merge branch 'ticket383-fix_Git_and_ADMINISTRATA_errors' into develop (2013-04-02 13:37:10 -0400)

are available in the git repository at:


  ssh://git@code.matforge.org/nist/fipy.git ticket641-support_Matplotlib_streamplot

for you to fetch changes up to 7f188ba479a61afebc89d5c8c1a4bf9b375d14a5:

  Add support for all `pyplot.streamplot()` arguments (2013-06-12 14:11:07 -0400)

----------------------------------------------------------------
Jonathan Guyer (12):
Prelimary viewer using Matplotlib `streamplot()`
Switch to griddata
Change `swapaxes(0,1)` to `.T`
Comment on concave meshes
Change `min` and `max` to `numerix.nanmin` and `numerix.nanmax`
Restore data clipping and log scaling
(Failed) attempt to remove stream lines without clearing axes
Document need for `.cla()`
Consolidate calculation of mesh extents
Allow plotting a `FaceVariable`
Remove obsolete arguments and tests
Add support for all `pyplot.streamplot()` arguments

 fipy/meshes/abstractMesh.py                                |  11 ++
 fipy/viewers/matplotlibViewer/__init__.py                  |   2 +
 fipy/viewers/matplotlibViewer/matplotlib2DContourViewer.py |  13 +--
 fipy/viewers/matplotlibViewer/matplotlibStreamViewer.py    | 213 +++++++++++++++++++++++++++++++++++++++
 fipy/viewers/viewer.py                                     |   4 +-
 5 files changed, 230 insertions(+), 13 deletions(-)
 create mode 100644 fipy/viewers/matplotlibViewer/matplotlibStreamViewer.py

Trac comment by guyer on 06-12-2013 at 14:21

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

bump

Trac comment by guyer on 07-11-2013 at 08:42

@wd15
Copy link
Contributor

wd15 commented Sep 19, 2014

Merged pull request with [0290763/fipy]

Trac comment by wd15 on 07-11-2013 at 16:47

@guyer
Copy link
Member Author

guyer commented Sep 19, 2014

Marking milestone

Trac comment by guyer on 09-30-2013 at 21:44

@guyer guyer closed this as completed Sep 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants