Skip to content

Commit 297a871

Browse files
authored
Set usetex=False by default (#14)
* Set usetex=False by default * Don't plot if plotted * formatting * cleanup
1 parent d5b1f05 commit 297a871

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/maxplotlib/canvas/canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,14 @@ def savefig(
147147
full_filepath = filename
148148
else:
149149
full_filepath = f"{filename_no_extension}_{layers}.{extension}"
150-
# print(f"Save to {full_filepath}")
150+
151151
if self._plotted:
152152
self._matplotlib_fig.savefig(full_filepath)
153153
else:
154154

155155
fig, axs = self.plot(
156156
show=False, backend="matplotlib", savefig=True, layers=layers
157157
)
158-
# print('done plotting')
159158
fig.savefig(full_filepath)
160159
if verbose:
161160
print(f"Saved {full_filepath}")
@@ -174,6 +173,7 @@ def plot_matplotlib(self, show=True, savefig=False, layers=None, usetex=False):
174173
filename (str, optional): Filename to save the figure.
175174
show (bool): Whether to display the plot.
176175
"""
176+
177177
tex_fonts = plt_utils.setup_tex_fonts(fontsize=self.fontsize, usetex=usetex)
178178

179179
plt_utils.setup_plotstyle(

0 commit comments

Comments
 (0)