Hello,
I’m having an issue plotting an FFT series on a Logarithmic axis using an Impulse chart. I have a ZoomExtentsModifier on my Surface (executes on MouseDoubleClick) that seems to only work for the X (non-log) axis. The Y axis doesn’t change at all when I double click, or when I call DataSeries.InvalidateParentSurface(RangeMode.ZoomToFit) from my ViewModel. If I change my axis to NumericAxis then ZoomExtents/ZoomToFit works fine.
Any suggestions would be appreciated.
Thanks.
- jsacks asked 10 years ago
- You must login to post comments
Hi,
FFT series seems to have negative values inside. If so, it can’t be rendered with the Logarithmic axis.
Does this make sense?
Best regards,
Yuriy
- Yuriy Zadereckiy answered 10 years ago
-
Hi Yuriy, Sorry for the delay, I was apparently not subscribed to update notifications on this thread. I double checked the values that are being plotted, and confirmed that none of them are negative. The plot is sort of rendered, but ZoomExtents() doesn't work on the y-axis (i.e. if I pan the chart and then double click to trigger ZoomExtents, the x-axis zooms but the y-axis doesn't change). Probably related, I initially have to pan around to find the data when the chart first loads. Thanks for your help.
-
Hi there, As the example shows, you have zeros in your data, so the axis works unpredictable as cannot calculate lg(0)(take a look at cSeries2 the very first data point). So if you exclude all zeros it should work as expected. Best regards, Yuriy
-
Ah you are right. I checked for negative numbers but not zeros. Removing the zeros fixes the issues. Thanks for your help.
- You must login to post comments
Please login first to submit.