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 get_segments method to collections.LineCollection #1649

Closed
wants to merge 71 commits into from
Closed

add get_segments method to collections.LineCollection #1649

wants to merge 71 commits into from

Conversation

toddrjen
Copy link
Contributor

@toddrjen toddrjen commented Jan 9, 2013

collections.LineCollection has a set_segments method that lets you set the vertices of the line segments in the collection. However, it has no corresponding get_segments method. This adds the method.

This version implements the suggestions from pelson on the last version of this pull request.

dmcdougall and others added 30 commits November 13, 2012 11:37
When it takes only one, the abscissae default to np.arange(len(y))
… Also, because of the recurring problems with non-framework Pythons, importing the Mac OS X backend will now fail (instead of just issuing a warning) if Python is not installed as a framework.
The new test functions test_mollweide_forward_inverse_closure and test_mollweide_inverse_forward_closure test that the forward->inverse and inverse->forward compositions are approximate identities.
… test

The goal was to exercise the MollweideAxes.MollweideTransform and MollweideAxes.InvertedMollweideTransform classes. The ax.transData property does not make use of either of these classes; the ax.transProjection property does.
Do not need to explicitly call set_zorder because it gets done
in the call to coll.update.
Document the C/C++ code guidelines
…euse the polygons can't work, so revert to the old method where each polygon is independent.
mdboom and others added 19 commits January 4, 2013 12:39
Make Axes.stem take at least one argument.
A disconnected callback cannot be reconnected
implemented inverse transform for Mollweide axes
hexbin log scale is broken in matplotlib 1.2.0
… `download_url` so `setup.py register` works without additional intervention.
Conflicts:
	lib/matplotlib/axes.py
As mentioned in the review, get_verts does not strictly do what its name implies.  Copy the comment from the set_verts declaration to explain why this is the case.
As mentioned in the review, the variables in get_segments should not have underscores.  This removes them.
@pelson
Copy link
Member

pelson commented Jan 10, 2013

Looks good to me 👍

Thanks @toddrjen

ianthomas23 and others added 8 commits January 10, 2013 08:35
Using a stricter check to see if Python was installed as a framework.
Ignore kdevelop4 project files
As mentioned in the review, get_verts does not strictly do what its name implies.  Copy the comment from the set_verts declaration to explain why this is the case.
As mentioned in the review, the variables in get_segments should not have underscores.  This removes them.
@toddrjen
Copy link
Contributor Author

The extra functions break add_collection

@toddrjen toddrjen closed this Jan 13, 2013
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.

None yet