Skip to content

Commit 247a460

Browse files
chenkasirergonzalocasas
authored andcommitted
fixed wrong attribute name in plotter artists
1 parent eb090a0 commit 247a460

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
* Fixed uninstall post-process.
1919
* Fixed `area_polygon` that was, in some cases, returning a negative area
2020
* Fixed support for `System.Decimal` data type on json serialization.
21+
* Fixed `AttributeError` in Plotter's `PolylineArtist` and `SegementArtist`.
2122

2223
### Removed
2324

src/compas_plotters/artists/polylineartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ def redraw(self) -> None:
107107
self._mpl_line.set_xdata(x)
108108
self._mpl_line.set_ydata(y)
109109
self._mpl_line.set_color(self.color)
110-
self._mpl_line.set_linewidth(self.width)
110+
self._mpl_line.set_linewidth(self.linewidth)

src/compas_plotters/artists/segmentartist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def redraw(self) -> None:
106106
self._mpl_line.set_xdata([self.line.start[0], self.line.end[0]])
107107
self._mpl_line.set_ydata([self.line.start[1], self.line.end[1]])
108108
self._mpl_line.set_color(self.color)
109-
self._mpl_line.set_linewidth(self.width)
109+
self._mpl_line.set_linewidth(self.linewidth)
110110
if self.draw_points:
111111
self._start_artist.redraw()
112112
self._end_artist.redraw()

0 commit comments

Comments
 (0)