Hello,
I don’t know if this can be considered as a bug, the behaviour is not wrong but maybe can be improved. If I want to plot a marker and a text on top of it:
xxx = -250.
yyy = 20.
fig, ax = plt.subplots()
ax.plot(xxx, yyy, "r*")
ax.text(xxx, yyy, "red star")
plt.show()
this works, but now let’s say I want to only add the text at the same location,
fig, ax = plt.subplots()
ax.text(xxx, yyy, "I'm here")
plt.show()
this won’t work because the created figure will be too large.
...
ValueError: Image size of 84055x4388 pixels is too large. It must be less than 2^16 in each direction.`
Maybe the ax
limits could be determined as if there were a marker at the location of the text?