2
$\begingroup$

I'm hoping to obtain a larger picture of the calibration figure. The original command is

meas_fitter.plot_calibration()

I tried to use

meas_fitter.plot_calibration(figsize=(10,10))

but that doesn't work. How can I make it bigger? Thanks!

$\endgroup$

1 Answer 1

2
$\begingroup$

It seems you tried to recreate the plot of the calibration matrix from this tutorial. Which output a plot like something like below when you execute meas_fitter.plot_calibration().

enter image description here

But you want the image above to be larger. If that is the case, then you can change the image size as follows:

import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(10, 10))
meas_fitter.plot_calibration(ax)
$\endgroup$
2
  • $\begingroup$ Thanks so much:) $\endgroup$
    – ZR-
    Commented Feb 5, 2021 at 1:58
  • $\begingroup$ No problem! Glad I was able to help. :) $\endgroup$
    – KAJ226
    Commented Feb 5, 2021 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.