You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make a 2x2 grid of plots, all set to the same size. While the first column of the grid behaves as expected, with the y-axes aligned, the second column has the issue that the bottom right plot is slightly too far over to the left, breaking the alignment of the y axes. Below is my MWE code; I have tried and seen this on both PyPlot and GR backends. Attached is savefig() output from my system.
Julia version is 1.2.0, current released packages for Plots.jl and backends used, on Linux/AMD64.
Bump. I am having the same issue. Note that matplotlib handles this correctly.
Julia
x =rand(100); y =rand(100)
f1 =scatter(x, y,)
f2 =scatter(x, y,)
f3 =scatter(x, y)
f4 =scatter(x, y, yticks=[])
plot(f1, f2, f3, f4)
Python
x = np.random.rand(100)
y = np.random.rand(100)
fig, axes = plt.subplots(2, 2, figsize=(8, 8))
for ax in axes.flat:
ax.scatter(x, y)
axes[1,1].set_yticklabels(());
I am trying to make a 2x2 grid of plots, all set to the same size. While the first column of the grid behaves as expected, with the y-axes aligned, the second column has the issue that the bottom right plot is slightly too far over to the left, breaking the alignment of the y axes. Below is my MWE code; I have tried and seen this on both PyPlot and GR backends. Attached is
savefig()
output from my system.Julia version is 1.2.0, current released packages for Plots.jl and backends used, on Linux/AMD64.
plot_alignment_issue_MWE.pdf
The text was updated successfully, but these errors were encountered: