Skip to content

Commit d080723

Browse files
committed
Merge branch 'devel' into 5-allow-setting-textusetex-to-false
2 parents 1b50734 + d5b1f05 commit d080723

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# maxplotlib
22

3+
This is a wrapper for matplotlib so I can produce figures with consistent formatting. It also has some pretty nice additions such as using layers and exporting to tikz.
4+
5+
Related packages: [maxtikzlib](https://github.com/max-models/maxtikzlib) and [maxtexlib](https://github.com/max-models/maxtexlib).
6+
37
## Install
48

59
Create and activate python environment
@@ -22,8 +26,4 @@ Additional dependencies for developers can be installed with
2226
pip install -e ".[dev]"
2327
```
2428

25-
Run the code with
26-
27-
```
28-
maxplotlib
29-
```
29+
Some examples can be found in `tutorials/`

src/maxplotlib/canvas/canvas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ 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:
@@ -174,7 +174,7 @@ def plot_matplotlib(self, show=True, savefig=False, layers=None, usetex=False):
174174
filename (str, optional): Filename to save the figure.
175175
show (bool): Whether to display the plot.
176176
"""
177-
print(f"Plotting with maxplotlib ")
177+
178178
tex_fonts = plt_utils.setup_tex_fonts(fontsize=self.fontsize, usetex=usetex)
179179

180180
plt_utils.setup_plotstyle(

0 commit comments

Comments
 (0)