Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum matplotlib version to 3.3.0 #7175

Merged
merged 11 commits into from
Oct 28, 2021
Prev Previous commit
Next Next commit
Fix version string comparison typing
mtreinish committed Oct 25, 2021
commit 4dcafed3d65238fa814fb6648fb70aa7dcdb6402
2 changes: 1 addition & 1 deletion qiskit/visualization/bloch.py
Original file line number Diff line number Diff line change
@@ -395,7 +395,7 @@ def render(self, title=""):
self.fig = plt.figure(figsize=self.figsize)

if not self._ext_axes:
if tuple(matplotlib.__version__.split(".")) >= (3, 4, 0):
if tuple(int(x) for x in matplotlib.__version__.split(".")) >= (3, 4, 0):
self.axes = Axes3D(
self.fig, azim=self.view[0], elev=self.view[1], auto_add_to_figure=False
)
2 changes: 1 addition & 1 deletion qiskit/visualization/transition_visualization.py
Original file line number Diff line number Diff line change
@@ -252,7 +252,7 @@ def visualize_transition(circuit, trace=False, saveas=None, fpg=100, spg=2):
starting_pos = _normalize(np.array([0, 0, 1]))

fig = plt.figure(figsize=(5, 5))
if tuple(matplotlib.__version__.split(".")) >= (3, 4, 0):
if tuple(int(x) for x in matplotlib.__version__.split(".")) >= (3, 4, 0):
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)
else: