Skip to content

Commit ddb03a1

Browse files
committed
Removed import
1 parent e1be0c2 commit ddb03a1

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/maxplotlib/canvas/canvas.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import matplotlib.patches as patches
66
import matplotlib.pyplot as plt
77
from plotly.subplots import make_subplots
8-
from pygame import ver
98
from tikzpics import TikzFigure
109

1110
from maxplotlib.backends.matplotlib.utils import (
@@ -326,15 +325,15 @@ def plot_matplotlib(
326325
if verbose:
327326
print("Generating Matplotlib figure...")
328327

329-
# tex_fonts = setup_tex_fonts(fontsize=self.fontsize, usetex=usetex)
328+
tex_fonts = setup_tex_fonts(fontsize=self.fontsize, usetex=usetex)
330329

331-
# setup_plotstyle(
332-
# tex_fonts=tex_fonts,
333-
# axes_grid=True,
334-
# axes_grid_which="major",
335-
# grid_alpha=1.0,
336-
# grid_linestyle="dotted",
337-
# )
330+
setup_plotstyle(
331+
tex_fonts=tex_fonts,
332+
axes_grid=True,
333+
axes_grid_which="major",
334+
grid_alpha=1.0,
335+
grid_linestyle="dotted",
336+
)
338337
if verbose:
339338
print("Plot style set up.")
340339
print(f"{self._figsize = } {self._width = } {self._ratio = }")
@@ -357,7 +356,7 @@ def plot_matplotlib(
357356
squeeze=False,
358357
dpi=self.dpi,
359358
)
360-
return
359+
361360
for (row, col), subplot in self.subplots.items():
362361
ax = axes[row][col]
363362
if isinstance(subplot, TikzFigure):

tutorials/tutorial_07_tikzpics.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"\n",
3535
"\n",
3636
"# TODO: Uncomment if pdflatex is installed\n",
37-
"# c.show(backend=\"tikzpics\")"
37+
"c.show(backend=\"tikzpics\")"
3838
]
3939
}
4040
],

0 commit comments

Comments
 (0)