ScottPlot: DataLogger ViewSlide() does not work as expected when using right axes
Issue: When I add a right Axis to my plot the DataLogger.ViewSlide() stops working as expected.
ScottPlot Version: 5.0.25
Code Sample: To reproduce, I added the last 2 lines in your demo datalogger file
Logger = formsPlot1.Plot.Add.DataLogger();
var axis = formsPlot1.Plot.Axes.AddRightAxis();
Logger.Axes.YAxis = axis;
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (24 by maintainers)
Commits related to this issue
- AxisManager: Color() overload that accepts a specified axis #3637 — committed to ScottPlot/ScottPlot by swharden 3 years ago
- XAxisBase and YAxisBase: use narrower interface #3637 — committed to ScottPlot/ScottPlot by swharden 3 years ago
- Test: demonstrate multi-render of right-axis-only plot demonstrates issue #3637 — committed to ScottPlot/ScottPlot by swharden 3 years ago
- Axis: prevent left axis from appearing if no plottables use it resolves #3637 — committed to MCF/ScottPlot by swharden 3 years ago
Hi @jpgarza93, thanks for reporting this! I think it has been fixed in #3641 and will be working better in the next release (5.0.56). If not, let me know and we can re-open this issue and take a closer look 👍
@swharden thank you for your dedication, time, and tireless efforts!
Got it! Thanks for your persistence @jpgarza93. This should be fixed in the next release 🚀 https://github.com/ScottPlot/ScottPlot/commit/d0796fa13be2779267d75ad055a50640aa3bab43
Here’s an even simpler reproducible example. It confirms the issue is not related to the datalogger.
Resizing the window makes the left axis appear.
Tested it with a data logger and it works the same 👍
Oh, sorry 😅 I was addressing another issue today that involved the streamer and I mixed-up the use case
I’m pretty sure the concept will be the same for data loggers… I’ll see if I can adapt that demo to test it now
Ah, gotcha. It sounds like you’re using multiple dataloggers. Thanks for the clarification! I’ll modify the demo app to test this and follow-up shortly 👍
Thanks for the tip! I’ll look into it now 👍