-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Suggestion: Add a filter function for artists #173
Comments
An interesting idea! Is there a simple filter you have in mind? |
I was thinking of providing a function that accepts an object as an argument and returns True when the object should be added to the output, and False otherwise. Then, as the user, I would return False if the fillstyle of a line is None or when the object is a PathCollection (since I know I didn't create these objects). |
I guess that's possible. Do you have a good idea for a small test for this? |
Sure. This code produces a few unnecessary paths
These paths are created by savefig but they are visible when saved in tikz.
to filter these paths out. |
When using matplotlib2tikz, sometimes some objects are produced which are invisible in a plot but somehow visible in the pgfplot (usually paths with 'fill opacity=0'). I understand that it is difficult to account for all cases, but I think a nice and easy feature would be for matplotlib2tikz to call a user supplied function that filters unwanted objects.
The text was updated successfully, but these errors were encountered: