From 1d946a8ddfc6c6360db844d25575978f549075fd Mon Sep 17 00:00:00 2001 From: Erkan Ozgur Yilmaz Date: Tue, 15 Oct 2024 09:13:11 +0100 Subject: [PATCH 1/2] [#417] Fix missing ":" characters in issue template. --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 34ee47a9..3521b60f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -25,9 +25,9 @@ If applicable, add screenshots to help explain your problem. **Versions (please complete the following information):** - OS: [e.g. Windows, MacOS, Linux] - - Python Version [e.g. 3.9, 3.10] - - ArgyllCMS Version [e.g. 3.0.2, 3.1.0, 3.2.0] - - DisplayCAL Version [e.g. 3.9.12] + - Python Version: [e.g. 3.9, 3.10] + - ArgyllCMS Version: [e.g. 3.0.2, 3.1.0, 3.2.0] + - DisplayCAL Version: [e.g. 3.9.12] **Additional context** Add any other context about the problem here. From 4e1fd9ba2301fb50a433430df83a1ed0837e10c0 Mon Sep 17 00:00:00 2001 From: Erkan Ozgur Yilmaz Date: Tue, 15 Oct 2024 09:13:36 +0100 Subject: [PATCH 2/2] [#417] Fixed #417. --- DisplayCAL/wxenhancedplot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DisplayCAL/wxenhancedplot.py b/DisplayCAL/wxenhancedplot.py index a4cafd19..2357f8df 100755 --- a/DisplayCAL/wxenhancedplot.py +++ b/DisplayCAL/wxenhancedplot.py @@ -668,7 +668,7 @@ def _circle(self, dc, coords, size=1): wh = 5.0 * size rect = np.zeros((len(coords), 4), float) + [0.0, 0.0, wh, wh] rect[:, 0:2] = coords - [fact, fact] - dc.DrawEllipseList(rect.astype(np.Int32)) + dc.DrawEllipseList(rect.astype(np.int32)) def _dot(self, dc, coords, size=1): dc.DrawPointList(coords) @@ -678,7 +678,7 @@ def _square(self, dc, coords, size=1): wh = 5.0 * size rect = np.zeros((len(coords), 4), float) + [0.0, 0.0, wh, wh] rect[:, 0:2] = coords - [fact, fact] - dc.DrawRectangleList(rect.astype(np.Int32)) + dc.DrawRectangleList(rect.astype(np.int32)) def _triangle(self, dc, coords, size=1): shape = [ @@ -689,7 +689,7 @@ def _triangle(self, dc, coords, size=1): poly = np.repeat(coords, 3, 0) poly.shape = (len(coords), 3, 2) poly += shape - dc.DrawPolygonList(poly.astype(np.Int32)) + dc.DrawPolygonList(poly.astype(np.int32)) def _triangle_down(self, dc, coords, size=1): shape = [ @@ -700,19 +700,19 @@ def _triangle_down(self, dc, coords, size=1): poly = np.repeat(coords, 3, 0) poly.shape = (len(coords), 3, 2) poly += shape - dc.DrawPolygonList(poly.astype(np.Int32)) + dc.DrawPolygonList(poly.astype(np.int32)) def _cross(self, dc, coords, size=1): fact = 2.5 * size for f in [[-fact, -fact, fact, fact], [-fact, fact, fact, -fact]]: lines = np.concatenate((coords, coords), axis=1) + f - dc.DrawLineList(lines.astype(np.Int32)) + dc.DrawLineList(lines.astype(np.int32)) def _plus(self, dc, coords, size=1): fact = 2.5 * size for f in [[-fact, 0, fact, 0], [0, -fact, 0, fact]]: lines = np.concatenate((coords, coords), axis=1) + f - dc.DrawLineList(lines.astype(np.Int32)) + dc.DrawLineList(lines.astype(np.int32)) class PlotGraphics: