Polar Axis: convert from an IPlottable to an IGrid#4152
Polar Axis: convert from an IPlottable to an IGrid#4152CoderPM2011 wants to merge 3 commits intoScottPlot:mainfrom
Conversation
|
Hi @CoderPM2011, thanks for this PR! It seems to do a lot more than fix the default plottables colors as described in #4105 😅 I also see the code in this PR doesn't actually build. I probably won't take time to figure out how to get it to build before trying it out. I see this PR makes Recognizing the core issue of wanting to improve autoscaling behavior, is it possible that we can move scaling behavior for polar axes out of the Thanks for your work on this PR, and thanks for your thoughts on my suggestion as well! Scott |
Following-up, I recognize that I titled #4105 poorly 😅 The issue describes the problem (the color thing), but the title suggests an implementation (making IPlottable an IGrid). I wanted to voice that @CoderPM2011 did a good job applying the implementation suggestion in that title, and that it was my fault that there was probably a simpler way to achieve that core functionality. I'm merging in #4175 which I think solves the color issue. I think this PR may still be worth building out (to improve autoscaling behavior?), but it no longer needs to solve the color issue 👍 Sorry for that confusion! |
It's okay. 😉 While I was trying to fix the Cookbook, I discovered that this PR has other issues as well. |
I'm glad you understand! I'll close this PR assuming things are all right where they landed, and if you decide to implement some functionality like autoscaling let's pick up that topic in a new PR 😎 |
resolve #4105
In this PR, I have adjusted certain interfaces to address the rendering area and zoom issues. However, I am not completely satisfied with these modifications, as they were made directly based on the needs of the Polar Axis without extensive consideration.
The key issue lies in the Polar Axis, where the rendering restrictions do not necessarily align with the IPlottable interface. To achieve a more consistent and accurate rendering, it may be necessary for the IGrid interface to participate in the chart rendering or data range decision-making process, similar to the IPlottable interface.
result image
sample code