proplot icon indicating copy to clipboard operation
proplot copied to clipboard

Error in sharing axis

Open cvanelteren opened this issue 5 months ago • 0 comments

Description

Sharing axis does not perform well in scatter or plot. I noticed this the other day when plotting data that is in different ranges. First, we notice how the sharing of the axis will differ depending on the order or plotting. Second, we notice how in both cases the range is not properly adjusted.

image image

Steps to reproduce

import proplot as plt, numpy as np

x = np.random.rand(10)
y = np.random.rand(10)
fig, ax = plt.subplots(ncols = 2)
ax[0].scatter(x, y)
ax[1].scatter(x, y * 10)
fig.show()

fig, ax = plt.subplots(ncols = 2)
ax[0].scatter(x, y * 10)
ax[1].scatter(x, y)
fig.show()

Proplot version

mpl 3.9.2 proplot '0.9.91.post4+dirty'

cvanelteren avatar Sep 26 '24 07:09 cvanelteren