GitHubLionel / wxMathPlot

An enhanced version of the wxMathPlot component for wxWidgets
14 stars 5 forks source link

Document mpInfoLegend members and GetPointed bugs. #58

Closed DRNadler closed 3 months ago

DRNadler commented 3 months ago

@GitHubLionel - Will you be able to fix this? I've suggested a fix; just track bounding boxes for each plot legend in a vector or list, then iterate over the vector and check "IsInside"... Thanks!

GitHubLionel commented 3 months ago

I don't think it is so easy. Legend is drawn in a bitmap for speed. So for example when you resize the window, just the bitmap is redrawn, but the coordinates of each plot legend have changed.

DRNadler commented 3 months ago

Resize is infrequent so speed not so important. Anyway, suggested correction will result in: