Skip to content

Commit 4e8211a

Browse files
committed
Fixes
1 parent d6108b6 commit 4e8211a

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies = [
1818
"matplotlib",
1919
"plotly",
2020
"pytest",
21+
"ruff",
2122
"black",
2223
"isort",
2324
"jupyterlab",

src/maxplotlib/subfigure/line_plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22
import plotly.graph_objects as go
33

4+
import maxplotlib.subfigure.tikz_figure as tf
45

56
class LinePlot:
67
def __init__(self, **kwargs):

tutorials/tutorial_02.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 3,
5+
"execution_count": 1,
66
"id": "3816e8ed-5107-4d8c-9e78-f801af118811",
77
"metadata": {},
88
"outputs": [],
@@ -227,7 +227,7 @@
227227
],
228228
"metadata": {
229229
"kernelspec": {
230-
"display_name": "Python 3 (ipykernel)",
230+
"display_name": "env_maxplotlib",
231231
"language": "python",
232232
"name": "python3"
233233
},
@@ -241,7 +241,7 @@
241241
"name": "python",
242242
"nbconvert_exporter": "python",
243243
"pygments_lexer": "ipython3",
244-
"version": "3.13.0"
244+
"version": "3.9.20"
245245
}
246246
},
247247
"nbformat": 4,

tutorials/tutorial_03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import maxplotlib.canvas.canvas as canvas
22

33
c = canvas.Canvas(width=2000, ratio=0.5)
4-
sp = c.add_subplot(grid=True, xlabel='(x - 10) * 0.1', ylabel='10y',yscale=10,xshift=-10,xscale=0.1)
4+
sp = c.add_subplot(grid=False, xlabel='(x - 10) * 0.1', ylabel='10y',yscale=10,xshift=-10,xscale=0.1)
55
sp.add_line([0, 1, 2, 3], [0, 1, 4, 9], label="Line 1",layer=0)
66
sp.add_line([0, 1, 2, 3], [0, 2, 3, 4], linestyle='dashed', color='red', label="Line 2",layer=1)
77
#c.plot()

tutorials/tutorial_05.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import maxplotlib.canvas.canvas as canvas
2+
import numpy as np
3+
4+
c = canvas.Canvas(width=2000, ratio=0.5)
5+
sp = c.add_subplot(grid=True, xlabel='x', ylabel='y')
6+
x = np.arange(0,2 * np.pi, 0.01)
7+
y = np.sin(x)
8+
sp.add_line(x, y, label=r"$\sin(x)$")
9+
# c.plot()
10+
c.savefig(filename='figures/tutorial_05_figure_01.pdf')

tutorials/tutorial_1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,7 +2109,7 @@
21092109
],
21102110
"metadata": {
21112111
"kernelspec": {
2112-
"display_name": "Python 3 (ipykernel)",
2112+
"display_name": "env_maxplotlib",
21132113
"language": "python",
21142114
"name": "python3"
21152115
},
@@ -2123,7 +2123,7 @@
21232123
"name": "python",
21242124
"nbconvert_exporter": "python",
21252125
"pygments_lexer": "ipython3",
2126-
"version": "3.13.0"
2126+
"version": "3.9.20"
21272127
}
21282128
},
21292129
"nbformat": 4,

0 commit comments

Comments
 (0)