Skip to content

Commit ce0ec07

Browse files
committed
Removed unused args
1 parent 5c47205 commit ce0ec07

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/maxplotlib/subfigure/line_plot.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def add_line(
106106
x_data,
107107
y_data,
108108
layer=0,
109-
plot_type="plot",
110109
**kwargs,
111110
):
112111
"""
@@ -122,34 +121,34 @@ def add_line(
122121
"x": np.array(x_data),
123122
"y": np.array(y_data),
124123
"layer": layer,
125-
"plot_type": plot_type,
124+
"plot_type": "plot",
126125
"kwargs": kwargs,
127126
}
128127
self._add(ld, layer)
129128

130-
def add_imshow(self, data, layer=0, plot_type="imshow", **kwargs):
129+
def add_imshow(self, data, layer=0, **kwargs):
131130
ld = {
132131
"data": np.array(data),
133132
"layer": layer,
134-
"plot_type": plot_type,
133+
"plot_type": "imshow",
135134
"kwargs": kwargs,
136135
}
137136
self._add(ld, layer)
138137

139-
def add_patch(self, patch, layer=0, plot_type="patch", **kwargs):
138+
def add_patch(self, patch, layer=0, **kwargs):
140139
ld = {
141140
"patch": patch,
142141
"layer": layer,
143-
"plot_type": plot_type,
142+
"plot_type": "patch",
144143
"kwargs": kwargs,
145144
}
146145
self._add(ld, layer)
147146

148-
def add_colorbar(self, label="", layer=0, plot_type="colorbar", **kwargs):
147+
def add_colorbar(self, label="", layer=0, **kwargs):
149148
cb = {
150149
"label": label,
151150
"layer": layer,
152-
"plot_type": plot_type,
151+
"plot_type": "colorbar",
153152
"kwargs": kwargs,
154153
}
155154
self._add(cb, layer)

0 commit comments

Comments
 (0)