implement path_effects for Line2D objects #655

wants to merge 2 commits into from

4 participants


This patch implements path_effects for Line2D objects.

Here is a related request on the mailing list

The current change modifies the Line2D class to take a single path_effects argument. However, there are two paths involved with a single Line2D instance.

  • a path for the line
  • a path for the marker edge & face

And currently, same path_effects is applied to both paths.
I'm not sure if there is a need to apply separate path_effects for those two.
We may need an optional argument (e.g., marker_path_effects).


I would like to test this PR, but it would be easier if there were some example or test. Could you add something simple?

Matplotlib Developers member

I tried this and got a nice shadow on the legend! Works fine for me on Mac OS X 10.7, Python 2.7.2 and PDF backend. When I checked out your code I had to fiddle with a conflict in, just to let you know. Otherwise this looks fine.

Matplotlib Developers member

Sorry this got "dropped" for so long. I think this needs a regression test (do we have any for path effects yet? Maybe that warrants a new test directory). Other than that and the other comments above, I think this is probably ready to merge.

Matplotlib Developers member

Also -- can you rebase against the current master?


I second the request to see this rebased against master so we can move this PR forward

@leejjoon leejjoon closed this Jul 16, 2012

The rebased version of this pull request is available at #1015. I am closing this PR.

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