MarcSerraPeralta / surface-sim

Repository for simulations of surface code experiments
MIT License
0 stars 1 forks source link

Add font size option in layout plotter #86

Closed MarcSerraPeralta closed 1 week ago

MarcSerraPeralta commented 1 week ago

Closes #85.

It does not improve the default font size because it is not possible to compute a proper font size. In matplotlib, the size of the axis is not explicit (as it can be changed with Figure.tight_layout), so it is not possible to adapt the font size as a function of the layout coordinate range, axis size and default circle radius. The solution is adding an option in surface_sim.layout.plot to change the default font size easily.