Skip to content

Commit 92fa454

Browse files
committed
remove small message
1 parent a28f2a4 commit 92fa454

14 files changed

+30
-34
lines changed

matplotlib2tikz/axes.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ def __init__(self, data, obj):
7676

7777
# aspect ratio, plot width/height
7878
aspect = obj.get_aspect()
79-
if aspect == "auto" or aspect == "normal":
79+
if aspect in ["auto", "normal"]:
8080
aspect_num = None # just take the given width/height values
8181
elif aspect == "equal":
8282
aspect_num = 1.0
8383
else:
8484
aspect_num = float(aspect)
8585

86-
self._width(data, aspect_num, xlim, ylim)
86+
self._set_axis_dimensions(data, aspect_num, xlim, ylim)
8787

8888
# axis positions
8989
xaxis_pos = obj.get_xaxis().label_position
@@ -163,7 +163,7 @@ def get_end_code(self, data):
163163

164164
return ""
165165

166-
def _width(self, data, aspect_num, xlim, ylim):
166+
def _set_axis_dimensions(self, data, aspect_num, xlim, ylim):
167167
if data["fwidth"] and data["fheight"]:
168168
# width and height overwrite aspect ratio
169169
self.axis_options.append("width=" + data["fwidth"])
@@ -193,12 +193,8 @@ def _width(self, data, aspect_num, xlim, ylim):
193193
data["fwidth"] = str(1.0 / alpha) + "*" + data["fheight"]
194194
self.axis_options.append("width=" + data["fwidth"])
195195
else:
196-
if aspect_num:
197-
print(
198-
"Non-automatic aspect ratio demanded, "
199-
"but neither height nor width of the plot are given. "
200-
"Discard aspect ratio."
201-
)
196+
# TODO keep an eye on https://tex.stackexchange.com/q/480058/13262
197+
pass
202198
return
203199

204200
def _ticks(self, data, obj):

test/test_annotate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ def test():
3939
if __name__ == "__main__":
4040
import helpers
4141

42-
# helpers.compare_mpl_latex(plot)
43-
helpers.print_tree(plot())
42+
helpers.compare_mpl_latex(plot)
43+
# helpers.print_tree(plot())

test/test_basic_sin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ def test():
3131
if __name__ == "__main__":
3232
import helpers
3333

34-
# helpers.compare_mpl_latex(plot)
35-
helpers.print_tree(plot())
34+
helpers.compare_mpl_latex(plot)
35+
# helpers.print_tree(plot())

test/test_fancybox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,5 +206,5 @@ def test():
206206
if __name__ == "__main__":
207207
import helpers
208208

209-
# helpers.compare_mpl_latex(plot)
210-
helpers.print_tree(plot())
209+
helpers.compare_mpl_latex(plot)
210+
# helpers.print_tree(plot())

test/test_legend_best_location_reference.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
4-
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
5-
\definecolor{color2}{rgb}{0.172549019607843,0.627450980392157,0.172549019607843}
6-
\definecolor{color3}{rgb}{0.83921568627451,0.152941176470588,0.156862745098039}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
4+
\definecolor{color1}{rgb}{0,0.619607843137255,0.450980392156863}
5+
\definecolor{color2}{rgb}{0.835294117647059,0.368627450980392,0}
6+
\definecolor{color3}{rgb}{0.8,0.474509803921569,0.654901960784314}
77

88
\begin{groupplot}[group style={group size=3 by 3}]
99
\nextgroupplot[

test/test_legend_columns_reference.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
4-
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
4+
\definecolor{color1}{rgb}{0,0.619607843137255,0.450980392156863}
55

66
\begin{axis}[
77
legend cell align={left},

test/test_legend_labels_reference.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
4-
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
5-
\definecolor{color2}{rgb}{0.172549019607843,0.627450980392157,0.172549019607843}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
4+
\definecolor{color1}{rgb}{0,0.619607843137255,0.450980392156863}
5+
\definecolor{color2}{rgb}{0.835294117647059,0.368627450980392,0}
66

77
\begin{axis}[
88
legend cell align={left},

test/test_legends2_reference.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
4-
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
4+
\definecolor{color1}{rgb}{0,0.619607843137255,0.450980392156863}
55

66
\begin{groupplot}[group style={group size=3 by 3}]
77
\nextgroupplot[

test/test_line_collection_reference.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
44

55
\begin{axis}[
66
colorbar,

test/test_line_color_marker_reference.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\begin{tikzpicture}
22

3-
\definecolor{color0}{rgb}{0.12156862745098,0.466666666666667,0.705882352941177}
4-
\definecolor{color1}{rgb}{1,0.498039215686275,0.0549019607843137}
3+
\definecolor{color0}{rgb}{0,0.447058823529412,0.698039215686274}
4+
\definecolor{color1}{rgb}{0,0.619607843137255,0.450980392156863}
55

66
\begin{axis}[
77
axis background/.style={fill=white!89.80392156862746!black},

0 commit comments

Comments
 (0)