icplot 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {icplot-0.1.2/src/icplot.egg-info → icplot-0.1.3}/PKG-INFO +2 -2
- {icplot-0.1.2 → icplot-0.1.3}/pyproject.toml +1 -1
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/axis.py +1 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/generator.py +6 -5
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/matplotlib.py +7 -2
- {icplot-0.1.2 → icplot-0.1.3/src/icplot.egg-info}/PKG-INFO +2 -2
- {icplot-0.1.2 → icplot-0.1.3}/LICENSE +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/README.md +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/setup.cfg +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/__init__.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/cairo_interface.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/color.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/convert.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/gantt/__init__.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/gantt/gantt.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/gantt/gantt_renderer.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/gantt/pgfgantt.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/geometry.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/__init__.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/plot.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/graph/series.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/image_utils.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/main_cli.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/py.typed +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/tex.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/trace/__init__.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot/trace/trace.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot.egg-info/SOURCES.txt +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot.egg-info/dependency_links.txt +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot.egg-info/entry_points.txt +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot.egg-info/requires.txt +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/src/icplot.egg-info/top_level.txt +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/test/test_cairo_interface.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/test/test_gantt_chart.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/test/test_image_utils.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/test/test_line_plots.py +0 -0
- {icplot-0.1.2 → icplot-0.1.3}/test/test_tex_interface.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: icplot
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Utilities for generating plots and graphics for technical reports.
|
|
5
5
|
Author-email: "James Grogan, Irish Centre for High End Computing" <james.grogan@ichec.ie>
|
|
6
6
|
Project-URL: Repository, https://git.ichec.ie/performance/toolshed/icplot
|
|
@@ -45,23 +45,24 @@ def make_plots(
|
|
|
45
45
|
|
|
46
46
|
# Use a user-provided 'point_func' to get the series 'x, y' points
|
|
47
47
|
# from the results, given a 'x_attr, y_attr' pair
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
all_points = [point_func(r, config.x_attr, y_attr) for r in label_results]
|
|
49
|
+
points = sorted(
|
|
50
|
+
[x for x in all_points if x is not None], key=lambda x: x[0]
|
|
50
51
|
)
|
|
51
|
-
x, y = zip(*points)
|
|
52
|
+
x, y = [list(xy) for xy in zip(*points)]
|
|
52
53
|
|
|
53
54
|
if label in config.colormap:
|
|
54
55
|
series.append(
|
|
55
56
|
LinePlotSeries(
|
|
56
57
|
x=x,
|
|
57
58
|
y=y,
|
|
58
|
-
label=label,
|
|
59
|
+
label=str(label),
|
|
59
60
|
highlight=True,
|
|
60
61
|
color=config.colormap[label],
|
|
61
62
|
)
|
|
62
63
|
)
|
|
63
64
|
else:
|
|
64
|
-
series.append(LinePlotSeries(x=x, y=y, label=label))
|
|
65
|
+
series.append(LinePlotSeries(x=x, y=y, label=str(label)))
|
|
65
66
|
plots.append(plot_template.copy(update={"name": y_attr, "series": series}))
|
|
66
67
|
return plots
|
|
67
68
|
|
|
@@ -26,10 +26,15 @@ class MatplotlibColorMap(ColorMap):
|
|
|
26
26
|
def _set_decorations(axs, plot: Plot):
|
|
27
27
|
ax = axs[0]
|
|
28
28
|
if plot.legend.lower() != "none":
|
|
29
|
-
|
|
29
|
+
lines = []
|
|
30
|
+
for axis in axs:
|
|
31
|
+
for line in axis.lines:
|
|
32
|
+
lines.append(line)
|
|
33
|
+
ax.legend(handles=lines, loc=plot.legend)
|
|
30
34
|
if plot.x_axis.label:
|
|
31
35
|
ax.set_xlabel(plot.x_axis.label)
|
|
32
36
|
for idx, y_axis in enumerate(plot.y_axes):
|
|
37
|
+
axs[idx].set_yscale(y_axis.scale)
|
|
33
38
|
if y_axis.label:
|
|
34
39
|
axs[idx].set_ylabel(y_axis.label)
|
|
35
40
|
if y_axis.ticks:
|
|
@@ -47,7 +52,7 @@ def _plot_line(axs, series: LinePlotSeries, color: Color | None):
|
|
|
47
52
|
ax = axs[1]
|
|
48
53
|
|
|
49
54
|
if color:
|
|
50
|
-
render_color: list | None =
|
|
55
|
+
render_color: list | None = color.as_list()
|
|
51
56
|
else:
|
|
52
57
|
render_color = None
|
|
53
58
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: icplot
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Utilities for generating plots and graphics for technical reports.
|
|
5
5
|
Author-email: "James Grogan, Irish Centre for High End Computing" <james.grogan@ichec.ie>
|
|
6
6
|
Project-URL: Repository, https://git.ichec.ie/performance/toolshed/icplot
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|