I have some code that works perfectly on my local machine with Python 3.7 but fails on a distant server with Python 3.7 also.
What is weird is that the fail error is AttributeError: 'AxesSubplot' object has no attribute 'sharex'. Yet, AxesSubplot should have a sharex as an attribute so I don't understand where it can come from.
For debugging, here is a very short piece of code that doesn't work on my distant server:
import numpy as np ; import matplotlib.pyplot as plt
x=np.arange(50) ; y = x
title='test'
plt.close(title)
fig=plt.figure(title, clear=True)
fig.suptitle(title)
ax1,ax2=fig.subplots(nrows=2)
ax1.sharex(ax2)
Do you see what can be the origin of the problem?