gonum / plot

A repository for plotting and visualizing data
BSD 3-Clause "New" or "Revised" License
2.72k stars 202 forks source link

plot: Align doesn't exactly align axes #733

Open sbinet opened 3 years ago

sbinet commented 3 years ago

as can be noticed from the produced plot in #732, (even with the 1:1 ratio), axes are not exactly aligned between plots (Y-axis for top-left/bottom-left, X-axis for bottom-left/bottom-right): rotated-canvas

I've tested that with release up to v0.7.0 (so it's not a fall out from the "fonts revamp" work.) rot-v0 7 0

sbinet commented 3 years ago

ha! it would seem the misalignment is coming from the glyphs being used for the scatter plot. playing with the circle radius: rotated-canvas

so it's probably some interplay between plot.Plot.DataCanvas and plot.GlyphBoxer @ctessum any insight?