ibell / coolprop

Deprecated version - go to
https://github.com/CoolProp/CoolProp
MIT License
24 stars 16 forks source link

Inline Labels - Python Plotting #56

Open lgpage opened 11 years ago

lgpage commented 11 years ago

In-line Labels for iso-lines are currently broken. Checklist for this:

ibell commented 11 years ago

Shall we move this to 4.0?

lgpage commented 11 years ago

Let me first see how far I can get with this in the next week before moving it to v4.0

lgpage commented 11 years ago

anyone know of an easy way to test if two matplotlib text objects overlap? I have a solution in mind, but it will require some coding, so If you know of a simple solution please let me know.

ibell commented 11 years ago

You can get the bounding box for each and then check the minimum and maximum values I think.

On Wed, Oct 23, 2013 at 5:04 PM, lgpage notifications@github.com wrote:

anyone know of an easy way to test if two matplotlib text objects overlap? I have a solution in mind, but it will require some coding, so If you know of a simple solution please let me know.

— Reply to this email directly or view it on GitHubhttps://github.com/ibell/coolprop/issues/56#issuecomment-26912586 .

lgpage commented 10 years ago

I tried looking into the bounding box of the text, unfortunately I cannot make heads or tails of the transform object that gets applied to the text and bbox. All I've been able to get is the local transform bounds between 0 and 1. For now I'll carry on with the solution I have in mind and see what I can come up with.

lgpage commented 10 years ago

This is turning out to be more of a fight that I thought. I can have a manual label placement method done for v4.0, but I doubt that I'll be able to get an optimized label placement method (to minimize overlapping) done.