-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heatmap: Left edge does not start at zero #3806
Comments
Seems to be https://scottplot.net/cookbook/5.0/Heatmap/HeatmapInverted/ which I think is functioning as expected |
Thank you very much for your reply. Both X and Y coordinates are set in this coordinate system, the X coordinates are from 0 to 65, but the actual graph shows that the X-axis appears to start at -0.5. The same XY coordinate system has the phenomenon of outside the set range。 |
Thanks for the clarification @FengQingYangDad! I'll open this issue back up and we can take a closer look shortly and hopefully arrive at a good solution for the next release 👍 |
thank you very much! |
Default behavior is that the lower left cell is centered at (0, 0) resulting in the behavior you observe: double[,] data = {
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
myPlot.Add.Heatmap(data); Set cell alignment to lower left for the bottom left corner of the heatmap to be at the origin: double[,] data = {
{ 1, 2, 3 },
{ 4, 5, 6 },
{ 7, 8, 9 },
};
var hm = myPlot.Add.Heatmap(data);
hm.CellAlignment = Alignment.LowerLeft; I'll add a cookbook recipe to make this feature more discoverable 👍 |
Email from Feng Q.
The text was updated successfully, but these errors were encountered: