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

NF - New legend example with line collection #4771

Merged
merged 1 commit into from Jul 28, 2015

Conversation

AmyTeegarden
Copy link
Contributor

This is a new example with a custom legend handler. It displays all of the lines in a line collection instead of just the first one.

@AmyTeegarden
Copy link
Contributor Author

This file works with my version of matplotlib (1.4.3). It looks like there's some code in the 1.5 version of set_color for Line2D that won't accept the output of get_colors()[0]. I'm not sure how to make this work. It seems odd that a set_color method won't work with a get_colors() method, though.

@tacaswell
Copy link
Member

Thanks for the example and good job finding a regression!

@tacaswell tacaswell added this to the next point release milestone Jul 24, 2015
tacaswell added a commit to tacaswell/matplotlib that referenced this pull request Jul 24, 2015
@AmyTeegarden
Copy link
Contributor Author

Do I need to resubmit the pull request or do anything else now?

@WeatherGod
Copy link
Member

You can "fetch" from this repo and rebase this branch off of the updated master. Then push it up. Assuming that this repo is called "origin" and your clone is called "myrepo" (and assuming you are on this branch):

git fetch origin
git rebase origin/master
git push myrepo legend_demo5

That should retrigger the Travis checks.

@AmyTeegarden
Copy link
Contributor Author

Thanks, WeatherGod. That seems to have done the trick. Ah -- should those other commits be in this, too, or did I do the rebase incorrectly?

@WeatherGod
Copy link
Member

eh, looks benign enough. Github is still showing that this PR changes only a single file. You'll get the hang of the git workflow after a few tries.

@WeatherGod
Copy link
Member

oh, oops. I thought that #4778 was merged already. It wasn't. I just merged it in, so you can now go ahead and fetch/rebase/push.

AmyTeegarden pushed a commit to AmyTeegarden/matplotlib that referenced this pull request Jul 24, 2015
@AmyTeegarden
Copy link
Contributor Author

Okay, I'm not quite certain why the checks failed this time. It was an issue with matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_usetex, and ultimately the problem was RuntimeError: LaTeX was not able to process the following string: '$1.2$'

Sorry if I'm doing this all wrong -- this is my first time contributing to a project and I'm really not sure what I'm doing. Also, I noticed (here: https://github.com/matplotlib/matplotlib/wiki/MEP12) that new categories are being made for the examples. I'm not sure if this should go under "Text, labels, and annotations," "Subplots, axes, and figures," or something else.

@tacaswell
Copy link
Member

That failure is an intermittent failure related to Travis step on its own
toes.

On Sat, Jul 25, 2015, 1:41 PM AmyTeegarden notifications@github.com wrote:

Okay, I'm not quite certain why the checks failed this time. It was an
issue with
matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_usetex, and
ultimately the problem was RuntimeError: LaTeX was not able to process the
following string: '$1.2$'

Sorry if I'm doing this all wrong -- this is my first time contributing to
a project and I'm really not sure what I'm doing. Also, I noticed (here:
https://github.com/matplotlib/matplotlib/wiki/MEP12) that new categories
are being made for the examples. I'm not sure if this should go under
"Text, labels, and annotations," "Subplots, axes, and figures," or
something else.


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

WeatherGod added a commit that referenced this pull request Jul 28, 2015
NF - New legend example with line collection
@WeatherGod WeatherGod merged commit db4b970 into matplotlib:master Jul 28, 2015
@tacaswell
Copy link
Member

@AmyTeegarden Thank you and congratulations on your first contribution to mpl (and hopefully not the last)!

Documentation is something that we as a community tend to under-do (my self included), but which is as or more important that the code.

You can see the built version of this example at http://matplotlib.org/devdocs/examples/pylab_examples/legend_demo5.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants