-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
API: default changesRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
Description
Hi all,
I could not find a similar issue so forgive me if its a duplicate. We are trying to get a couple of our tests suites to execute on mpl 1.x and 2.0 without having to duplicate the baseline images. The classic
style helps a lot but there are still many small issues mainly related to text positioning. Is there a way I can force it to behave the same on mpl 1.x and 2.0?
A simple example demonstrating the problem:
import matplotlib.pyplot as plt
plt.style.use("classic")
plt.plot([1, 2, 3, 4])
plt.savefig("out.png")
The difference is subtle but enough to cause issues when testing - the text baseline (or center line I guess) is different for both. This was run for mpl 1.5.3 and mpl 2.0.0.
Metadata
Metadata
Assignees
Labels
API: default changesRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.