I tried to put some code to check overlapping texts.
The code runs, but I'm not sure if the code is correct. Texts still
overlap but I haven't checked if this is due to the incorrect code or
the input.
But I believe it gives you enough idea how to fix things.
You have several hundreds of candidate
Hi Jae-Joon & All,
On 28 February 2010 03:09, Jae-Joon Lee wrote:
> If I read your correctly,
>
> for l, b in zip(x, y):
>
> # And here I work with data coordinates (!)
>
> dashBox = Bbox.from_bounds(l, b, width+5, height+5)
> badness = 0
> for line in
If I read your correctly,
for l, b in zip(x, y):
# And here I work with data coordinates (!)
dashBox = Bbox.from_bounds(l, b, width+5, height+5)
badness = 0
for line in lines:
if line.intersects_bbox(dashBox):
b
On 28 February 2010 01:18, Jae-Joon Lee wrote:
> On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana
> wrote:
>> This code is not doing anything useful as I always get a badness of 0,
>> although I can see that the new text overlaps quite a lot of other
>> artists.
>>
>> Does anyone have some suggest
On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana wrote:
> This code is not doing anything useful as I always get a badness of 0,
> although I can see that the new text overlaps quite a lot of other
> artists.
>
> Does anyone have some suggestion on how to improve the code?
>
A snippet of code seld
Hi All,
I am trying to visualize some more text in an already rather
crowded 2D plot. As this new information I want to display is optional
(it depends on a use choice) but possibly very useful as information,
I would like to add it as text inside my plot, and possibly to add it
in a "smart" w