GitHubLionel / wxMathPlot

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

Some bars are not shown correctly #5

Closed asmwarrior closed 1 year ago

asmwarrior commented 1 year ago

See the image below, I think some bars are not shown correctly(they are missing). Because those bars are beyond the Y limit.

image

GitHubLionel commented 1 year ago

Hi Yes I saw this behaviour and I will investigate how to correct this. View bar is quite "experimental" (I do not use it). I just add it after have seeing the code of Naiche that I found very complicated. If we allow "draw outside margins", there is no cut, so the problem is in the SetClippingRegion and the computation of m_plotBondaries.

GitHubLionel commented 1 year ago

Well it is corrected. In fact, there was some old outdated code !

asmwarrior commented 1 year ago

Thanks, I see the fix now.

But I'm see other wx related assert messagebox when I try to change the line style to "bar", so I will debug the code to see whether it comes from my own code or not.

asmwarrior commented 1 year ago

Hi, with the latest git head version, I see the bars are shown correctly. And I don't see the assert messagebox now, so I think this issue is fixed, thanks.