Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented Sep 4, 2018

Test plots for SciTools/iris#3158

@ajdawson
Copy link
Member

ajdawson commented Sep 4, 2018

The case for streamplot latlon_2d_polar looks wrong, the streamlines extend outside the map boundary.

@pp-mo
Copy link
Member Author

pp-mo commented Sep 4, 2018

@ajdawson the streamlines extend outside the map boundary.

I don't see why that is necessarily wrong ?

If you compare the 'non-latlon 2d' outputs ...
quiver
and streamplot
... you see that the coordinate range of the quiver plot (i.e. the coords used) is x=[0, 5] and y=[0, 4],
but the bounding rectangle of the corresponding streamplot is x=[0, 6] and y=[0, 5].
It basically just does that.

Pragmatically, I'm not at all sure how this could be fixed, anyway. Presumably it would need special support in cartopy, because I don't think the matplotlib command provides sufficient flexibility to allow you to control this aspect ?

@pp-mo
Copy link
Member Author

pp-mo commented Sep 4, 2018

Ok, on closer inspection I found that all this is completely wrong-headed because streamplot does not do what I thought ...
See : SciTools/iris#3158 (comment)

@pp-mo
Copy link
Member Author

pp-mo commented Sep 4, 2018

I've now ditched streamplot entirely.
Does this look ok now @ajdawson and/or @lbdreyer ?

@lbdreyer
Copy link
Member

lbdreyer commented Sep 4, 2018

I'm happy with this. Just a shame about the streamplot

@lbdreyer lbdreyer merged commit 9fdfcd0 into SciTools:gh-pages Sep 4, 2018
lbdreyer added a commit that referenced this pull request Sep 4, 2018
lbdreyer added a commit that referenced this pull request Sep 4, 2018
@pp-mo pp-mo mentioned this pull request Sep 4, 2018
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