Browse Source

removing matplot deprecation warning

epsylon 4 years ago
parent
commit
76daf4b79e

File diff suppressed because it is too large
+ 6 - 6
goldbach/docs/.github/CONTRIBUTING.md


+ 2 - 4
goldbach/docs/.github/ISSUE_TEMPLATE/bug_report.md

@@ -21,14 +21,12 @@ A clear and concise description of what you expected to happen.
 If applicable, add screenshots to help explain your problem.
 
 **Running environment:**
- - UFONet version [e.g. 1.4]
+ - goldbach version [e.g. 0.2]
  - Installation method [e.g. git]
  - Operating system: [e.g. Debian 4.19.16-1~bpo9+1 (2019-02-07) ]
  - Python version [e.g. 3.7]
 
-**Target details:**
- - UFONet techniques found by ufonet [e.g. ZOMBIES, UFOSYN, TACHYON]
- - WAF/IPS [if any]
+**Error details:**
  - Relevant console output [if any]
  - Exception traceback [if any]
 

+ 3 - 0
goldbach/main.py

@@ -10,6 +10,8 @@ Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 import os, sys
 import matplotlib.pyplot as plt
 
+plt.rcParams.update({'figure.max_open_warning': 0})
+
 class Goldbach(object):
     def __init__(self):
         self.l="love"
@@ -79,6 +81,7 @@ class Goldbach(object):
             y = t.rsplit('+',1)[1] 
             ax.scatter(self.tree.index(t)+1, x, color="red", s=2)
             ax.scatter(self.tree.index(t)+1, y, color="green", s=2)
+        plt.clf() # removing matplot future warning
         header = '"Tree" for number '+str(self.root)
         plt.title(header)
         plt.ylabel('Number(s)')