Skip to content

Commit

Permalink
Fix plotting warnings in Pytest, add news for removal of six support (#…
Browse files Browse the repository at this point in the history
…215)

* Add news and fix warnings

* Add back original file content
  • Loading branch information
bobleesj authored Oct 1, 2024
1 parent 1f0b9a3 commit a75f347
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 3 deletions.
23 changes: 23 additions & 0 deletions news/six.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* six dependency in run.txt

**Fixed:**

* <news item>

**Security:**

* <news item>
23 changes: 23 additions & 0 deletions news/warning.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* two warnings with (1) linestyle redundantly defined and (2) no artists with labels found to put in legend

**Security:**

* <news item>
7 changes: 4 additions & 3 deletions src/diffpy/pdfgui/gui/extendedplotframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ def insertCurve(self, xData, yData, style):
style -- the way curve should be plotted
return: internal reference to the newly added curve
"""
stylestr, properties = self.__translateStyles(style)
curveRef = self.subplot.plot(xData, yData, stylestr, **properties)[0]
self.subplot.legend(**legendBoxProperties())
_, properties = self.__translateStyles(style)
curveRef = self.subplot.plot(xData, yData, **properties)[0]
if "legend" in style:
self.subplot.legend(**legendBoxProperties())
try:
self.datalims[curveRef] = (min(xData), max(xData), min(yData), max(yData))
except ValueError:
Expand Down

0 comments on commit a75f347

Please sign in to comment.