Skip to content

Commit 0ce8f23

Browse files
authored
Merge pull request #464 from nschloe/scatter-individual-colors
Scatter individual colors
2 parents e4a4e6b + e8fe84d commit 0ce8f23

19 files changed

+1480
-1313
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = E203, E266, E501, W503
2+
ignore = E203, E266, E501, W503, C901
33
max-line-length = 88
44
max-complexity = 20
55
select = B,C,E,F,W,T4,B9

doc/conf.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# -- Path setup --------------------------------------------------------------
88

9+
import datetime
910
import pathlib
1011

1112
# If extensions (or modules to document with autodoc) are in another directory,
@@ -20,14 +21,16 @@
2021
# Sphinx 1.* compat (for readthedocs)
2122
master_doc = "index"
2223

23-
# -- Project information -----------------------------------------------------
24-
project = "tikzplotlib"
25-
copyright = "2010-2021, Nico Schlömer"
26-
author = "Nico Schlömer"
27-
2824
p = ConfigParser()
2925
this_dir = pathlib.Path(__file__).resolve().parent
3026
p.read(this_dir / ".." / "setup.cfg")
27+
28+
# -- Project information -----------------------------------------------------
29+
project = p["metadata"]["name"]
30+
year = datetime.datetime.utcnow().year
31+
author = p["metadata"]["author"]
32+
copyright = f"2010-{year}, {author}"
33+
3134
release = p["metadata"]["version"]
3235

3336

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = tikzplotlib
3-
version = 0.9.6
3+
version = 0.9.7
44
author = Nico Schlömer
55
author_email = [email protected]
66
description = Convert matplotlib figures into TikZ/PGFPlots

test/refresh_reference_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def _main():
2525
test_modules.remove("test_deterministic_output")
2626
test_modules.remove("test_cleanfigure")
2727
test_modules.remove("test_context")
28+
test_modules.remove("test_readme")
2829

2930
for mod in test_modules:
3031
module = importlib.import_module(mod)

test/test_boxplot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,8 @@ def plot():
9090

9191
def test():
9292
assert_equality(plot, "test_boxplot_reference.tex")
93-
return
93+
94+
95+
if __name__ == "__main__":
96+
plot()
97+
plt.show()

test/test_boxplot_reference.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
1.925 0.89879401
6969
2.075 0.89879401
7070
};
71-
\addplot [black, mark=*, mark size=3, mark options={solid,fill opacity=0}, only marks]
71+
\addplot [black, mark=o, mark size=3, mark options={solid,fill opacity=0}, only marks]
7272
table {%
7373
2 0.87772674
7474
};
@@ -100,7 +100,7 @@
100100
2.925 0.89451561
101101
3.075 0.89451561
102102
};
103-
\addplot [black, mark=*, mark size=3, mark options={solid,fill opacity=0}, only marks]
103+
\addplot [black, mark=o, mark size=3, mark options={solid,fill opacity=0}, only marks]
104104
table {%
105105
3 0.89810465
106106
};

test/test_contourf.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,17 @@ def plot():
2828

2929
def test():
3030
assert_equality(plot, __file__[:-3] + "_reference.tex")
31-
return
3231

3332

3433
if __name__ == "__main__":
35-
plot()
36-
plt.show()
34+
# plot()
35+
# plt.show()
3736
# import helpers
38-
3937
# helpers.compare_mpl_tex(plot)
4038
# helpers.print_tree(plot())
39+
plot()
40+
# plt.show()
41+
# plt.savefig('out.pgf')
42+
import tikzplotlib
43+
44+
tikzplotlib.save("out.tex", standalone=True)

0 commit comments

Comments
 (0)